#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Sum if not blank

I have a column for a simple running balance. I have used the formula that
sez if 0... so that if nothing is in the cell, then the running balance will
be blank; I don't want zeros,or the last accurate balance to be populated
down the column. So here's the formula I've been using:
=IF(H3 0,SUM(I2+H3)," ")
But What I really want is if it is blank. Because now I'd like to add
negative numbers in Column I; but then the formula above won't work. I've
tried if H3" ", but that returns an error. So, my question is - how do you
write a clean formula to sum only if Column I contains a value? Thanks for
any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Sum if not blank

I'm confused. Your formula mentions H, but your sentence mentions I. Which
column are you checking? Either way, you can use either ISNUMBER or COUNT()=1
like this:

=IF(ISNUMBER(H3),I2+H3,"")
or
=IF(COUNT(H3)=1,I2+H3,"")

Technically, the first function is faster (by a few microseconds)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"SKSmith" wrote:

I have a column for a simple running balance. I have used the formula that
sez if 0... so that if nothing is in the cell, then the running balance will
be blank; I don't want zeros,or the last accurate balance to be populated
down the column. So here's the formula I've been using:
=IF(H3 0,SUM(I2+H3)," ")
But What I really want is if it is blank. Because now I'd like to add
negative numbers in Column I; but then the formula above won't work. I've
tried if H3" ", but that returns an error. So, my question is - how do you
write a clean formula to sum only if Column I contains a value? Thanks for
any help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Sum if not blank

SKSmith wrote:
I have a column for a simple running balance. I have used the formula that
sez if 0... so that if nothing is in the cell, then the running balance will
be blank; I don't want zeros,or the last accurate balance to be populated
down the column. So here's the formula I've been using:
=IF(H3 0,SUM(I2+H3)," ")
But What I really want is if it is blank. Because now I'd like to add
negative numbers in Column I; but then the formula above won't work. I've
tried if H3" ", but that returns an error. So, my question is - how do you
write a clean formula to sum only if Column I contains a value? Thanks for
any help.



Just keep in mind that " " is not blank, that is a space. "" is blank. Drop
the "SUM", which is not needed, and you get something like this:

=IF(H3="","",I2+H3)

Or, go with what Luke suggested.
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
Excel 2002: Return blank when VLOOKUP on blank cells Mr. Low Excel Discussion (Misc queries) 2 June 4th 09 05:12 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Not showing blank and non blank items in filter mode for values Bhaskar Polisetty Excel Worksheet Functions 0 June 20th 06 02:04 PM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM


All times are GMT +1. The time now is 06:51 PM.

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

About Us

"It's about Microsoft Excel"