Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to use Array with Sumproduct or other formula

$
0
0

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.

ABC       D
1DescriptionGeneralCust ACust B
2Product A $ 12.90 $ 7.90 $ 8.90
3Product B $ 12.90 $ 7.90 $ 8.90
4Product C $ 15.90 $ 8.90 $ 9.90
5Shipping 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.

ABCDE
1Customer NameCust B
2
3ItemDescriptionQtyUnit PriceTotal    
41Product A3 $ 8.90 $ 26.70 
52Product B5 $ 8.90 $ 44.50
63Product C6 $ 9.90 $ 59.40 
74Shipping Fee1 $ 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))

Link to my sample Google spreadsheet


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>