Show cells as blanks

Wookie

Board Regular
Joined
Mar 4, 2003
Messages
220
I have a formula in which if the cell gives a zero i want it to be blank, i can do this by conditional formatting but what i want is if the month has ACT as a heading then i still want it to show zero but if it has FCAST as a hearing i want it to show as blank if formula result is zero
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Format your FCAST column as eg "0;-0;" (no quotes).

The first part is for positives, the second part is for negatives and the third part is for zeroes. You can use what you want for parts 1 and 2, but be sure to include the last semicolon to indicate that zeroes are not shown.
 
Upvote 0
Here is formula, the column headings change between ACt and Fcast depending on which month we are in.

SUMIF('[Company.xls]OD'!$C$5,"=Act",'[Company.xls]OD'!C7),
 
Upvote 0
I don't know why you are using SUMIF on only one cell. You could try:

=IF('[Company.xls]OD'!$C$5="Act",IF('[Company.xls]OD'!C7<>0,'[Company.xls]OD'!C7,""),"")

which will show the "" (Null) value instead of zero.

Or you could use Conditional Formatting. Assuming your heading is in cell A1 and your data is in the range A2:A4, select the data cells, choose Format|Conditional Formatting:

Condition 1 Formula is:

=AND(A$1="FCAST",A2=0)

click Format, set the Font Color to white and click OK twice.
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,432
Members
451,705
Latest member
Priti_190

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