Excel dropdown VLOOKUP & SUM formula

You are currently viewing Excel dropdown VLOOKUP & SUM formula

In Excel, to calculate the sum of numeric values across multiple columns based on the selection of the dropdown list, I will use data validation to create dropdown list and use the SUM and VLOOKUP functions together.

VLOOKUP looks for the value in the vertical data and returns a value from the given column number.

The following dataset contains the number of cold drinks consumed:

Dataset

Now I want the program to instantly calculate the sum of the cold drink selected from the dropdown list, like shown below:

Calculating the sum across multiple columns based on the selection of the dropdown list

To accomplish the task, I perform the following steps:

I use data validation using the shortcut [Alt A V Enter] in sequence to create a dropdown list in H5, listing all the drink names in column A, like so:

Using data validation to create dropdown

After creating the dropdown, I construct my SUM and VLOOKUP formula in H6, like shown below:

Constructing SUM and VLOOKUP formula

To replace the N/A error with an empty string "", I nest my entire formula in the IFNA function.

Your dropdown VLOOKUP and SUM formula is ready! I hope this post helped you.

Download Practice Workbook

Kunal

Hey, I am Kunal Aggarwal, the founder and author of Kunal Excel Tip based in New Delhi, India. I have completed my postgraduation from NIIT Limited, New Delhi in Excel course in 2019. Since then, I have been using and learning Microsoft Excel and started writing posts on the spreadsheet software here since March 2024.

Leave a Reply