Okay - I've changed the code to a function, so you can use it on the worksheet:
The function requires three arguments.
1. Employee - the employee string to be found in all worksheets
2. OutputType - 1 for Sheet Name, 2 for Pay Rate
3. ExcludeCurrent (optional) - false or omitted to include all worksheets, true to exclude the current worksheet.
Use as:
|
F |
G |
1 |
Tabs |
Pay Rate |
2 |
=employeedetails($A2,1,TRUE) |
=employeedetails($A2,2,TRUE) |
3 |
=employeedetails($A3,1,TRUE) |
=employeedetails($A3,2,TRUE) |
4 |
=employeedetails($A4,1,TRUE) |
=employeedetails($A4,2,TRUE) |
5 |
=employeedetails($A5,1,TRUE) |
=employeedetails($A5,2,TRUE) |
Which returns:
|
F |
G |
1 |
Tabs |
Pay Rate |
2 |
Sheet2,Sheet4 |
20,5 |
3 |
|
|
4 |
Sheet3 |
10 |
5 |
Sheet2,Sheet3,Sheet4 |
30,15,15 |
Bookmarks