How to Use Dynamic VLOOKUP in Excel?

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 generally works. In this article, we will learn about the dynamic VLOOKUP to make our dataset easy and dynamic.


How to Use Dynamic VLOOKUP in Excel: 3 Easy Ways

Here, we will demonstrate 3 easy ways to use dynamic VLOOKUP in Excel. This section provides extensive details on these methods. Therefore, you should learn and apply these to improve your thinking capability and Excel knowledge. We use the Microsoft Office 365 version here, but you can utilize any other version according to your preference.

Read More: 10 Best Practices with 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. The VLOOKUP function returns only a single matched value. But VLOOKUP with the 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. Therefore, follow the below steps.

Dynamic VLOOKUP with MATCH Function in Excel

STEPS:

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

Dynamic VLOOKUP with MATCH Function in Excel

  • After that, hit Enter to see the result.

Dynamic VLOOKUP with MATCH Function in Excel

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

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

Formula Breakdown

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

Firstly, 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)

At last, 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.

Read More: 7 Practical Examples of VLOOKUP Function 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. So, learn the below steps.

VLOOKUP with Dynamic Column Reference

STEPS:

  • First, write down the lookup ID.
  • Now, select cell C13.
  • Next, type the formula:
=VLOOKUP($B$13,Table2,COLUMN(B1),FALSE)

VLOOKUP with Dynamic Column Reference

  • Then, press Enter.

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

Formula Breakdown

➤ COLUMN(B1)

At first, this will help to get the column number.

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

Lastly, this will return the exact match of Cell B13 and return the information from the array (Table 2). Make sure to make the column & row numbers absolute.


3. Using VLOOKUP with Excel COLUMNS Function

Sometimes we need the combination of the VLOOKUP function and the COLUMNS function in the case of a large amount of data. The COLUMNS function works differently from the COLUMN function where it returns the number of columns in a dataset. Let’s say we have an employee dataset. So, we are going to find out their information according to their name. Therefore, learn the following process.

Using VLOOKUP with COLUMNS Function in Excel

STEPS:

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

  • Afterward, hit Enter.
  • Finally, drag the Fill Handle rightward and see the required results at once.

Formula Breakdown

➤ COLUMNS($B4:C4)

Firstly, 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)

At last, this will return the exact match of cell B13 and return the value from the array (B4:D9). Again, make sure to make the column and row numbers absolute.

Read More: How to Make VLOOKUP Case Sensitive in Excel


Download Practice Workbook

Download the following workbook and exercise.


Conclusion

These are the easiest ways to use dynamic VLOOKUP in Excel. Afterward, there is a practice workbook added. So, go ahead and give it a try. Lastly, in the comment section, feel free to ask anything or suggest any new methods.


Related Articles


<< Go Back to Excel VLOOKUP Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nuraida Kashmin
Nuraida Kashmin

Nuraida Kashmin, Bachelor's degree in Mechanical Engineering from Rajshahi University of Engineering & Technology. Since 2021, she wrote 45+ articles on Excel problems and reviewed over 1000 articles. Currently working as a Project Manager, she is responsible for developing and implementing content strategies, managing writers and editors, staying updated on new technology, analyzing data, and tracking content performance indicators. Her interests include Project Management, Creative Writing, Digital Marketing, Reporting, Monitoring & Documentation, and Online Advocacy for SAP &... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo