Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi all,
I have a large population of data and need to find the average number of "Subproducts" per "ID". Basically, the data has thousands of different "IDs" and then anywhere from 1 to 6 different subproducts that can be associated with each ID. Some have 1, some have 6, some have a number in between. I need to find the average number of unique subproduct values per ID for the entire population in one cell. So, basically it would come down to finding the number of unique values for each ID and then averaging out that entire number over the number of total IDs. For the data below (which is much more simplified than the real set obviously), the "Average # of Subproducts per ID" field would read: (2 for A, 3 for B, 4 for C, 3 for D, 1 for E, and 3 for F) So you get a total of 16 unique combinations of ID and subproduct over 6 different IDs which equals 2.667, which is what I would want the cell to show. ID Subproduct A Cat A Dog B Cat D Dog F Mouse D Rabbit D Rabbit A Cat C Dog C Cat B Dog B Mouse E Rabbit E Rabbit F Cat F Dog F Cat D Dog D Mouse C Rabbit C Rabbit B Cat B Dog A Cat B Dog C Mouse |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Multiple Array Criteria - Determine Average Result | Excel Worksheet Functions | |||
running total and average of that total after 3 events | Excel Discussion (Misc queries) | |||
running total and average of that total after 3 events | Excel Discussion (Misc queries) | |||
Should grand total equal average of sub total | Excel Discussion (Misc queries) | |||
Counting total for multiple criteria | Excel Worksheet Functions |