ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Return blank not 0 (https://www.excelbanter.com/excel-discussion-misc-queries/211517-return-blank-not-0-a.html)

Darts via OfficeKB.com

Return blank not 0
 
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)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1


Forgone

Return blank not 0
 
On Nov 25, 11:14*am, "Darts via OfficeKB.com" <u19990@uwe wrote:
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. Valko

Return blank not 0
 
Try this:

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


--
Biff
Microsoft Excel MVP


"Darts via OfficeKB.com" <u19990@uwe wrote in message
news:8db1daec70c65@uwe...
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)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1




T. Valko

Return blank not 0
 
=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" wrote in message
...
Try this:

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


--
Biff
Microsoft Excel MVP


"Darts via OfficeKB.com" <u19990@uwe wrote in message
news:8db1daec70c65@uwe...
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)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1






Shane Devenshire[_2_]

Return blank not 0
 
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

"Darts via OfficeKB.com" wrote:

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)

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200811/1




All times are GMT +1. The time now is 12:30 AM.

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