Here, I have two tables in an Excel sheet, one is the table about the rule between profit rate and sales of each product, the other contains the real sales of products. In the rule table, the more sales are, the much higher the profit rate you will get. Now I want to calculate the profit rate and profit of each product in the table list as below screenshot shown in Excel.
Lookup then multiply based on criteria
To handle this job, I will use VLOOKUP or INDEX function.
1. Select a cell next to the real sales of products, type this formula =VLOOKUP(B3,$A$14:$E$16,MATCH(C3,$A$13:$E$13),0), press Enter key, and drag fill handle over the cells you want to calculate the profit rate. See screenshot:
In the formulas, B3 and C3 are criterion 1 and 2 you lookup based on, A14:E16 and A13:E13 are ranges containing the two criteria.
2. Then in the next column, type this formula =D3*C3, and drag fill handle over the cells you use to calculate profit. See screenshot:
Tip:
You also can use INDEX function =INDEX($B$14:$E$16,MATCH(B3,$A$14:$A$16,0),MATCH(C3,$B$13:$E$13)) to find the relative profit rate.