I have a problem where I am trying to determine percentage averages for multiple customers in a given period. For example in the graphic below, "Cust 1" has 10 units at a 10 percent discount, Customer 2 had 20 units at a 5% discount and so on. For the quarter, the average discount is calculated at 10% in cell C12 using the formula ((C6*C7)+(C8*C9)+(C10*C11)+(C12*C13))/C15.
-- removed inline image ---
This is an example, but I have cases with dozens and dozens of customers. It seems like a job for sumproduct but when I use that, the result is obviously 0 as the 10 Units for "Cust 1" multiplies by the 0 generated where cell B3 returns a zero since it isn't a unit.
Is there a formulaic way to do what I am calculating above?
-- removed inline image ---
This is an example, but I have cases with dozens and dozens of customers. It seems like a job for sumproduct but when I use that, the result is obviously 0 as the 10 Units for "Cust 1" multiplies by the 0 generated where cell B3 returns a zero since it isn't a unit.
Is there a formulaic way to do what I am calculating above?
Last edited by a moderator: