• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Correction in Vehicle Number

Shabbo

Member
Dear Sir,

I have system generated Vehicle Number which are not matching with the correct number, I have mentioned correct Vehicle number in column B.
I wanted to match /convert the wrong vehicle numbers with correct one.
 

Attachments

  • Correction in Vehicle Number.xlsx
    8.1 KB · Views: 4
=RIGHT(A2,2) & MID(A2,7,2) & " " & MID(A2,5,2) & " " & LEFT(A2,4) and copy down
Dear Sir,
Thanks for your reply, but its not working in second case

Wrong Vehicle Number​
Correct Number​
Formula​
3051JK04AB​
AB04 JK 3051​
AB04 JK 3051​
3211AB04FU​
AB04 FU 3211​
FU04 AB 3211​
 
Dear Sir,
Thanks for your reply, but its not working in second case

Wrong Vehicle Number​
Correct Number​
Formula​
3051JK04AB​
AB04 JK 3051​
AB04 JK 3051​
3211AB04FU​
AB04 FU 3211​
FU04 AB 3211​
Alan's formula expects your data to be in certain format. Your data is inconsistent so you need to provide rule for placing the alphabet pairs e.g. it will always be AB and therefore the other pair shall be placed after placing 2 digits. Defining problem clearly is the first requisite when you are looking for solutions online.
 
Alan's formula expects your data to be in certain format. Your data is inconsistent so you need to provide rule for placing the alphabet pairs e.g. it will always be AB and therefore the other pair shall be placed after placing 2 digits. Defining problem clearly is the first requisite when you are looking for solutions online.
Dear Sir,
Thanks for your reply, yes it will like "AB04 FU 3211 ".
 
Back
Top