Formula advice

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
272
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I need your help, if possible.

Is there a formula that can rearrange the value of the text string from a cell for example:


Original Value:

4079/LCG330/LC

Required output:

LCG330/4079

Any help is really appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You could use:

=MID(A1,FIND("/",A1)+1,FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1)&"/"&LEFT(A1,FIND("/",A1)-1)

for example.
 
Upvote 0
Hi Rory,

Thank you for your time and advice, I have learnt something new today which I definitely will use again in the future!



You could use:

=MID(A1,FIND("/",A1)+1,FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1)&"/"&LEFT(A1,FIND("/",A1)-1)

for example.
 
Upvote 0
I present you another way

=TRIM(MID(SUBSTITUTE(A2,"/",REPT(" ",99)),99,50))&"/"&TRIM(LEFT(SUBSTITUTE(A2,"/",REPT(" ",99)),50))
 
Upvote 0
Hi Dante,

Thank you for your time, this formula was really useful on another query i got stuck on!




I present you another way

=TRIM(MID(SUBSTITUTE(A2,"/",REPT(" ",99)),99,50))&"/"&TRIM(LEFT(SUBSTITUTE(A2,"/",REPT(" ",99)),50))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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