How do I hide hide #REF! in Excel

P

PerryK

I have a pivot table that summarize sales by manager.

I am using the "=GETPIVOTDATA" function to capture the data into a table.

The table lists the managers name in column A and the summary data from the
pivot table in column B

One of the managers has not had any sales so far this year, so they do not
show up in the pivot table. This causes the #REF! error in the table.
I would like for it to show "0" or just be blank instead of it showing #REF!.

Is there an easy way to hide this error?

Thanks
 
J

Jim Thomlinson

There is an error function called IsRef. So something like this...

=if(isref(getpivotdata(...), 0, getpivotdata(...))
 
P

PerryK

Jim,

thanks --That did it!
--
Perry K


Jim Thomlinson said:
There is an error function called IsRef. So something like this...

=if(isref(getpivotdata(...), 0, getpivotdata(...))
 

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