Iferror triple check

SaraLee

New Member
Joined
Aug 29, 2018
Messages
2
I currently have a few columns working off of a pivot. The pivot has a missing dimension under one year, and the calculation is already fairly complex. What is the easiest way to add a double check for a missing Tender to Ship Group"?

=+IF($A29="Grand Total",SUM(AA$11:AA28),
IF($A29="","",
IFERROR(GETPIVOTDATA("Loadnum",$A$8,"Customer Name",$A29,"City",$B29,"St",$C29,"Year",2017,"Tender To Ship Group",AA$10)-GETPIVOTDATA("Loadnum",$A$8,"Customer Name",$A29,"City",$B29,"St",$C29,"Year",2018,"Tender To Ship Group",AA$10),"")))

This works great if the group shows up under both 2017 ad 2018, but I need to build in a check for missing and substitution such as

IFERROR(GETPIVOTDATA("Loadnum",$A$8,"Customer Name",$A29,"City",$B29,"St",$C29,"Year",2018,"Tender To Ship Group",AA$10),GETPIVOTDATA("Loadnum",$A$8,"Customer Name",$A29,"City",$B29,"St",$C29,"Year",2017,"Tender To Ship Group",AA$10))
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,225,747
Messages
6,186,792
Members
453,371
Latest member
HMX180

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