How to get a sum of "0" to be blank in the cell

dixiebritt

Board Regular
Joined
Jan 8, 2014
Messages
63
I am running a report where I want the cell to remain blank, if the result is "0".

for example, I have a list of clients in column A. List of months in A-M. Their billings are in the cells. When calculating their YTD, if their total was zero, I want the cell to remain empty, with no number figure. I tried a couple of IF formulas, but i keep getting an error.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Do you mean something like this?

Code:
=IF(SUM(B1:M1)=0,"",SUM(B1:M1))

Change the cell references to suit.

I hope this helps!
 
Last edited:
Upvote 0
The easiest way to show zeroes as empty cells is by number formatting. If you're not familiar with number formatting start with one of the existing ones. Then change the cell formatting to "Custom" and you'll see the the original formatting. Then leave the first two formats (= positive and negative numbers) as they are and after the second ";" just add another ";" and remove whatever there might have been.

Custom cell formatting # ##0,00\ _€;[Red]-# ##0,00\ _€;; displays positive numbers as 1 234,56 €, negative numbers are formatted the same but in red and starting with a minus sign and zero values as blank cells.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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