#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default 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.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Return Blank Jim Excel Discussion (Misc queries) 1 November 4th 08 06:11 PM
If function - Add if its blank, to return blank Natalie Excel Worksheet Functions 1 May 9th 08 10:31 AM
If cell blank return a blank Angela1979 Excel Worksheet Functions 8 March 7th 07 01:18 PM
Sumif to return a blank if sum range is blank [email protected] Excel Worksheet Functions 3 May 25th 06 10:25 AM


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"