Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron
 
Posts: n/a
Default adding values with text

Is there any way to sum up cells if they contain text and letters. For
example I would like to sum up 6cs and 12cs for a total of 18.

Is there a function where I can make an If statement that would have a
condition such as endswith "cs"?

Thanks


  #2   Report Post  
KL
 
Posts: n/a
Default

you could possibly do this:

=SUM(SUBSTITUTE(A1,"cs",""),SUBSTITUTE(A2,"cs","") )

or even array entered (Ctrl+Shift+Enter):

=SUM(IF(ISNUMBER(--SUBSTITUTE(A1:A10,"cs","")),--SUBSTITUTE(A1:A10,"cs","")))

regards,
KL


"Ron" wrote in message
...
Is there any way to sum up cells if they contain text and letters. For
example I would like to sum up 6cs and 12cs for a total of 18.

Is there a function where I can make an If statement that would have a
condition such as endswith "cs"?

Thanks




  #3   Report Post  
Lewis Clark
 
Posts: n/a
Default

Do you need the "CS" in the cell as part of the data? You may be able to
use a custom format to add the "CS" and have the cell itself just have
numbers.


"KL" wrote in message
...
you could possibly do this:

=SUM(SUBSTITUTE(A1,"cs",""),SUBSTITUTE(A2,"cs","") )

or even array entered (Ctrl+Shift+Enter):

=SUM(IF(ISNUMBER(--SUBSTITUTE(A1:A10,"cs","")),--SUBSTITUTE(A1:A10,"cs","")))

regards,
KL


"Ron" wrote in message
...
Is there any way to sum up cells if they contain text and letters. For
example I would like to sum up 6cs and 12cs for a total of 18.

Is there a function where I can make an If statement that would have a
condition such as endswith "cs"?

Thanks






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
How to use an array or matrix to return text vs. numeric values Ingrid Excel Worksheet Functions 2 April 10th 05 12:51 AM
How do you convert numbers as "text" to values for a long column . geoexcel Excel Discussion (Misc queries) 2 February 27th 05 04:31 PM
Adding two text cells together Audrey Excel Discussion (Misc queries) 4 February 24th 05 09:57 PM
how do i detect like text and add corresponding values? Lucy Excel Discussion (Misc queries) 2 December 17th 04 04:59 PM
text and values combined in one cel Bart Excel Discussion (Misc queries) 1 December 14th 04 08:36 AM


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