Formula needed to search in multiple sheets for a name, and if yes then sheet title will be listed

%3CLINGO-SUB%20id%3D%22lingo-sub-2385037%22%20slang%3D%22en-US%22%3EFormula%20needed%20to%20search%20in%20multiple%20sheets%20for%20a%20name%2C%20and%20if%20yes%20then%20sheet%20title%20will%20be%20listed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385037%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%26nbsp%3B%20I%20am%20not%20sure%20if%20such%20a%20formula%20exists%20in%20Excel...%20but%20this%20is%20what%20I%20would%20like%20to%20do...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20an%20excel%20spreadsheet%20of%20employee%20training.%26nbsp%3B%20There%20are%20multiple%20sheets%2C%20all%20with%20the%20exact%20same%20table%20but%20for%20each%20type%20of%20training%20and%20the%20list%20of%20employees%20who%20had%20the%20training.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20a%20fresh%20sheet%2C%20Sheet%201%2C%20I%20have%20made%20a%20dropdown%20list%20of%20the%20employees%20in%20a%20cell%2C%20A1.%20Then%20in%20a%20different%20cell%2C%20B1%2C%20I%20would%20like%20a%20formula%20that%20basically%20says%3A%20if%20A1%20(and%20I%20choose%20an%20employee%20name%20from%20the%20dropdown%20list%2C%20we'll%20say%20John%20Smith)%20is%20found%20on%20Sheet%202%2C%20Sheet%203%2C%20or%20Sheet%204%2C%20then%20cell%20A1%20(title%20of%20the%20sheet)%20of%20the%20sheets%20that%20John%20Smith%20is%20found%20on%20will%20be%20listed%20in%20Sheet%201%2C%20B1%3AB3.%26nbsp%3B%20(Like%20if%20John%20Smith%20is%20found%20on%20all%20three%20sheets%202-4%2C%20then%20three%20training%20titles%20would%20be%20listed%2C%20or%20if%20only%20on%20sheet%202%20and%204%2C%20then%20two%20training%20titles%20are%20listed).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20I%20asking%20too%20much%20of%20Excel%3F%26nbsp%3B%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2385037%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385328%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20needed%20to%20search%20in%20multiple%20sheets%20for%20a%20name%2C%20and%20if%20yes%20then%20sheet%20title%20will%20be%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1063006%22%20target%3D%22_blank%22%3E%40downekc09%3C%2FA%3E%26nbsp%3BI%20think%20the%20most%20straightforward%20solution%20to%20me%20would%20be%20to%20condense%20all%20your%20tables%20into%20one%20table%2C%20and%20just%20add%20a%20column%20that%20indicates%20which%20training%20a%20given%20row%20is%20for.%20This%20would%20allow%20you%20to%20filter%20by%20training%20to%20see%20a%20list%20of%20everyone%20who%20has%20taken%20that%20training.%20It%20would%20also%20allow%20you%20to%20filter%20by%20employee%20to%20see%20all%20the%20trainings%20they've%20taken.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello!  I am not sure if such a formula exists in Excel... but this is what I would like to do...

 

I have an excel spreadsheet of employee training.  There are multiple sheets, all with the exact same table but for each type of training and the list of employees who had the training.

 

On a fresh sheet, Sheet 1, I have made a dropdown list of the employees in a cell, A1. Then in a different cell, B1, I would like a formula that basically says: if A1 (and I choose an employee name from the dropdown list, we'll say John Smith) is found on Sheet 2, Sheet 3, or Sheet 4, then cell A1 (title of the sheet) of the sheets that John Smith is found on will be listed in Sheet 1, B1:B3.  (Like if John Smith is found on all three sheets 2-4, then three training titles would be listed, or if only on sheet 2 and 4, then two training titles are listed).

 

Am I asking too much of Excel?  Thanks!

4 Replies

@downekc09 I think the most straightforward solution to me would be to condense all your tables into one table, and just add a column that indicates which training a given row is for. This would allow you to filter by training to see a list of everyone who has taken that training. It would also allow you to filter by employee to see all the trainings they've taken.

I see mhglb already responded with a nearly identical suggestion but since I typed this earlier but got pulled away, I figured I would still send it:
You could do this by linking tables or by manually entering sheet names in the formula or by having a list of the sheet names, but I suspect you want something a bit more automated to automatically detect all the sheets.
What I would recommend is for you to rethink your data entry in the first place. Consider this:
Master Sheet: A table with columns including Training Name, Employee Name and any other relevant info (or a second table/sheet could have Training Name and relevant info on that training and even a 3rd table/sheet could have Employee Name and their relevant info and yes this is mimicking a database structure).
Report Sheet: This sheet would have a PivotTable (or a custom lookup table to fit a custom form)
You could then also have custom report sheets for training sessions vs employees vs company wide, etc... Having all the data in 1 or a couple linked tables may give you much more flexibility and options.

@downekc09 I ended up figuring something out!  I have a tab with "All" info (I get it online from an account that creates it, then I sort by training).  Then I have separate tabs for each training that automatically update from the "All" tab with the names, expiration dates, if qualified, etc.  Then I have another "Training List" tab that lists each training and hyperlink to that specific training tab.  The last tab I made is the "Employee" tab which is the one I was having trouble with and figured out a couple formulas!  I have a drop down list of each employee name.  When a name is selected, a list of their trainings show up.  I made it so that if "John Smith" is found in this training tab, then the title will be listed.  Then I used conditional formatting to "white" out the "FALSE" results.

Thanks!

The reason I wanted to make it this way was to make it user friendly for some of the employees here. If they want to see a specific employee's training, they use the "Employee" tab, and if they want to see who all has First Aid training, then they use the "Training List" tab and click on First Aid. I also added a Home hyperlink on each tab that goes back to the "Training List" tab.