Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default Adding cells but leaving blank if not populated

I am trying to add cells C5 thru I5 to populate J5, I would like J5 to remain
blank if no figures are entered into cell C5 thru I5 instead of having a zero

I have tried the following:

=IF(OR(C5="",D5="",E5="",F5="",G5="",H5="",I5=""), "",(C5+D5+E5+F5+G5+H5+I5))

But this formula only leaves a blank J5 and will not add (say) C5 and F5 if
the other cells in the formula are empty.

Where am I going wrong?


--
Thanks in advance.

Scoober
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Adding cells but leaving blank if not populated

Replace OR with AND
=IF(AND(C5="",D5="",E5="",F5="",G5="",H5="",I5="") ,"",(C5+D5+E5+F5+G5+H5+I5))

'Using SUM()
=IF(SUM(C5:I5),SUM(C5:I5),"")

If this post helps click Yes
---------------
Jacob Skaria


"Scoober" wrote:

I am trying to add cells C5 thru I5 to populate J5, I would like J5 to remain
blank if no figures are entered into cell C5 thru I5 instead of having a zero

I have tried the following:

=IF(OR(C5="",D5="",E5="",F5="",G5="",H5="",I5=""), "",(C5+D5+E5+F5+G5+H5+I5))

But this formula only leaves a blank J5 and will not add (say) C5 and F5 if
the other cells in the formula are empty.

Where am I going wrong?


--
Thanks in advance.

Scoober

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Adding cells but leaving blank if not populated

=IF(COUNT(C5:I5),SUM(C5:I5),"")
--
David Biddulph

Scoober wrote:
I am trying to add cells C5 thru I5 to populate J5, I would like J5
to remain blank if no figures are entered into cell C5 thru I5
instead of having a zero

I have tried the following:

=IF(OR(C5="",D5="",E5="",F5="",G5="",H5="",I5=""), "",(C5+D5+E5+F5+G5+H5+I5))

But this formula only leaves a blank J5 and will not add (say) C5 and
F5 if the other cells in the formula are empty.

Where am I going wrong?



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
Leaving Cell Blank Ron A.[_2_] Excel Worksheet Functions 2 October 6th 09 05:36 PM
Leaving Cell Blank. GEM Excel Worksheet Functions 3 January 20th 09 12:09 PM
Leaving a cell blank Skip cell with dates New Users to Excel 5 August 24th 08 11:18 PM
Colouring Ranges & Leaving Cells Blank klam Excel Discussion (Misc queries) 1 May 2nd 07 03:45 PM
Leaving a cell blank. Not NA(), not "". Incoherent Excel Worksheet Functions 4 September 30th 05 05:36 PM


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

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"