Hi,
I am trying to populate a sheet B based on EMPID from Sheet A. I am doing this using VLOOKUP. Please see details of Sheet A (a sample) as below.
However, when I use VLOOKUP to lookup based on EMPID, I am not able to populate all rows. Say for example, when I lookup using EMPID for EMPID1, I wanted to ensure all rows for EMPID1 (all projects that EMPID1 is assigned to) are populated and not just the first match.
Please advise how can I achieve this?
I am trying to populate a sheet B based on EMPID from Sheet A. I am doing this using VLOOKUP. Please see details of Sheet A (a sample) as below.
EMPID | Name | Project Name | Division |
EMPID1 | Name1 | Project Name1 | Division1 |
EMPID2 | Name2 | Project Name2 | Division2 |
EMPID1 | Name1 | Project Name2 | Division3 |
EMPID1 | Name1 | Project Name3 | Division3 |
EMPID3 | Name3 | Project Name1 | Division2 |
EMPID2 | Name2 | Project Name2 | Division1 |
EMPID3 | Name3 | Project Name4 | Division4 |
EMPID4 | Name4 | Project Name5 | Division5 |
EMPID5 | Name5 | Project Name3 | Division1 |
However, when I use VLOOKUP to lookup based on EMPID, I am not able to populate all rows. Say for example, when I lookup using EMPID for EMPID1, I wanted to ensure all rows for EMPID1 (all projects that EMPID1 is assigned to) are populated and not just the first match.
Please advise how can I achieve this?