I am summing up discrete portions of a pivot table, meaning the value of a cell on one sheet is adding one GETPIVOTDATA value from another worksheet, to another, to another, etc. I'll attach a sample of a formula that is turning out to be too long, or rather is if I want to add one more item to the formula. I can't use SUMPRODUCT or INDEX/MATCH because my pivot table doesn't (won't?) carry down the identifying terms on which I could match (in my exampe, these would be things like the Department No. and the Job Code, Department Description).
So my question is, how can I "extend" the formula length, by some trick? Perhaps the answer is in re-presenting the pivot table so I can use SUMPRODUCT, etc.?
Here's an example of a current cell value:
=GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101067","JobCd Descr","RN (GC,MN)","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101084","JobCd Descr","RN - PD","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101071","JobCd Descr","Asst Mgr, Nurse","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101039","JobCd Descr","RN (LJ)","Fiscal Year",2009,"Month",5)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101063","JobCd Descr","Perioperative RN","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","104650","JobCd Descr","Asst Dir, Cardiothoracic Surg","Fiscal Year",2009)
So my question is, how can I "extend" the formula length, by some trick? Perhaps the answer is in re-presenting the pivot table so I can use SUMPRODUCT, etc.?
Here's an example of a current cell value:
=GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101067","JobCd Descr","RN (GC,MN)","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101084","JobCd Descr","RN - PD","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101071","JobCd Descr","Asst Mgr, Nurse","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101039","JobCd Descr","RN (LJ)","Fiscal Year",2009,"Month",5)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","101063","JobCd Descr","Perioperative RN","Fiscal Year",2009)+GETPIVOTDATA("Worked Hours",'By Month'!$A$5,"Department","10611020","Dept Descr","NRSG-Ctu","JobCd","104650","JobCd Descr","Asst Dir, Cardiothoracic Surg","Fiscal Year",2009)