Exercises / Lookups · 7 of 10
Return a whole record at once
If the return range is several columns wide, XLOOKUP returns all of them and the result spills to the right. One formula fills the whole record.
Your taskIn H2, use XLOOKUP to look up the employee ID in G2 and return the whole matching row of A2:D9: name, department, ID and email. The result spills into H2:K2.
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.
| Row | A | B | C | D | E | F | G | H | I | J | K |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Department | Employee ID | ID | Name | Department | ID | ||||
| 2 | Arben Hoxha | Finance | E-1031 | arben@northwind.co | E-1078 | ||||||
| 3 | Bea Lindqvist | Sales | E-1042 | bea@northwind.co | |||||||
| 4 | Carlos Ruiz | Operations | E-1057 | carlos@northwind.co | |||||||
| 5 | Dina Petrova | Sales | E-1063 | dina@northwind.co | |||||||
| 6 | Emeka Obi | IT | E-1078 | emeka@northwind.co | |||||||
| 7 | Fatima Zahra | Finance | E-1081 | fatima@northwind.co | |||||||
| 8 | Goran Ilić | IT | E-1094 | goran@northwind.co | |||||||
| 9 | Hana Sato | Marketing | E-1102 | hana@northwind.co |