+ Reply to Thread
Results 1 to 5 of 5

Combine Column Values + Sequential Number to Create Smart ID Number

  1. #1
    Registered User
    Join Date
    02-17-2020
    Location
    Detroit, MI
    MS-Off Ver
    2019
    Posts
    9

    Question Combine Column Values + Sequential Number to Create Smart ID Number

    SO, I'm a little out of my depth on this one. Here is what I would like to do:

    Create 4 groups of Data. 4 columns will have exclusive access to only 1 group of data. Each cell in the B, C, D, E columns will have a (drop-down menu or something else) that will consist of multiple choice from that columns data group. Each Choice is assigned an alpha or numeric value. The 4 column's choice value will combine to create a 9 digit Alpha Numeric value + a 5 digit sequential value. The sequential value will look to the first 9 to see if it is an existing combination. If it is, then it will look to the last 5 and add the next sequential number. If not, it will start a new sequential number for that 9 digit group starting at 00001.
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Combine Column Values + Sequential Number to Create Smart ID Number

    I have attached a mocked up version of your worksheet you provided.
    I created a new tab called TBL. this is being used for the data validation lists in columns B and C. These are also being used for the vlookups to get the part number.

    Column B and C now have a data validation drop down list.
    Column D and E have not been touched. Not sure where you get that info from so i assume you manually enter. If need be you can create another drop down list and follow suit.

    Column F has the formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is doing a vlookup on column B and C to the table and then concatenating the answers with column D and E. It then adds the 5 digit number starting at 00001 and increasing in value if there are multiples based on a countif formula and a dynamic range.
    Attached Files Attached Files
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    02-17-2020
    Location
    Detroit, MI
    MS-Off Ver
    2019
    Posts
    9

    Re: Combine Column Values + Sequential Number to Create Smart ID Number

    dosydos,

    Wow. That was fast and does exactly what I wanted it to do. You smart people are great. Column D will have the same drop down as B & C and will have the choice of any number ranging from 04-48 (4 inches to 48 inches). Column E will have drop-downs with the option of 00, 15, 30, 60, 75, 90. If I add the validation drop down list to D & E will it mess up the current equation? It appears that it is only looking for the value of the cell and adding the drop-down wouldn't effect the formula?

    I really appreciate your help.

    It appears I'm wrong after studying the formula. I need to add vlookup for both columns D & E?
    Last edited by Nonoffensive Name; 02-18-2020 at 04:44 PM.

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Combine Column Values + Sequential Number to Create Smart ID Number

    I added the two new data validation lists in column D and E based on lists on the TBL tab. I also updated the formula as it was removing the leading 0 from column D and E, and my guess is you want 5 to actually be shown as 05 in the column F.

    new formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-17-2020
    Location
    Detroit, MI
    MS-Off Ver
    2019
    Posts
    9

    Re: Combine Column Values + Sequential Number to Create Smart ID Number

    dosydos,

    Yes, I need it to show 05 versus just 5. This is exactly what I needed. Perfect! Thank you very much.

+ 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. VBA - Insert next sequential number from series in a column
    By pingman3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2018, 02:01 AM
  2. Formula to create a sequential number
    By scruz9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2016, 03:31 PM
  3. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  4. [SOLVED] Changing number values into sequential text values.
    By alex.l_91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2013, 02:37 AM
  5. Generate sequential number after pressing button and create a tracking list.
    By Sam Kuiper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2012, 03:39 AM
  6. Replies: 0
    Last Post: 11-02-2012, 07:57 PM
  7. Replies: 1
    Last Post: 04-23-2006, 07:50 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