Forum Discussion
VLOOKUP show wrong values
- Oct 25, 2021
As HansVogelaar suggested
=IFNA( INDEX(Table1[Batch-ID], MATCH(Scouts!C2, Table1[mail], 0) ), "no such")
Your VLOOKUP formula looks up C3, i.e. the email address, in the first column of Table1.
But the first column of Table1 that is visible in your screenshot is Division. Does Table1 begin in column A? If so, you should have included it in the screenshot.
Better attach a stripped-down copy of the workbook with some dummy data.
- Radoslavov91Oct 25, 2021Copper ContributorI've missed to add the formula as well: =VLOOKUP(C2;'AD-Export-2021-10-14'!A2:J12;2;FALSE)
- HansVogelaarOct 25, 2021MVP
VLOOKUP always searches for the lookup value in the first column of the range.
Use
=IFERROR(INDEX('AD-Export-2021-10-14'!$B$2:$B$12, MATCH(C2, 'AD-Export-2021-10-14'!$J$2:$J$12, 0)), "")
- Radoslavov91Oct 25, 2021Copper Contributor
HansVogelaar I'm uploading a copy of the file with some sample data
Neither of the proposed formulas worked, unfortunately i don't want to rearrange the columns in AD Export sheet as there are other sheets from the file that are referring to this sheet and they have formulas that might break.
regards
- OliverScheurichOct 25, 2021Gold Contributor
=VLOOKUP(C2,CHOOSE({1,2},'AD-Export-2021-10-14'!$J$2:$J$14,'AD-Export-2021-10-14'!$B$2:$B$14),2,FALSE)
You want vlookup to the left. Please enter this formula as arrayformula with ctrl+shift+enter.
- SergeiBaklanOct 25, 2021Diamond Contributor
VLOOKUP doesn't work to the left