View Single Post
  #6  
Old January 13th, 2010, 05:20 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default Summing Cells with Text and Numbers

The part (LEFT(A11)="S") will return Boolean FALSE/TRUE
But when Excel does math (here multiplication) on Boolean it converts this
to 0/1
Similarly text that can be converted to numbers will get cohered to numbers
with in a math operation.
So VALUE is not needed
best wishes
Bernard

"Trevor Little" wrote in message
...
Thanks Bernard, This formula worked perfectly for me as well.

The same with the note I left on Mike's formula, I also had to use the
"value(..)" formula in order to have it it take the last part of the
number
as a "number" value.

Thanks again.

"Bernard Liengme" wrote:

=SUMPRODUCT((LEFT(A11)="S")*(MID(A11,2,20)))
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Trevor Little" Trevor wrote in
message
...
Is it possible to use the Sumif function to add numbers with a specific
designator in front of it?

Eg.
A row contains strings like: S8, S10, V5, S5

Is there a formula that can total the S's? (Total would be 23)


.