Unable to add alphanumeric text..........

Shweta

Well-known Member
Joined
Jun 5, 2011
Messages
514
Hi All,

I have a spreadsheet containing the data like this. I want to add it.

column A
32K
45k
47k
385k
100k

It is not being possible to add all this text with sum function. I tried it with sumproduct as well, but still didn't get the answer. Answer should be 609.

Can anybody please help me out?

Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Assuming your range is in A8 to A12 this should work.

{=SUM(LEFT(A8:A12,FIND("k",A8:A12)-1)*1)}

Make sure to enter it with Ctrl+Shift+Enter instead of just Enter.
 
Upvote 0
with your sample data in A1:A5,
this regular formula returns the sum of the numeric values
Code:
B1: =SUMPRODUCT(--SUBSTITUTE(UPPER(A1:A5),"K",""))

Is that something you can work with?
 
Upvote 0
Hi All,

I have a spreadsheet containing the data like this. I want to add it.

column A
32K
45k
47k
385k
100k

It is not being possible to add all this text with sum function. I tried it with sumproduct as well, but still didn't get the answer. Answer should be 609.

Can anybody please help me out?

Thanks.
Here's another one.

Assuming every cell entry contains the letter K at the end.

Array entered**:

=SUM(--LEFT(A2:A6,LEN(A2:A6)-1))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
I know how much you like using array formulas, T. ;)
But, why not use this regular formula?:
Code:
=SUMPRODUCT(--LEFT(A1:A5,LEN(A1:A5)-1))
 
Upvote 0
Hi Dcamos,

Thanks for your quick reply. Your formula is working properly, but I am not getting the logic why we added *1 at the end of this formula?
 
Upvote 0
Thanks All...

All the formulaes are working properly.

I appreciate your help!

Thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

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