+ Reply to Thread
Results 1 to 5 of 5

Creating unique ID based on the number of entries

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Creating unique ID based on the number of entries

    Hey all,

    I am looking for a formula that will select a unique ID from a table of possible IDs based on the number of entries in multiple pages. In the attached document, the formula would go in the green highlighted cells on sheet 1, 2, and 3 (B4:B15). The formula would assign one of the IDs from the table on the worksheet ID_Database to the cells that have a value in them.

    For example, on sheet 1 cells B4:B7 would be 1,2,3,4 then on sheet 2 cells B4:B7 would be 5,6,7,8,9. Wherever the next name is added (sheet 1,2, or 3 would get the value 13 given there are already 12 names)

    I'm not sure if I need a macro for this, but I would like to solve it with a formula if at all possible.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Creating unique ID based on the number of entries

    I would create a list of names, segment, and ID number and then use a matching formula to show the ID numbers on the different segment worksheets.

    See attachment.
    Attached Files Attached Files

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Creating unique ID based on the number of entries

    Going further, you can put in a formula to give you the list of names in each segment.

    This way, all that you have to do is add the name and segment into the database worksheet and everything will be populated automatically.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Creating unique ID based on the number of entries

    I won't be able to double enter fields in the master file I'm working on, there are a ton of segments, and they get updated pretty frequently.

    That's a helpful starting point though, I might be able to reproduce the table with the names you made on ID_Database by returning all of the nonblank cells from the ranges on each of the earlier tabs. Now I need to figure that out when my range includes multiple worksheets :P

    Thanks!

  5. #5
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Creating unique ID based on the number of entries

    haha I was literally typing up your second recommendation as you posted that. I think I need to do it the other direction though because in the master document the values won't be entered all on one tab, they will be input on the different segment tabs. I think it might still work though.

+ 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] Creating a certain number of entries based on a number in a cell
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 07:05 AM
  2. Creating a certain number of entries based on a number in a cell
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  3. Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Creating a certain number of entries based on a number in a cell
    By PPV in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-16-2005, 06: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