Formula Query - to do with cutting text

jbhakta

Board Regular
Joined
Jun 11, 2002
Messages
131
Hi

I have lots of codes varying in lengh but all end with "/0 or "/1"

Like this

01N056242898659/0
01N050208449R0/1

I want a formula that with display the following


01N056242898659
01N050208449R0


Normally I would use "Text to Column" or the RIGHT n LEFT formula but I can not use it here because of the variation in number of characters.

I have 8000 lines of theses codes so a formula would cut down my time alot.

rgds

J.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,899
So, you just want to remove the "/" and anything following ?


=LEFT(E15,(FIND("/",E15)-1))
 
Upvote 0

jimbojones

Well-known Member
Joined
Apr 22, 2002
Messages
776
Hi there.

Use the =FIND() Finction. Something like:

=LEFT(A1,FIND("/",A1)-1)

Hope that helps,

James
 
Upvote 0

Forum statistics

Threads
1,195,662
Messages
6,010,988
Members
441,579
Latest member
satishrazdhan

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
Top