Sum Numbers Ignore Text, All Information in One Cell

Bosavon

New Member
Joined
Jul 13, 2024
Messages
13
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
Hello!
Am having a Cell with (20K Mon, 28K Tue, 38K Wed) and need to sum those numbers without the use of VBA. And The sum Is to cover some blank Cells.. Pls help me how to do it without errors
Thanks in Advance!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
20,8K Mon, 28,5K Tue, 38K Wed
20.8K Mon, 28.5K Tue, 38K Wed
 
Upvote 0
I interpreted the OP's "They vary, sometimes with decimals" as the second case, not commas as thousands of separators.
Book1
AB
120.8K Mon, 28.5K Tue, 38K Wed87.3
Sheet1
Cell Formulas
RangeFormula
B1B1=SUM(--TEXTBEFORE(TEXTSPLIT(A1,","),"K"))


This should work for both cases.
Excel Formula:
=SUM(--(SUBSTITUTE(TEXTBEFORE(TEXTSPLIT(SUBSTITUTE(A2,", ","|"),"|"),"K"),",",".")))
 
Last edited:
Upvote 0
How about this formula (entered with CTRL+SHIFT+ENTER) for values in cell A2:A4:
Excel Formula:
{=SUM(LEFT(A2:A4,FIND("K ",A2:A4)-1)*1000)}
(Note that the "{" and "}" are not literally there, they are added when you enter the formula with CTRL+SHIFT+ENTER).

View attachment 114140
Thanks!
But my Data are in the same cell, only comma separated
If that is indeed the case, they need to update their account details.
They just registered 3 days ago, and marked that they are using 2013!

View attachment 114142

Please update your account details if that is really the case!
Oh!
That first thread was on Android where I have office 365, but on PC O have 2013 where that TextBefore function isn't recognized.
 
Upvote 0
20,8K Mon, 28,5K Tue, 38K Wed
20.8K Mon, 28.5K Tue, 38K Wed
Like this Monday Income was 28K,
How about this formula (entered with CTRL+SHIFT+ENTER) for values in cell A2:A4:
Excel Formula:
{=SUM(LEFT(A2:A4,FIND("K ",A2:A4)-1)*1000)}
(Note that the "{" and "}" are not literally there, they are added when you enter the formula with CTRL+SHIFT+ENTER).

View attachment 114140
I think I'll have to restructure the sheet this way, numbers in different cells, then Sum Left..
THANK YOU ALL FOR YOUR HELP!
 
Upvote 0
I'd also recommend putting them into their separate cells, but this seems to work.
Book1
AB
120.8K Mon, 28.5K Tue, 38K Wed87.3
Sheet1
Cell Formulas
RangeFormula
B1B1=LEFT(A1,FIND("K",A1)-1) +MID(A1,FIND(",",A1)+1,FIND("K",A1,FIND("K",A1)+1)-FIND(",",A1)-1) +MID(A1,FIND(",",A1,FIND(",",A1)+1)+2,FIND("K",A1,FIND("K",A1,FIND("K",A1)+1)+1)-FIND(",",A1,FIND(",",A1)+1)-2)
 
Upvote 0
Solution
Note: When marking a post as the solution, please mark the post originally containing the solution that you used (or will use).
Please do not mark your own post acknowledging some other post is the solution.
You would only mark your own post if you can up with your own solution (and then posted that).
 
Upvote 0
The sample shows it in parentheses, is there other text in the cell that we need to be aware of?

(20K Mon, 28K Tue, 38K Wed)
 
Upvote 0
I'd also recommend putting them into their separate cells, but this seems to work.
Book1
AB
120.8K Mon, 28.5K Tue, 38K Wed87.3
Sheet1
Cell Formulas
RangeFormula
B1B1=LEFT(A1,FIND("K",A1)-1) +MID(A1,FIND(",",A1)+1,FIND("K",A1,FIND("K",A1)+1)-FIND(",",A1)-1) +MID(A1,FIND(",",A1,FIND(",",A1)+1)+2,FIND("K",A1,FIND("K",A1,FIND("K",A1)+1)+1)-FIND(",",A1,FIND(",",A1)+1)-2)
This one gets it right without restructuring...
🙏🙏
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
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