L
Laurence Lombard
I think that the GETPIVOTDATA function should be promoted above the use of
array formulas. I would appreciate comments from the experts.
My major problem with array formulas (and the much more user friendly
SUMPRODUCT function which I used later) is that they slow down a workbook a
lot as they are computation demanding and are recalculated every time a cell
is changed anywhere in the workbook. I am probably the only person still
using Windows 98 and a PII with office 2000, so maybe it is not an issue for
others!
I have managed to get the same result using a pivottable and the
GETPIVOTDATA function with a dramatic increase in speed. In my opinion array
formulas are mostly used in a report situation, therefore the "refresh when
needed" facility of the associated pivot table is more than adequate.
It takes a bit of time to figure out the syntax of GETPIVOTDATA as it is not
that well explained. I thought I would add an example:
=GETPIVOTDATA(Table1,"SALESPERSON['"&A1&"'] QUARTER['" & A2 & "'] AMOUNT")
Here Table1 is the name of a cell in the pivot table. The formula returns
the total AMOUNT for SALESPERSON stored in A1 and QUARTER stored in A2.
Regards
Laurence
array formulas. I would appreciate comments from the experts.
My major problem with array formulas (and the much more user friendly
SUMPRODUCT function which I used later) is that they slow down a workbook a
lot as they are computation demanding and are recalculated every time a cell
is changed anywhere in the workbook. I am probably the only person still
using Windows 98 and a PII with office 2000, so maybe it is not an issue for
others!
I have managed to get the same result using a pivottable and the
GETPIVOTDATA function with a dramatic increase in speed. In my opinion array
formulas are mostly used in a report situation, therefore the "refresh when
needed" facility of the associated pivot table is more than adequate.
It takes a bit of time to figure out the syntax of GETPIVOTDATA as it is not
that well explained. I thought I would add an example:
=GETPIVOTDATA(Table1,"SALESPERSON['"&A1&"'] QUARTER['" & A2 & "'] AMOUNT")
Here Table1 is the name of a cell in the pivot table. The formula returns
the total AMOUNT for SALESPERSON stored in A1 and QUARTER stored in A2.
Regards
Laurence