How to Create a Drop Down List and Use VLOOKUP in Excel (4 Easy Steps)

Step 1: Creating a Data Table

To use the VLOOKUP function with the drop-down lists, we need a dataset. The following picture shows a random dataset, with the sales amounts for some salespersons recorded based on months.

There’s another table at the bottom where the salesman and month names must be chosen from the drop-down lists. So, in C15 and C16 cells, we must assign the drop-down criteria for salesmen and months.

In the output Cell C17, we’ll insert the VLOOKUP function to extract the sales for a particular salesman in a particular month.

vlookup with drop down list - creating dataset


Step 2: Defining the Range of Cells with a Name

Steps:

  • Select the range of cells B5:B13.
  • In the Name Box, situated at the top-left corner, give a name to the selected range of cells. In our example, we defined the range of cells by the name ‘Salesman’.

vlookup with drop down list - defining range of cells with a name


Step 3: Setting Up the Drop Down Lists

Steps:

  • Select Cell C15.
  • Choose the Data Validation command from the Data Tools drop-down under the Data tab.

vlookup with drop down list - Setting Up the Drop Down Lists

You’ll find a dialogue box named Data Validation.

  • In the Allow box, select the List option.
  • In the Source box, type:

=Salesman

  • Or, select the range of cells B5:B13.
  • Press OK, and you’ll have just made the first drop-down list for the salesmen.

vlookup with drop down list - Setting Up the Drop Down Lists

You have to create another drop-down list for the months.

  • Select Cell C16 and reopen the Data Validation dialogue box.
  • In the Allow box, choose the List option.
  • In the Source box, select the range of cells (C4:E4) containing month names.
  • Press OK.

Both drop-downs are now ready to display the assigned values.

vlookup with drop down list - Setting Up the Drop Down Lists


Step 4: Using VLOOKUP with Drop-Down Items

Steps:

  • Select the name of a salesman from the drop-down list in C15.

Using VLOOKUP with Drop Down Items in Excel

  • Select the month name from the drop-down in C16.

Using VLOOKUP with Drop Down Items in Excel

  • In the output Cell C17, enter the following formula:
=VLOOKUP(C15,B5:E13,MATCH(C16,B4:E4,0),FALSE)
  • Press Enter and you’ll find the sales value of Antonio for the month of February at once.

Using VLOOKUP with Drop Down Items in Excel

In this formula, the MATCH function has been used to define the column number of the selected month.


Download the Practice Workbook

You can download the Excel workbook to practice.


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Nehad Ulfat
Nehad Ulfat

NEHAD ULFAT is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET but switched gears, working as a content developer.  In this role, he creates techy content all about Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo