Forum Discussion
Combining two lookup functions?
- May 13, 2020
Here is an updated solution which I believes answers the question.
It is an array formula so you need to press Ctrl + Shift + Enter to run it on your Excel version.
Instead of lookup, you can place your all unique Ids in separate tab.
Then in the original tab, sort the 2 columns of Effective Date (Newest to Oldest) and Position Code (Largest to Smallest). By this way the combination of these 2 for a particular Id will be at top. After this you can do VLOOKUP on ID present in second tab to fetch Effective Date and Position Code.
Thanks.
Hi ShishirKumar . Thank you for your help. However, a number of employees can have the same position code, so this method isn't working for my data.
- ShishirKumarMay 14, 2020Brass Contributor
HiJoannerw
Though same position code is there for employees but date is different for a combination of Id and position code. I guess sorting and then VLOOKUP can solve your problem.
- JoannerwMay 14, 2020Copper Contributor
Thanks for your suggestion. I've had a response which worked.
- JoannerwMay 13, 2020Copper Contributor
ShishirKumar Alan_Murray Riny_van_Eekelen I've added more info to the question to hopefully provide a bit of clarity. Thanks again.