Author: Oscar Cronquist Article last updated on August 10, 2018

Question: How do I search a specific data set, I have two tables to choose from?

Answer:

Formula in cell C13:

=VLOOKUP(C12,INDIRECT(C11),2,0)

Define named ranges

You also need to define the data sets as named ranges.

  1. Select cell range B4:C9
  2. Type in the name box the name you want to use. I wrote Table1.

Repeat above steps with the second data set, I named it Table2. You may define more named ranges if you like.

Dataset layout

Make sure that the tables have data arranged the same way, the VLOOKUP function gets the value from column 2 in the example above.