How do I suppress a zero value or #VALUE! for a Pivot calculated i

D

DJL

I have entered the following formula within a new calculated item to
calculate the variance between actual and budget values with the view to
making zero values or error values a blank cell. When I insert the formula
it removes the logic of only displaying the records relevant to the page
setting and I get the same records repeated for each page setting with #VALUE!

Variance
=IF(OR(ISERROR(SUM(Budget)-SUM(Actual)),SUM(Budget)-SUM(Actual)=0),"",SUM(Budget)-SUM(Actual))

Thanks
 
V

Vital_ar

Hai,
Try this I didn't try it. Just given like that
=IF(OR(ISERROR(SUM(Budget)-SUM(Actual)),(SUM(Budget)-SUM(Actual)=0)),"",SUM(Budget)-SUM(Actual))
 
P

Pritesh

Use 0 instead of "" in your forlula.

Use IFERROR instead of ISERROR.

Use IFERROR at the beginning of formula not inbetween the formula.

Try below formula;

=IFERROR(SUM(Budget)-SUM(Actual),0)

Regards,
Pritesh
 
E

Eduardo

Hi,

=IF(OR(ISERROR(SUM(Budget)-SUM(Actual)),(SUM(Budget)-SUM(Actual))=0),"",SUM(Budget)-SUM(Actual))
 
R

Roger Govier

Hi

Right click on the PT>Table Options>check Show Error values as, and either
leave as blank or set to 0 as you wish.

--
-------
Regards
Roger Govier

DJL said:
I have entered the following formula within a new calculated item to
calculate the variance between actual and budget values with the view to
making zero values or error values a blank cell. When I insert the
formula
it removes the logic of only displaying the records relevant to the page
setting and I get the same records repeated for each page setting with
#VALUE!

Variance
=IF(OR(ISERROR(SUM(Budget)-SUM(Actual)),SUM(Budget)-SUM(Actual)=0),"",SUM(Budget)-SUM(Actual))

Thanks

__________ Information from ESET Smart Security, version of virus
signature database 4897 (20100226) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4897 (20100226) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4901 (20100227) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
D

DJL

I am still getting the #VALUE! cells. I am wanting the Pivot Table to
exclude these records depending on the page setting as not all row fields
apply to every page setting
 
F

Fred Smith

Unfortunately IFERROR works only in XL2007. The OP probably has XL2003 or
earlier.

Your suggestion of changing "" to 0 is good, though.

Regards,
Fred
 
D

DJL

Thanks, that removes the #VALUE!s but it does not suppress the records that
have no data. It shows ALL the rows on each page but I only want the rows
showing that has data for that page setting. I have checked that all fields
do not have the "show items with no data" selected.
 
R

Roger Govier

Hi

If you want to send me the file, I will take a look
roger at technology4u dot co dot uk
Change the at and dots to make valid email address
 

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