+ Reply to Thread
Results 1 to 3 of 3

Licence plate number new format

  1. #1
    Registered User
    Join Date
    12-11-2018
    Location
    Zagreb, Croatia
    MS-Off Ver
    365
    Posts
    1

    Question Licence plate number new format

    Hi everyone,

    We need to change a format of licence plate number in cells.

    from Old format
    ZG1234AB
    ZG123AB
    ZG1234A
    ZG123A

    to New format
    ZG 1234-AB
    ZG 123-AB
    ZG 1234-A
    ZG 123-A

    In some cases we have thre numbers and in others four numbers.
    Otherwise we would change text to columns and then concatenate with " ", and "-".

    Can anyone help with macro
    Last edited by rotolic; 12-11-2018 at 09:40 AM.

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Licence plate number new format

    You could try here in below link for text string manipulation.

    https://www.ablebits.com/office-addi...-string-excel/
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Licence plate number new format

    Welcome to the forum.

    This isn't a macro, but will work. It assumes that the numbers always start with 2 letters and end with two letters. Use this formula (assuming original plate number in A2):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down until it converts all your data.
    If you want to replace the old numbers with new, after doing this, select the results of the formulae, copy and then Paste Values over the top of the originals.

    Hope that makes sense and does what you want.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] insert row at truck plate number
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2018, 08:29 AM
  2. How do I 'licence' my vba code?
    By Mallycat in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-08-2013, 08:37 AM
  3. matching number plate macros
    By Dcumby in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 08:24 AM
  4. Licence generation software
    By maxcat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2010, 12:16 AM
  5. Enter number plate and add 1
    By badenairpark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2008, 08:45 AM
  6. Color Plate
    By ali786 in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 04:31 AM
  7. [SOLVED] Licence Verification
    By alanford in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2005, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1