Forum Discussion
jtrick
Aug 11, 2024Copper Contributor
VLOOKUP Issue
Hi, My apologies as this is a very basic VLOOKUP question but I can't figure it out. I have data where every person has a research partner. I'm trying to create a Partner_ID variable that contai...
- Aug 12, 2024
Hi jtrick
The two options I've found are either change the order of your columns so that the lookup value (PartnerLast) is in the first column in the range https://support.microsoft.com/en-au/office/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1).
Alternatively, you can use XLOOKUP:
Formula used: =XLOOKUP(C2,$B$2:$B$7,$A$2:$A$7)
PewPewProject
Aug 12, 2024Brass Contributor
Hi jtrick
The two options I've found are either change the order of your columns so that the lookup value (PartnerLast) is in the first column in the range https://support.microsoft.com/en-au/office/vlookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1).
Alternatively, you can use XLOOKUP:
Formula used: =XLOOKUP(C2,$B$2:$B$7,$A$2:$A$7)
jtrick
Aug 12, 2024Copper Contributor
PewPewProject Thank you!! The XLookup equation worked!