Remove characters in formula

d7ono

New Member
Joined
May 13, 2015
Messages
1
I need to run this formula but need it to ignore the text that is in cell W12.

Formula is =sum(w12*t12)/100

Cell w12 reads as ‘15 kestrel’

So I want to ignore everything but the 15, I have other cells with different text so it has to ignore generic text.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi & welcome to MrExcel.
If the number is always at the start & has a space after it, try
=(LEFT(W12,FIND(" ",W12)-1)*T12)/100
 
Last edited:
Upvote 0
It isn't important, but the "-1" is not required in Fluff's formula.

Also, if it is possible that sometimes the cell has no text at all after the number you could add this to avoid getting an error.
=(LEFT(W12,FIND(" ",W12&" "))*T12)/100
 
Upvote 0

Forum statistics

Threads
1,217,330
Messages
6,135,928
Members
449,973
Latest member
jarzack

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