ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   eliminate zero (https://www.excelbanter.com/excel-worksheet-functions/129966-eliminate-zero.html)

S S

eliminate zero
 
Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.

thanks

--





Nick Hodge

eliminate zero
 
SS

Try

=IF(SUM(E10:E20)=0,"",SUM(E10:E20))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"S S" wrote in message
o.uk...
Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.

thanks

--






Joerg

eliminate zero
 
Format = Format cells = Number = Custom
Now input a new custom format: #;#;;

Joerg

"S S" wrote in message
o.uk...
Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.

thanks

--







David Biddulph

eliminate zero
 
Note that Nick's suggestion, and the one from Joerg, would give a blank
answer if there are numbers in at least some of the cells but they add up to
zero. If you want to give a zero answer in that case, but a blank if all
the input cells are blank, try
=IF(SUM(NOT(ISBLANK(E10:E20)))=0,"",SUM(E10:E20))
--
David Biddulph

"Nick Hodge" wrote in message
...
SS

Try

=IF(SUM(E10:E20)=0,"",SUM(E10:E20))


"S S" wrote in message
o.uk...
Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.




Dave Peterson

eliminate zero
 
One mo
=if(count(e10:e20)=0,"",sum(e10:e20))


S S wrote:

Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.

thanks

--


--

Dave Peterson

S S

eliminate zero
 
Thanks for the help guys.

"Dave Peterson" wrote in message
...
One mo
=if(count(e10:e20)=0,"",sum(e10:e20))


S S wrote:

Formula =SUM(E10:E20)
If there are no amounts in this column then the total displays 0
Is there a way to display the total cell as blank so that the 0 does not
appear.

thanks

--


--

Dave Peterson





All times are GMT +1. The time now is 06:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com