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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,215,256
Messages
6,123,911
Members
449,132
Latest member
Rosie14

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