I am trying to use an array formula like SUMPRODUCT to perform a lookup with 2 criteria.
I have a sheet named data that stores customer-specific pricing for products.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Description | General | Cust A | Cust B |
| 2 | Product A | $ 12.90 | $ 7.90 | $ 8.90 |
| 3 | Product B | $ 12.90 | $ 7.90 | $ 8.90 |
| 4 | Product C | $ 15.90 | $ 8.90 | $ 9.90 |
| 5 | Shipping Fee | $ 15.00 | $ 8.00 | $ 18.00 |
In other sheets I have my desired result, customer orders, and I want to be able to return the correct pricing based on the specific customer and product.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Customer Name | Cust B | |||
| 2 | |||||
| 3 | Item | Description | Qty | Unit Price | Total |
| 4 | 1 | Product A | 3 | $ 8.90 | $ 26.70 |
| 5 | 2 | Product B | 5 | $ 8.90 | $ 44.50 |
| 6 | 3 | Product C | 6 | $ 9.90 | $ 59.40 |
| 7 | 4 | Shipping Fee | 1 | $ 18.00 | $ 18.00 |
I tried to use the following formula to match the correct price with the product and customer but am getting errors.
=SUMPRODUCT(Data!$B$2:$M$31, ($B$1=Data!$A$1::$M$1)* ($B4=Data!$A$2:$A$31)* ISNUMBER(Data!$B$:$M$31))