Apache OpenOffice (AOO) Bugzilla – Issue 101198
datapilot: allow to select named/database ranges as source ranges
Last modified: 2015-02-11 20:12:18 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
Good point. BTW is there a web version of the magazine article you cited?
unfortunately there is only a non readable preview http://www.heise.de/ct/inhalt/2009/09/170/
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
Created attachment 61691 [details] demo for datapilot
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