Google Sheets – How to Refer Values in Other Column by Key (Like SQL Join)

google sheetsgoogle-apps

I have a sheet/document with item number and it's price.
In an invoice, I have:

| Number | Qty | Price | ... | Total price
| 21     | 3   |  ???  | ... | = C2 * B2

I'd like the Price column to be filled by looking up the value from other sheet or document, i.e. something like

=LOOKUP( PricesSheet, Column C, row with value from A2).

Basically, I want a SQL join functionality.

How can I do that?

Best Answer

Please try something like:

=vlookup(A1,Sheet2!H:I,2,0)  

where ColumnH in Sheet2 ('other sheet') contains Number and ColumnI of the same row the corresponding unit price.