Search entire workbook with around 10-15 sheets and update a cell listing which sheets contains that information.

Rotherzz

New Member
Joined
Aug 6, 2022
Messages
7
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have a workbook that contains around 10-15 sheets which all contain employee information based on what they are currently alligned to.

I was wondering if anyone knows of a formula or a way to search through all of the sheets and if the employee details are found on any of the sheets, that the cell (where the formula is) lists all sheets that has the data in.

The formula will be placed in E2:E6 (Alligned tab picture).
The end goal would ideally look like E2:E6 (End product picture). Incase i have explained it poorly, hopefully that picture will make it clearer.

The pictures are of a quick draft i have made up to keep my work details safe.

Thank you in advance!
 

Attachments

  • Alligned tab.png
    Alligned tab.png
    34.6 KB · Views: 6
  • End product.png
    End product.png
    35.3 KB · Views: 6
I have a workbook that contains around 10-15 sheets which all contain employee information based on what they are currently alligned to.

I was wondering if anyone knows of a formula or a way to search through all of the sheets and if the employee details are found on any of the sheets, that the cell (where the formula is) lists all sheets that has the data in.

The formula will be placed in E2:E6 (Alligned tab picture).
The end goal would ideally look like E2:E6 (End product picture). Incase i have explained it poorly, hopefully that picture will make it clearer.

The pictures are of a quick draft i have made up to keep my work details safe.

Thank you in advance!
That is somewhat possible. It all depends how and what kind of data is stored in those 10-15 sheets.
 
Upvote 0
Thank for for the reply!

It will be the same details that are listed on the main tab (employee information). The others tabs just use a VLOOKUP function to port all of the details to the other tabs depending on what theyre currently alligned to.

Ideally i just need the new formula to search for the employee number on all of the sheets and all of the sheets theyre on listen on the alligned tab, just to easily see who is alligned to what more efficiently.

Hope this helps.
 
Upvote 0
Thank for for the reply!

It will be the same details that are listed on the main tab (employee information). The others tabs just use a VLOOKUP function to port all of the details to the other tabs depending on what theyre currently alligned to.

Ideally i just need the new formula to search for the employee number on all of the sheets and all of the sheets theyre on listen on the alligned tab, just to easily see who is alligned to what more efficiently.

Hope this helps.
Nest XLOOKUP Function within IFS Function in Few Helper Column(s)
Then you can merge those results in 1 Column using TRIM Function

Just to give you some idea -

Excel Formula:
=IFS(XLOOKUP("Name1",Sheet1_Column,Any_Return_Column)<>"","1",XLOOKUP("Name1",Sheet2_Column,Any_Return_Column)<>"","2",True,"")

Also, We can nest XLOOKUP within XLOOKUP but that won't work for you.

To make Formula shorter and avoid repetitive things LAMDA is a perfect solution using LET Function

With the amount of information you have shared, I can only give you idea how to populate Formula(e).
 
Upvote 0
thank you for the reply again.

Im not sure i understand. will "Name1" be the employee number? and do i have to change the sheet number to the name?
 
Upvote 0
thank you for the reply again.

Im not sure i understand. will "Name1" be the employee number? and do i have to change the sheet number to the name?
Simple XLOOKUP for Employee Number on Sheet1 to give you result "1" and so on...

You are already using and familiar to Lookup Function - It's same but easier
 
Upvote 0
I can’t seem to get it to work, I’m using the formula you provided and changed the values to match my sheet but it either shows a value error or name error
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top