+ Reply to Thread
Results 1 to 3 of 3

How to lookup a code prefix from another page and autofill with an alphanumeric sequence

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to lookup a code prefix from another page and autofill with an alphanumeric sequence

    I'm looking to populate a series of sequential codes based on a code prefix.

    Sheet 1: Master Code list
    Column A = Lookup Value
    Column B = Code Prefix

    Sheet 2 - Results page
    Column A - list of lookup values - sorted in value order - The number of occurances varies for each value
    Column B - Results list

    I want to populate Column B in the second sheet with a sequential code list for each different value in column A. So for the first value it would have the prefix then proceed numerically (Prefix0001, Prefix0002, Prefix0003...) then for the next value its prefix in sequence (2ndPrefix0001, 2ndPrefix0002, 2ndPrefix003...), etc

    I'm wondering if there is a way to do this all in one step or else if there is a way way to number each occurance of the lookup value in the second page, in which case the code can be concatenated easily by a lookup of the code.

    I suppose on the back of this there is another query - is there a way to concatenate a number where the format is 000# where the concatenated value will retain the leading zeros? I've been trying and it is stripping them out.

    Thanks!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: How to lookup a code prefix from another page and autofill with an alphanumeric sequen

    Perhaps a formula something like this on Sheet2!B1 and copy down column B. Though I'm not sure I follow your data configuration.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to lookup a code prefix from another page and autofill with an alphanumeric sequen

    That's fantastic - exactly what I was looking for but much more efficient than I expected. Thanks!

+ 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. Alphanumeric sequence list
    By Npcw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2013, 10:40 PM
  2. Alphanumeric Sequence
    By donberino in forum Excel General
    Replies: 8
    Last Post: 08-15-2013, 06:22 AM
  3. Replies: 0
    Last Post: 12-12-2012, 06:39 PM
  4. Alphanumeric sequence
    By El Zorro in forum Excel General
    Replies: 7
    Last Post: 04-29-2011, 09:57 PM
  5. Create an alphanumeric sequence
    By footsoreaxe in forum Excel General
    Replies: 11
    Last Post: 11-25-2009, 02:51 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