Arrays and Average
=SUMIF(B1:B25,"US",C1:C25)/COUNT(1/IF(B1:B25="US",MATCH(A1:A25,A1:A25,0)=ROW($A1:A25)-ROW(A1)+1))
it is an array formula, so commit with ctrl-shift-enter
--
__________________________________
HTH
Bob
"PAL" wrote in message
...
I am working w/ a table. Lets say 25 rows/3 columns
Col 1 is product name
Col 2 is region name
Col 3 is number of units sold
I would like to get the average number of units for the sum of the
products.
So if there are 2 products in the US that sold a combined 15 units, the
average would be 7.5.
I would like to do this for each region.
Please advise on formula. Thanks.
|