Sum Cells with multiple Numbers and multiple Text, within a cell

Help_Me_Excel

New Member
Joined
Jun 13, 2011
Messages
14
I am trying to sum a few cells that contain numbers and text, but I only want to sum the numbers that have a K in behind it. For example one cell could have 30K 12.5% 25K 13.0% and I want it to add to 55, just what is in front of the K's. I am using Excel 2007<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I tried using <o:p></o:p>
=SUM(IF(C17:C18<>"",SUBSTITUTE(SUBSTITUTE(C17:C18,"K",""),"%","")+0))
Unfortunately that does not work, anybody have any suggestions??

Cell C
Row 17 30K 12.5% 25K 13.0%


Row 18 50K 14.0%


Row 19
=SUM(IF(C17:C18<>"",SUBSTITUTE(SUBSTITUTE(C17:C18,"K",""),"%","")+0))

Should total 105
 
Last edited:
I copied your formula and I am getting a # value error, I also tried retyping it and I get a #Value error,

could you please look at it one more time,....I really appreciate this.

Thank You
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
In cell c 17 I have the values of 35K 13.0% 50K 13.5% 100K 14.0%
In cell c 18 I have the values of 5K 12.5% 10K 13.0%
In cell c 19 empty
In cell c 20 empty
Which should add to 200
 
Upvote 0
As Jason points out in your other thread - I didn't take account of situations where nnK or similar might be at the start - this should fix it......

=SUM(("000"&TRIM(MID("00"&TRANSPOSE(SUBSTITUTE(C17:C20," ",REPT(" ",2))),FIND("^^",SUBSTITUTE(TRANSPOSE(SUBSTITUTE(C17:C20," ",REPT(" ",2))),"K","^^",ROW(INDIRECT("1:"&MAX(LEN(C17:C20)-LEN(SUBSTITUTE(C17:C20,"K",""))))))&REPT("000^^",MAX(LEN(C17:C20)-LEN(SUBSTITUTE(C17:C20,"K","")))))-1,3)))+0)

still confirmed with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
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