Exercises / Lookups · 6 of 10

XLOOKUP with a friendly "not found"

XLOOKUP(value, lookup_range, return_range, [if_not_found]) finds a value and returns the matching item. It matches exactly by default, looks in any direction, and takes a fallback for missing values.

Your taskIn G2, use XLOOKUP to return the department of the employee ID in G1. If the ID is not in the list, return "Not found".
Pro

Unlock this exercise and every module after the basics.

Pro opens every exercise in every module, your review schedule, and the final test for the course certificate.

RowABCDEFG
1NameDepartmentEmployee IDEmailIDE-1057
2Arben HoxhaFinanceE-1031arben@northwind.coDepartment
3Bea LindqvistSalesE-1042bea@northwind.co
4Carlos RuizOperationsE-1057carlos@northwind.co
5Dina PetrovaSalesE-1063dina@northwind.co
6Emeka ObiITE-1078emeka@northwind.co
7Fatima ZahraFinanceE-1081fatima@northwind.co
8Goran IlićITE-1094goran@northwind.co
9Hana SatoMarketingE-1102hana@northwind.co