SUM with partial cell content in a range

raheem

New Member
Joined
Apr 24, 2017
Messages
38
I need to SUM a range where some of the cells contain partial text as below:

5
6
2
L5
4

SUM should be 22 taking the digit from second last cell also.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hello,

There are several solutions to Sum from Text ...

Could you provide several examples of these ' special ' cells ...
 
Upvote 0
In the particular sheet, the data is exactly same. Number will always be a single digit and if there is an alphabet, it will always be one alphabet with one digit.
 
Upvote 0
Hello,

There are several solutions to Sum from Text ...

Could you provide several examples of these ' special ' cells ...

In the particular sheet, the data is exactly same. Number will always be a single digit and if there is an alphabet, it will always be one alphabet with one digit.


 
Upvote 0
Hello,

You can use following Array Formula

Code:
=SUM(RIGHT(A1:A5,1)*1)

Hope this will help
 
Upvote 0
If there is more than 1 alpha character, you could use
Code:
=RIGHT(A1,SUM(LEN(A1) - LEN(SUBSTITUTE(A1, {"0","1","2","3","4","5","6","7","8","9"},""))))*1
Drag down and then autosum at the bottom
 
Upvote 0
If there is more than 1 alpha character, you could use
Code:
=RIGHT(A1,SUM(LEN(A1) - LEN(SUBSTITUTE(A1, {"0","1","2","3","4","5","6","7","8","9"},""))))*1
Drag down and then autosum at the bottom

Thanks. Will save for future (having more than 1 alpha)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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