How to replace #REF! with 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am currently pulling data from a pivot table to a report, but everytime the
pivot table doesn't have that specific data it shows #REF! on my report. I
want to change that to show 0 if there is no data. How do I fix this problem?
 
Hi Margo

I assume you are using the GetPivotData function to pull the data.
If so, then wrap your formula in an If statement with an Iserror

=IF(ISERROR(your_formula),0,your_formula)
 
Back
Top