How to replace #REF! with 0

M

Margo

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?
 
R

Roger Govier

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top