formula using GETPIVOTDATA is not automatically recalculating

obiron

Active Member
Joined
Jan 22, 2010
Messages
469
using Excel 2007

I have the following formula

Code:
=IF
  (ISERROR
    (GETPIVOTDATA
      ("Contact_ID",'BackSheet1 - TAM FFW'!$A$3,
       "Staff_Date",
       COLUMN(H24)-4,
       "Contact Type",
       "Tel",
       "Service/Error",
       $C22
      )
    ),
    0,
    GETPIVOTDATA
      ("Contact_ID",
       'BackSheet1 - TAM FFW'!$A$3,
       "Staff_Date",
       COLUMN(H24)-4,
       "Contact Type",
       "Tel",
       "Service/Error",
       $C22
      )
  )
 
+ 
 
IF
  (ISERROR
    (GETPIVOTDATA
     ("Contact_ID",
      'BackSheet2 - NKN FFW'!$A$3,
      "Staff_Date",
      COLUMN(H24)-4,
      "Contact Type",
      "Tel",
      "Service/Error",
      $C22
      )
    ),
    0,
    GETPIVOTDATA
      ("Contact_ID",
       'BackSheet2 - NKN FFW'!$A$3,
       "Staff_Date",
       COLUMN(H24)-4,
       "Contact Type",
       "Tel",
       "Service/Error",
       $C22
      )
  )

Basically checking to see if a pivot cell exists in each of two pivot tables and adding the values together. $C22 refers to a cell which has a string which appears as a row heading and COLUMN(H24)-4 refers to a month number. this is designed so that the formula can be copied around the worksheet and will still work (which is does...)

I had the second pivot table on a worksheet named 'BackSheet2 - NKW FFW' and so the second part was not finding anything. I renamed the worksheet to be the same as in the formula and hit F9 recalc but the cells did not recalculate. When I go into the formula and then back out again the cells recalculate correctly.

Is this a bug or am I doing something wrong?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,584
Messages
6,179,687
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top