Help needed with a measure

Kazlik

Board Regular
Joined
Dec 9, 2014
Messages
68
In the table below I want to get the average score for items that meet the following criteria. The combined count of A and B is >2 per each ID. If so then average the counts for products A and B if present in that ID.

For this table I want to see the average score of 20.
2 A 5
2 B 5
3 B 50

ID Product Score Count
1 A 10 1
1 B 10 1
1 C 5 2
2 A 5 2
2 B 5 1
2 D 10 1
3 C 10 1
3 B 50 10
3 F 10 5
4 A 5 2
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Your explanation is not clear. Is the first table a sample of the output you want, or part of the input? You state you want to average the counts but then go on to talk about average the "score". The first table values are not the average of the score in the second table anyway and they have different numbers of columns.

Can you have another go at explaining the problem?
 
Upvote 0

Forum statistics

Threads
1,224,109
Messages
6,176,415
Members
452,728
Latest member
mihael546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top