Diane Lonergan
asked on
Excel help with Match/Address functionality
I want to populate two cells in a table as rows are added, The first column is each row has a drop down which references all the staff records on the pr tab. e.g.if Staff number 33 is selected from the dropdown on the absence table, the name will then populate from the PR table.
Employee-PR.xlsx
Employee-PR.xlsx
Slight tweak to Neeraj's suggestion:
=IF([@StaffNo]="","",IFERR OR(VLOOKUP ([@StaffNo ],MAsterPr Tab[#All], MATCH(B$1,MAsterPrTab[#Hea ders],0),0),""))
Matching header will make more dynamic when copying.
=IF([@StaffNo]="","",IFERR
Matching header will make more dynamic when copying.
ASKER
That's great . how would I amend it to allow me to pick up the surname too? I can see how to do it with a fixed column, by replacing the Match command with the value 3, but I like the more dynamic approach of your solution.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much both of you and I have learned a lot from the solutions.
In B2
Open in new window
In C2
Open in new window
Employee-PR.xlsx