Issue 101198

Summary: datapilot: allow to select named/database ranges as source ranges
Product: Calc Reporter: Oliver Brinzing <oliver.brinzing>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, jeffooo, jy.chevrel, kyoshida
Version: OOO310m9   
Target Milestone: ---   
Hardware: Unknown   
OS: All   
Issue Type: FEATURE Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
demo for datapilot none

Description Oliver Brinzing 2009-04-19 13:55:31 UTC
it seems not to be possible to use a named/database range as a
source range for a datapilot table.
one can select only the "current selection" or a real "database source" from the
autopilot dialog.

excel seems to handle named ranges ...

background: c't magazine no 9/2009 page 173
Comment 1 kyoshida 2009-04-19 17:06:23 UTC
Good point.  BTW is there a web version of the magazine article you cited?
Comment 2 Oliver Brinzing 2009-04-20 08:23:20 UTC
unfortunately there is only a non readable preview
http://www.heise.de/ct/inhalt/2009/09/170/


Comment 3 Oliver Brinzing 2009-04-20 17:47:42 UTC
in excel it's possible to add a named range, e.g. datarange
=BEREICH.VERSCHIEBEN( $A$1;;;;ANZAHL2($A:$A);ANZAHL2($1:$1))

now one can use the name "datarange" as a source for the pivot table.
as a result, the named range will always point to the correct data range,
even if size changes

for oo the author suggest to use a cell formula with a macro, e.g.:
="A1:"&ADRESSE(ANZAHL2($A$1:$A$20)+1;ANZAHL2($A$1:$Z$1);4;1)

and than start a macro to set the range (e.g. A1:E15) ...

please have a look at the attachment ...

while it's possible to define a named range in oo using
="A1:"&ADRESSE(ANZAHL2($A$1:$A$20)+1;ANZAHL2($A$1:$Z$1);4;1)
you cannot use it for a data source
Comment 4 Oliver Brinzing 2009-04-20 17:48:41 UTC
Created attachment 61691 [details]
demo for datapilot
Comment 5 jeffooo 2014-03-17 11:11:14 UTC
This is same problem with chart (issue 64604) and print range (issue 104875).

Named range with OFFSET function is more powerfull.

Add me to CC,
Regards