Help with Formula referencing a Pivot Table

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
I just have a quick question about a formula I have that is referencing a pivot table. In some areas the pivot table will not have data yet. How can I modify the below formula that if there is an error, to display a blank cell?

=GETPIVOTDATA("Part Name",'Reference Data 1'!$A$1,"Date Returned",8,"Approval Status","Granted","Years",2019)/Graphs!L38

I tried:

=IFERROR(=GETPIVOTDATA("Part Name",'Reference Data 1'!$A$1,"Date Returned",8,"Approval Status","Granted","Years",2019)/Graphs!L38),"")

But Excel does not accept this and says I have an error somewhere.

Your help would be much appreciated.

Thank you very much.

Carla
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Sorry that was a typo.

This formula still does not work:

=IFERROR(GETPIVOTDATA("Part Name",'Reference Data 1'!$A$1,"Date Returned",8,"Approval Status","Granted","Years",2019)/Graphs!L38),"")
 
Upvote 0
Nevermind, I figured it out. The formula is:

=IFERROR(GETPIVOTDATA("Part Name",'Reference Data 1'!$A$1,"Date Returned",7,"Approval Status","Granted","Years",2019)/Graphs!L37,"")

Had an extra ) that didnt belong.

Thx.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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