![]() |
Arrays, averages
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. |
Arrays, averages
=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. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "PAL" wrote: 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. |
All times are GMT +1. The time now is 04:49 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com