Forum Discussion
Radoslavov91
Oct 25, 2021Copper Contributor
VLOOKUP show wrong values
Hi all, i have the following problem with an excel function. I have a file with two sheets, sheet one (AD-Export) contains data for the employees (such as first name, email, department) and the s...
- Oct 25, 2021
As HansVogelaar suggested
=IFNA( INDEX(Table1[Batch-ID], MATCH(Scouts!C2, Table1[mail], 0) ), "no such")
HansVogelaar
Oct 25, 2021MVP
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 Contributor
- 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)), "")