Return blank not 0

  • Thread starter Darts via OfficeKB.com
  • Start date
D

Darts via OfficeKB.com

In cell h6 this is my formula however i want the return to be blank if
nothing is in these cells it now return 0 how do i write to return blank
=SUM(C6*2)+(E6*3)+(G6*1)
 
F

Forgone

In cell h6 this is my formula however i want the return to be blank if
nothing is in these cells it now return 0 how do i write to return blank
=SUM(C6*2)+(E6*3)+(G6*1)

Why not use a custom number format on the cell.
Something along the lines of this.... _-* #,##0_-;-* #,##0_-;_-* ""??
_-;_-@_-

Format > Cells > Custom

If you want decimal places then it would look like.....

_-* #,##0.00_-;-* #,##0.00_-;_-* ""??_-;_-@_-

If you want a dash (using the decimal places)

_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-

Try that.
 
T

T. Valko

=IF((C6*2)+(E6*3)+(G6*1),(C6*2)+(E6*3)+(G6*1),"")

Improvement: no need to multiply any value by 1:

=IF((C6*2)+(E6*3)+G6,(C6*2)+(E6*3)+G6,"")


--
Biff
Microsoft Excel MVP


T. Valko said:
Try this:

=IF((C6*2)+(E6*3)+(G6*1),(C6*2)+(E6*3)+(G6*1),"")
 
S

Shane Devenshire

Hi,

Since we are making improvements:

=IF(C6*2+E6*3+G6,C6*2+E6*3+G6,"")

If this helps, please click the Yes button.

Cheers,
Shane Devenshire
 

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