MID LEFT RIGHT

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,060
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I tried every think but no luck, any help please.

Book2
ABC
1InPutOutPut 1OutPut 2
2130-00_RFAIRDASOL1/14/1/1130-00_RFAIRDASOL1/14/1130-00_RFAIRDASOL1/14
3130-00_RFAIRDASOL1/16/1/1130-00_RFAIRDASOL1/16/1130-00_RFAIRDASOL1/16
4130-00_RFAIRDASOL1/16/1/2130-00_RFAIRDASOL1/16/1130-00_RFAIRDASOL1/16
5130-00_RFAIRDASOL1/1/1/2130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
6130-00_RFAIRDASOL1/1/1/20130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
7130-00_RFAIRDASOL1/1/1/21130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
8130-00_RFAIRDASOL1/1/1/3130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
9130-00_RFAIRDASOL1/1/1/30130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
10130-00_RFAIRDASOL1/1/1/4130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
11130-00_RFAIRDASOL1/1/1/5130-00_RFAIRDASOL1/1/1130-00_RFAIRDASOL1/1
12114-00_MNARRD00OLA/8/3/65114-00_MNARRD00OLA/8/3114-00_MNARRD00OLA/8
13114-00_MNARRD00OLA/8/3/66114-00_MNARRD00OLA/8/3114-00_MNARRD00OLA/8
14114-00_MNARRD00OLA/8/4/1114-00_MNARRD00OLA/8/4114-00_MNARRD00OLA/8
15114-00_MNARRD00OLA/8/4/17114-00_MNARRD00OLA/8/4114-00_MNARRD00OLA/8
16114-00_MNARRD00OLA/8/4/65114-00_MNARRD00OLA/8/4114-00_MNARRD00OLA/8
17114-00_MNARRD00OLA/8/4/66114-00_MNARRD00OLA/8/4114-00_MNARRD00OLA/8
18296-00_JRNHKH01OL5/9/14/66296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
19296-00_JRNHKH01OL5/9/14/67296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
20296-00_JRNHKH01OL5/9/14/71296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
21296-00_JRNHKH01OL5/9/14/80296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
22296-00_JRNHKH01OL5/9/14/85296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
23296-00_JRNHKH01OL5/9/14/90296-00_JRNHKH01OL5/9/14296-00_JRNHKH01OL5/9
24417-00_QBLTDN00OL4/8/12/100417-00_QBLTDN00OL4/8/12417-00_QBLTDN00OL4/8
25417-00_QBLTDN00OL4/8/12/101417-00_QBLTDN00OL4/8/12417-00_QBLTDN00OL4/8
26417-00_QBLTDN00OL4/8/12/66417-00_QBLTDN00OL4/8/12417-00_QBLTDN00OL4/8
27417-00_QBLTDN00OL4/8/12/67417-00_QBLTDN00OL4/8/12417-00_QBLTDN00OL4/8
28417-00_QBLTDN00OL4/8/12/98417-00_QBLTDN00OL4/8/12417-00_QBLTDN00OL4/8
29417-00_QBLTDN00OL4/8/13/67417-00_QBLTDN00OL4/8/13417-00_QBLTDN00OL4/8
30417-00_QBLTDN00OL4/8/14/65417-00_QBLTDN00OL4/8/14417-00_QBLTDN00OL4/8
31417-00_QBLTDN00OL4/8/15/100417-00_QBLTDN00OL4/8/15/417-00_QBLTDN00OL4/8
32417-00_QBLTDN00OL4/8/15/97417-00_QBLTDN00OL4/8/15417-00_QBLTDN00OL4/8
33417-00_QBLTDN00OL4/8/15/98417-00_QBLTDN00OL4/8/15417-00_QBLTDN00OL4/8
Sheet1
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
For 365:
Excel Formula:
=TEXTBEFORE(A2,"/",3)
and
Excel Formula:
=TEXTBEFORE(A2,"/",2)
 
Upvote 0
How about for col B
Excel Formula:
=TEXTBEFORE(A2,"/",-1)
and for col C use -2 rather than -1
 
Upvote 0
No (and there is no 2017). If you need it to work on specific versions, you should really specify that in the post in future.
 
Upvote 0
For 2016:
Excel Formula:
=LEFT($A2,FIND("|",SUBSTITUTE($A2,"/","|",3))-1)
and
Excel Formula:
=LEFT($A2,FIND("|",SUBSTITUTE($A2,"/","|",2))-1)
 
Upvote 0
Solution
Excel Formula:
=TEXTBEFORE(A2,"/",-1)
 
Upvote 0
Why post a formula that is exactly the same as one posted 5 hours earlier?
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,143
Members
449,098
Latest member
Doanvanhieu

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