When you want to find a value from the data in another sheet, you can use VLOOKUP. And this tutorial explains it with an easy-to-follow example.
You can use the below steps to write this formula:
- First, enter VLOOKUP in a cell, and the lookup_value argument refers to the cell where you have the lookup value.
- After that, enter a comma and click “Sheet 2” to open it.
- Now, in “Sheet 2”, select the table where you have the Product ID and Quantity.
- Next, again enter a comma and specify 2 in the col_index_num argument.
- From here, in the [range_lookup], enter 0 or FALSE for an exact match lookup.
- In the end, close the function and hit enter to get the result in the cell in the sheet “1”.
If you change the name of the sheet where you have the data, Excel is also smart enough to change it in your formula. So you don’t need to worry before changing the name of the sheets.
But you must ensure that once you delete the datasheet, your formula will show the #REF! Error in the result. And there’s no way to undo the deletion of a sheet.
You can also turn the data from another sheet into a named range and refer to it in the VLOOKUP. With this, you don’t need to open the second sheet while writing the formula. Instead, you can enter the named range, and Excel will refer to the data.