Ignore text just sum numbers in cell

Steve7

New Member
Joined
May 15, 2023
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
In the youtube short

they use this formula =SUM(SUBSTITUTE(C4:C8, "kg",””) +0)

That’s fine if your only using one lot of letters but what if I want to use a whole different array of letters (within the same cell) and later sum up the cells

To me I thought it would be logical for this formula to work but it doesn’t

=SUM(SUBSTITUTE(C4:C8, "**",””) +0)

Replacing the “kg” with “**” so didn’t matter what letters were there and didn’t matter if letters were all different
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi & welcome to MrExcel.
If the letters are always after the number try
Fluff.xlsm
A
1
212 kg
315oz
423 yds
550
Master
Cell Formulas
RangeFormula
A5A5=SUM(--TEXTBEFORE(UPPER(A2:A4),CHAR(SEQUENCE(,26,65))))
 
Upvote 1
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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