Pivot table doesnt recognise blanks as blanks

AgentSilverfern

Board Regular
Joined
Oct 16, 2003
Messages
51
I have four columns of data in sheet. The first and second columns contain numbers that were entered manually. Each cell in the third column contains a formula that looks like this...

=IF(OR(AB4="",AB4=0)=TRUE,"",IF(AB4>=AA4,AB4-AA4,"ERR"))

Thus returning a "" value whenever a "0" or a "" is contained in column AB.

I then generated a pivot table from the sheet these columns are contained in and specified that all blanks should be displayed as dashes in the pivot table options.

This worked for all the columns in this sheet except for the aforementioned third column that contains formulas, which instead displayed zeroes. Somewhat perplexed I decided to copy and paste special the column as values only into a new column (my fourth column). I inserted the new column into the pivot table data area and hit refresh, but still the pivot table displayed zeroes and not dashes.

I have since tried using a macro to clear the contents of all blanks cells in the column or by simply using the goto special blanks option and clearing contents - all to no avail. The pivot table still doesnt see blanks. The only way in which it has recognised that the cell is a blank is if I manually select each cell one at a time and hit delete on the keyboard.

I don't understand it? Can anyone help me?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
A null value "" returned by a formula is not the same as a blank cell, because the cell contains something (a formula). Try changing your formula so that it returns zero instead of "" and format the cells in the pivot table as eg "#,##0_);(#,##0);-" (no quotes).
 
Upvote 0

Forum statistics

Threads
1,203,250
Messages
6,054,383
Members
444,721
Latest member
BAFRA77

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