Excel Formula to Look Up Two Drop-Down Prices and Multiply by Quantity
Question details
Calculate a total by looking up prices for two drop-down selections, adding the prices, and multiplying by an entered quantity.

- 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.
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.
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.
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.
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.
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.

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. Open the workbook: Open WPS Spreadsheet and use File > Open to select your workbook.
- 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. 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. 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.

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.




