sum numbers mixed with text

Stubby

Board Regular
Joined
Mar 5, 2002
Messages
188
Hi fellow Mr Excel'ers

I have scoured the message board for an answer to my problem and seen lots of answers but nothing seems to match what I need!

I have a cell with the following information

2S22F1R

the letters in the cell could be any letter not just the ones i have used above. What I need to do is sum up the numbers, so in the above example i would have an answer of 25.

I guess it can be done with VBA but I need a NON vba answer as the person who will be using this is not a programmer!

any help will be much appreciated.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are the cells always: 1 digit, 1 letter, 2 digits, 1 Letter, 1 number, 1 letter?

=SUM(LEFT(G8,1),MID(G8,3,2),MID(G8,6,1))

or

you can always split the data with the Text to columns feature in excel and then

a little trickier if the data is random length of numbers/letters.
 
Upvote 0
Hi Steve=True

Looks Good. I won't be able to try it until Monday but thanks in advance!
 
Upvote 0
It is a little clumsy and assumes there are always 7 characters:

=if(isnumber(Left(A1,1)*1),Left(A1,1),0)+if(isnumber(Mid(A1,2,1)*1),Mid(A1,2,1),0)+if(isnumber(Mid(A1,3,1)*1),Mid(A1,3,1),0)+if(isnumber(Mid(A1,4,1)*1),Mid(A1,4,1),0)+if(isnumber(Mid(A1,5,1)*1),Mid(A1,5,1),0)+if(isnumber(Mid(A1,6,1)*1),Mid(A1,6,1),0)+if(isnumber(Right(A1,1)*1),Right(A1,1),0)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top