#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Count

Is there a way of adding blank cells and without getting a result of 0

E.g.

=sum(A1+B2) Answer is 0 is there a way of just have a blank cell

Cells A1 and B2 are blank
----------------------------------------

All this to make conditional formatting to work:-
Blank cell = no colour
0 = Green
1 = Yellow
Between 2 and 999 = Red


Hope you can help
Regards


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Count

Try this:

=IF(AND(A1="",B1=""),"",A1+B1)

Hope this helps.

Pete

On Jan 26, 10:36*am, "Stig - tame racing driver" <Derek-
wrote:
Is there a way of adding blank cells and without getting a result of 0

E.g.

=sum(A1+B2) * *Answer is 0 is there a way of just have a blank cell

Cells A1 and B2 are blank
----------------------------------------

All this to make conditional formatting to work:-
Blank cell = no colour
0 = Green
1 = Yellow
Between 2 and 999 = Red

Hope you can help
Regards


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Count

For a start, you don't need the SUM function if you are not asking it to sum
two or more arguments. You can use either SUM(A1,B2) or just =A1+B2.

To deal with blank inputs, you could use =IF(COUNT(A1,B2)=2,A1+B2,"") if you
want both inputs to be non-blank, or =IF(COUNT(A1,B2)=0,"",A1+B2) if you
want either to be non-blank.
--
David Biddulph

"Stig - tame racing driver" wrote in
message ...
Is there a way of adding blank cells and without getting a result of 0

E.g.

=sum(A1+B2) Answer is 0 is there a way of just have a blank cell

Cells A1 and B2 are blank
----------------------------------------

All this to make conditional formatting to work:-
Blank cell = no colour
0 = Green
1 = Yellow
Between 2 and 999 = Red


Hope you can help
Regards




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Count

Thanks again.... problem solved


"Pete_UK" wrote in message
...
Try this:

=IF(AND(A1="",B1=""),"",A1+B1)

Hope this helps.

Pete

On Jan 26, 10:36 am, "Stig - tame racing driver" <Derek-
wrote:
Is there a way of adding blank cells and without getting a result of 0

E.g.

=sum(A1+B2) Answer is 0 is there a way of just have a blank cell

Cells A1 and B2 are blank
----------------------------------------

All this to make conditional formatting to work:-
Blank cell = no colour
0 = Green
1 = Yellow
Between 2 and 999 = Red

Hope you can help
Regards



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Count

You're welcome, Stig.

Keep racing.

Pete

On Jan 26, 11:09*am, "Stig - tame racing driver" <Derek-
wrote:
Thanks again.... problem solved

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
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 08:01 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"