Look up Sheet name & retrieve cell value

L

Legacy 400409

Guest
looking for a formula where by i enter a sheet name and it will retrieve values from that specific sheet, all sheets will have the same formatting and cell locations such as names, id, etc.
Application form:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Name[/TD]
[TD][/TD]
[TD]Employee ID[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date Start[/TD]
[TD][/TD]
[TD]Date End[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]No. Of Days[/TD]
[TD][/TD]
[TD]Reason[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Department[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]








Employees Worksheets (will be many, same layout).
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]Name[/TD]
[TD]*[/TD]
[TD][/TD]
[TD]Date Start[/TD]
[TD]Date End[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Department[/TD]
[TD]*[/TD]
[TD][/TD]
[TD]1/4/19[/TD]
[TD]2/4/19[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]DOB[/TD]
[TD]*[/TD]
[TD][/TD]
[TD]5/6/19[/TD]
[TD]5/6/19[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Date Joined[/TD]
[TD]*[/TD]
[TD][/TD]
[TD]5/7/19[/TD]
[TD]13/7/19[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]











Sheet Name will be same a employee id, i just want it to retrieve the information to correct cell in the application form
Thank you
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
The easiest way I know to do this is to use the INDIRECT function. If your employee IDs are all valid worksheet names, it is pretty simple. The employee ID numbers do not have any blanks or special characters, for example, "654321".

In worksheet "shee1" you have a cell B2, you have an employee ID number "654321". There is a worksheet named "654321" with a value that you wan to retrieve in cell D10.

In some other cell on sheet1, you can put the following formula:

=INDIRECT(B2&"!$D$10)

and you will have the value you wanted.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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