+ Reply to Thread
Results 1 to 4 of 4

Generate a range of sequential alpha numeric codes based on a from and to value

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Generate a range of sequential alpha numeric codes based on a from and to value

    Good morning,


    I need some help with something.

    I have a list of data that looks like this


    Column A
    A010-A017
    A020-A028
    A119-A122

    I want a macro to generate the following result

    Column A Column B
    A010-A017 A010
    A010-A017 A011
    A010-A017 A012
    A010-A017 A013
    A010-A017 A014
    A010-A017 A015
    A010-A017 A016
    A010-A017 A017
    A020-A028 A020
    A020-A028 A021
    A020-A028 A022
    A020-A028 A023
    A020-A028 A024
    A020-A028 A025
    A020-A028 A026
    A020-A028 A027
    A020-A028 A028
    A119-A122 A119
    A119-A122 A120
    A119-A122 A121
    A119-A122 A122

    These codes can sometimes be in the following format A111 / AA111 / A1111 / AA1111 whilst there is these four different types of codes the from and to will always be in the same format so I will never have a A100 to A1050

    Any help would be greatly appreciated

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Generate a range of sequential alpha numeric codes based on a from and to value

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Generate a range of sequential alpha numeric codes based on a from and to value

    Hi

    A little bit long and convoluted I'm afraid, but I think it does deal with each of your cases.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  4. #4
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Generate a range of sequential alpha numeric codes based on a from and to value

    Hi guys,

    Thank you very much to the both of you for your input.

    Rogers one thankfully works no matter what the first letter of the alpha numeric code is; I stupidly forgot to mention that I needed it to work that way in my original post; if it were just for A*** Patels worked great too.

+ 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. Sort The list of items by Alpha / numeric in their proper sequential order
    By DON_BLACK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 03:42 PM
  2. [SOLVED] Sequential Alpha numeric code in batches, with spaces
    By joee74 in forum Excel General
    Replies: 5
    Last Post: 03-12-2013, 09:33 AM
  3. Formula to separate text from alpha numeric codes
    By Greed in forum Excel General
    Replies: 2
    Last Post: 02-17-2012, 03:48 PM
  4. Alpha Numeric Codes
    By Caddock01 in forum Excel General
    Replies: 2
    Last Post: 07-28-2011, 12:37 PM
  5. [SOLVED] How can I find the alpha numeric codes in excel please,Thank you.
    By Crazylady_2 in forum Excel General
    Replies: 5
    Last Post: 09-27-2005, 12:05 PM

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