Formula Query - to do with cutting text

jbhakta

Board Regular
Joined
Jun 11, 2002
Messages
134
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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
So, you just want to remove the "/" and anything following ?


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

Use the =FIND() Finction. Something like:

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

Hope that helps,

James
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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