Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Ignore text when sum cells

I have two columns with numbers, blanks, and text.
I want to sum these two columns (C1=A1+B1) if there is a number in either
column, leave a blank if both columns are blank, and ignore text.
When I have text in these columns, I get: #VALUE!
How can I ignore text and return a blank instead of zero if there are two
blanks?

Example:
IN ABV 204 #VALUE!
IN ABV IN ABV #VALUE!
IN ABV IN ABV #VALUE!
15,327 264 15,591


Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Ignore text when sum cells

Hi

Try

=IF(COUNT(A1:B1)0,SUM(A1:B1),"")

copied down

Richard


"evoxfan" wrote in message
...
I have two columns with numbers, blanks, and text.
I want to sum these two columns (C1=A1+B1) if there is a number in either
column, leave a blank if both columns are blank, and ignore text.
When I have text in these columns, I get: #VALUE!
How can I ignore text and return a blank instead of zero if there are two
blanks?

Example:
IN ABV 204 #VALUE!
IN ABV IN ABV #VALUE!
IN ABV IN ABV #VALUE!
15,327 264 15,591


Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Ignore text when sum cells

Try this:

=IF(COUNT(A1:B1),SUM(A1:B1),"")

--
Biff
Microsoft Excel MVP


"evoxfan" wrote in message
...
I have two columns with numbers, blanks, and text.
I want to sum these two columns (C1=A1+B1) if there is a number in either
column, leave a blank if both columns are blank, and ignore text.
When I have text in these columns, I get: #VALUE!
How can I ignore text and return a blank instead of zero if there are two
blanks?

Example:
IN ABV 204 #VALUE!
IN ABV IN ABV #VALUE!
IN ABV IN ABV #VALUE!
15,327 264 15,591


Thanks in advance.



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
Cells ignore Wrap Text formatting! phillr Excel Discussion (Misc queries) 2 September 22nd 08 06:32 PM
creating formulas which ignore text in the relevant cells help with excel formulas Excel Discussion (Misc queries) 3 December 31st 07 03:57 PM
check a row ignore blank cells print only those with text Rollo Tomasi Excel Discussion (Misc queries) 4 May 18th 07 08:32 AM
Ignore Text in Cells Referenced in a formula Steve Excel Discussion (Misc queries) 4 October 19th 06 10:08 PM
How do I count cells with text but ignore cells with spaces? Husker87 Excel Discussion (Misc queries) 2 September 21st 06 12:31 AM


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