Pulling text from string until specified character

hockey390

Board Regular
Joined
Jun 10, 2010
Messages
60
Hi Everyone,

I did a lot of searching and everything I found was more complex than what I was looking for. Mostly VBA code, not just excel formula.

I would like to pull the left most characters in a string until the first "/".

String example: 10/1 Truck

Would like to just pull the "10"

Thanks for help in advance!
 
Just as some additional learning for me... That is going to the left most location, moving right until it finds the "/", then pull the text starting -1, or one left of the "/" to the leftmost position, right? So if I wanted to include the "/" I would leave out the -1 or could change to +1, etc..
 
Upvote 0
FIND("/",A1) returns the position of the / starting from the left. So to include the / delete the -1.
 
Upvote 0

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