Looking up from another sheet

1 / 7

We want the price of each product in B2:B7. The answers go in D2:D7.

keyboard Typing formulas is easiest on a computer with a keyboard.

A1
ABCDE
1OrderProductQuantityPrice
2#1657Wireless Mouse2
3#1659Bookshelf1
4#1667Filing Cabinet11
5#1663USB-C Hub12
6#1681Desk Organiser5
7#1672Monitor Stand9
8
9
10
11
12
13
14
15
products
prices here
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
Study notes

How VLOOKUP and XLOOKUP works

  • How do I point at another sheet?

    Put the sheet name and an exclamation mark in front of the cells: Prices!A2:C11 means cells A2 to C11 on the Prices sheet. A reference without a sheet name always means the sheet the formula is on.

  • Do I have to type the sheet name?

    No. While typing the formula, click the sheet's tab at the bottom and select the cells. Excel writes Prices!A2:C11 for you. Press Enter to finish, and you're taken back to the sheet you started on.

  • What if the sheet name has spaces?

    Wrap it in single quotes: 'Price List'!A2:C11. Clicking the tab adds the quotes for you.

  • Why lock the range with $?

    Filling down moves the cells, even on another sheet: Prices!A2:C11 becomes Prices!A3:C12 one row down. Prices!$A$2:$C$11 stays put. Press F4 while the cursor is on the range.

  • Does XLOOKUP work the same way?

    Yes. Both arrays need the sheet name: =XLOOKUP(B2,Prices!$A$2:$A$11,Prices!$C$2:$C$11).

Know someone fighting with a spreadsheet? Send them this page.