Function Problems

Excel Formula to Look Up Two Drop-Down Prices and Multiply by Quantity

Natalie TaylorNatalie Taylor Nov 27, 2026 869 views

Question details

Calculate a total by looking up prices for two drop-down selections, adding the prices, and multiplying by an entered quantity.

Look Up Two Drop-Down Prices and Multiply by Quantity in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Two cells contain selections associated with separate price tables, and a third cell contains a quantity.
Observed behavior
The desired result is the sum of the two selected prices multiplied by the quantity.
Before you start

Identify the cells containing the two selections and the quantity, and locate both price tables. For VLOOKUP, each table must have item names in its first column and numeric prices in its second column.

Solution 1Recommended

Use VLOOKUP to Add Both Prices and Multiply by Quantity

Use this formula when each selection matches an item name in a separate two-column price table.

1
Check the lookup tables

For this example, place the first table's item names and prices in F2:G4 and the second table's item names and prices in I2:J4. Replace these ranges with your actual table ranges if they differ.

2
Enter the total formula

Select D2 and enter =(VLOOKUP(A2,$F$2:$G$4,2,FALSE)+VLOOKUP(B2,$I$2:$J$4,2,FALSE))*C2. A2 and B2 contain the selections, and C2 contains the quantity.

3
Test and copy the formula

Choose values from the drop-downs in A2 and B2, enter a quantity in C2, and check D2. Drag D2's fill handle down to apply the formula to additional rows.

Use VLOOKUP to Add Both Prices and Multiply by Quantity
Check how the drop-down is linked: The formula expects A2 and B2 to contain item names matching the first column of each table. A Form Control drop-down can return a position number in its linked cell instead, so its lookup formula may need to use that number differently.
Calculate drop-down totals

Calculate Two Selected Prices in WPS Spreadsheet

Use VLOOKUP in WPS Spreadsheet to find the price for each selection, add the prices, and multiply the sum by the quantity.

  1. 1. Open the workbook: Open WPS Spreadsheet and use File > Open to select your workbook.
  2. 2. Check the table ranges: Confirm that the selection cells contain item names and that each price table has item names in its first column and prices in its second.
  3. 3. Enter the formula: Select the total cell, such as D2, and enter =(VLOOKUP(A2,$F$2:$G$4,2,FALSE)+VLOOKUP(B2,$I$2:$J$4,2,FALSE))*C2, replacing the references with your own.
  4. 4. Test the calculation: Select an item in A2 and B2, enter a quantity in C2, and check the result in D2. Use the fill handle to copy the formula down if needed.
Calculate totals from two separate price tablesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and cell referencesCopy the formula down for additional selections
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula return #N/A?

At least one selection does not exactly match an item in the first column of its lookup table. Check the values in A2 and B2 and the table ranges for spelling differences or extra spaces.

Can I use named ranges instead of cell ranges?

Yes. If TableA and TableB are named ranges with item names in the first column and prices in the second, enter =(VLOOKUP(A2,TableA,2,FALSE)+VLOOKUP(B2,TableB,2,FALSE))*C2.

What total should I get for prices of $12 and $7.50?

The combined price is $19.50 per unit. With a quantity of 2 in C2, the formula returns $39.00.

Why do the table references use dollar signs?

References such as $F$2:$G$4 stay fixed when you drag the formula down. The selection and quantity references change for each row.