+ Reply to Thread
Results 1 to 5 of 5

Generate Unique ID Using Criteria and across multiple sheets

  1. #1
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Generate Unique ID Using Criteria and across multiple sheets

    Hello Folks!

    I'll jump right in. I have a training plan and I want to automatically generate class IDs. The IDs are in a specific format, and I have a formula written up to the last item I need which is the sequential order of the class by room. The syntax of the class ID is as follows Location_Room_Subject_yyyy_mm_dd_'unique number'

    That unique number where I need the assistance. The number is sequential by the room. So regardless of the Location, Subject, and Date, the number will increase by one for each class as long as it is in the same room. Furthermore, I have two types of classes, we'll call them NH and T and they are located on separate sheets. I need the formula to be able to also look at the classes that are in the same room in both sheets and track the sequentially.

    For example. I have the following class on the NH sheet: LOC_ONE_Ivory_2016_10_17_6 that started on 17-Oct. On the T tab I have a class that starts in the same room (ONE) on 30-Oct so it would be the next class and would be called LOC_ONE_Maroon_2016_10_30_7.

    I am not the best at using words to describe my issue, so I have attached an example file with the formula as far as I'd gotten with it as well as the desired outcome. I hope it explains things a bit better. But please let me know if I can clarify further.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Generate Unique ID Using Criteria and across multiple sheets

    Hi,

    Not sure if I am missing something, but in your desired outcome for Loc_One it jumps from 6 to 10 at the end!

    I think this is what you are after though...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Re: Generate Unique ID Using Criteria and across multiple sheets

    Hey spitfireblue, thank you for your reply. The reason why LOC_One jumps from 6 to 10 is because there are three classes on the T sheet that was in LOC_One before what I have labeled as class 10 that I want to take into account. That's where it became tricky for me, as I can't figure out how to also reference the classes that are in Sheet T.
    Last edited by sinspawn56; 01-13-2017 at 12:46 PM.

  4. #4
    Forum Contributor
    Join Date
    02-13-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2015
    Posts
    183

    Re: Generate Unique ID Using Criteria and across multiple sheets

    I just want to add that spitfireblue is very close to what I need, but I need that last bit of formula to also be able to look at another sheet to determine the next number in the sequence.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,855

    Re: Generate Unique ID Using Criteria and across multiple sheets

    Perhaps this will get you a little further down the road to a solution. Sheet 1 is filled by formulas that get the values of the tables on the NH and T sheets, then the following array entered formula* in column O sorts those tables by date:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    A derivation of spitfireblue's formula then produces the UID.
    Column B of both the NH and T sheets is populated by the array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The numbering of B7 and B8 on the T sheet is different from the expected, which could be remedied by putting the entries in time sensitive order within the dates when the data is entered.
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Generate Field with Multiple Criteria
    By SUNAYANI in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-26-2016, 12:58 PM
  2. [SOLVED] List unique values corresponding to certain criteria from across multiple sheets
    By andredl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2014, 12:37 AM
  3. Generate Unique List Meeting Criteria
    By ictodd in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-22-2014, 03:06 AM
  4. [SOLVED] Generate a pending list from multiple sheets
    By stevense28 in forum Excel General
    Replies: 11
    Last Post: 03-26-2014, 02:27 PM
  5. Excel Function to Generate list of unique entries from multiple columns
    By ronnycool in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 06:15 PM
  6. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  7. Excel Generate List from Multiple Sheets
    By Scorpio in forum Excel General
    Replies: 5
    Last Post: 05-16-2008, 01:20 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