Excel Dynamic VLOOKUP (with 3 Formulas)

Dynamic VLOOKUP is used to find the value easily from a large amount of data in Excel. VLOOKUP means Vertical Lookup. As regular users of Excel, we all know how the VLOOKUP function works generally. In this article, we will learn about the dynamic VLOOKUP to make our dataset easy and dynamic.


Practice Workbook

Download the following workbook and exercise.


3 Easy Ways to Use Dynamic VLOOKUP in Excel

1. Excel Dynamic VLOOKUP with MATCH Function

The MATCH function finds an exact or appropriate match of data and returns the position in a given range. VLOOKUP function returns only a single matched value. But VLOOKUP with MATCH function makes the formula dynamic. It’s a two-way dynamic lookup. Assuming we have Table 1 of employees’ names with their ID, AGE & SALARY. We are going to find the employee’s single information according to their ID at Cell C12.

Dynamic VLOOKUP with MATCH Function in Excel

STEPS:

  • First, make a drop-down list at Cell C11 by using the Data Validation option.
  • Next, write down the ID in Cell B12 and select Cell C12.
  • Type the following formula:
=VLOOKUP($B12,Table1,MATCH(C$11,Table1[#Headers],0),0)

Dynamic VLOOKUP with MATCH Function in Excel

Formula Breakdown

➤ MATCH(C$11,Table1[#Headers],0)

This will look up the exact match of value (C11) in Table 1 Headers. Make the row number absolute.

➤ VLOOKUP($B12,Table1,MATCH(C$11,Table1[#Headers],0),0)

This will return the exact match of the required cell, Cell B12’s information from the whole dataset. Here the column number will be absolute.

  • Hit Enter to see the result.

Dynamic VLOOKUP with MATCH Function in Excel

  • Now we can change the header name from the drop-down to see another information.
  • For that, Click on the drop-down menu beside the cell.

  • After that, select the option and hit Enter to see the result.

Read More: VLOOKUP with Drop Down List in Excel


2. VLOOKUP with Dynamic Column Reference in Excel

To get a column reference, we can use the COLUMN function. This function saves a lot of time. It makes the column into a cell reference in an array. Here we have an employee dataset. We are going to find the total information of an employee with his/her ID by using a dynamic column reference.

VLOOKUP with Dynamic Column Reference

STEPS:

  • At first, write down the lookup ID.
  • Select Cell C13.
  • Now type the formula:
=VLOOKUP($B$13,Table2,COLUMN(B1),FALSE)

VLOOKUP with Dynamic Column Reference

Formula Breakdown:

➤ COLUMN(B1)

This will help to get the column number.

➤ VLOOKUP($B$13,Table2,COLUMN(B1),FALSE)

This will return the exact match of Cell B13 and return the information from the array (Table2). Make sure to make the column & row numbers absolute.

  • Then press Enter.

  • After that, drag the Fill Handle icon to the right till Cell E13 and see the result.


Similar Readings


3. Using VLOOKUP with Excel COLUMNS Function

Sometimes we need the combination of the VLOOKUP function & COLUMNS function in the case of a large amount of data. COLUMNS function works differently from the COLUMN function. It returns the number of columns in a dataset. Let’s say we have an employee dataset. We are going to find out their information according to their name.

Using VLOOKUP with COLUMNS Function in Excel

STEPS:

  • Type a name in B13 from the list of names given in the Name column of the primary data table.
  • Next select Cell C13.
  • Write down the formula:
=VLOOKUP($B13,$B$4:$D$9,COLUMNS($B4:C4),0)

Formula Breakdown:

➤ COLUMNS($B4:C4)

This will count the number of columns in the range (B4:C4). Here make the first column absolute.

➤ VLOOKUP($B13,$B$4:$D$9,COLUMNS($B4:C4),0)

This will return the exact match of Cell B13 and return the value from the array (B4:D9). Make sure to make the column & row numbers absolute.

  • Hit Enter.
  • At last, drag Fill Handle rightward to see the required results at once.

Read More: VLOOKUP to Return Multiple Columns in Excel (4 Examples)


Conclusion

These are the easiest ways to use dynamic VLOOKUP in Excel. There is a practice workbook added. Go ahead and give it a try. Feel free to ask anything or suggest any new methods in the comment section.


Related Readings

Nuraida Kashmin

Nuraida Kashmin

Hi Everyone! I am Nuraida. Cordially welcome you to my profile. I am a Team Leader of Excel and VBA Content Developer in ExcelDemy. Here I will also post articles related to Microsoft Excel. With a strong educational background in Mechanical Engineering through experimental learning from Rajshahi University of Engineering & Technology. Skilled in Microsoft Word, Creative Writing, Microsoft Excel, Project Management, Support to Organize Different Events, Reporting, Monitoring & Documentation, Online Advocacy and Event Management Related to SAP and Youth Leaders.

We will be happy to hear your thoughts

Leave a reply

ExcelDemy
Logo