Arrays, averages

P

PAL

I have a table 30 rows, 3 columns

Col A is product name (3 products)
Col B is region name (US)
Col C is # Unit for each product (5)

Example

Cars US 5
Trucks US 3
Cars Europe 6

How create a formula that will give me the average number of units for the
sum of the products in a given region.

Output in example should be (5+3)/2 =4.5

Thanks.
 
L

Luke M

=SUMIF(B2:B31,"US",C2:C31)/COUNTIF(B2:B31,"US")

Just change the "US" to whatever region you want, or have it refer to
another cell where you have the region listed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top