Excel range/pivot/lookup query

Bunna

New Member
Joined
Oct 5, 2018
Messages
3
Hi, hoping someone can help with a formula. I have two tables, one on the left with players, scores, team and account columns. this table has a thousand+ rows. On the right is a cut of a pivot showing average score for people in those teams/account types. I want to find the players with the 5% most anomalous scores within each team/account bracket. So a formula for the "Within 95% range" in the first sheet to look up that player's individual score, cross reference it with the relevant team/account average from the "Averages" table, then to calculate if it among the 95% of players with a score closest to that average for that team/account, or if it is in the 5% most anomalous. Example - Tom has a score of 160 and is in the red team with account A. The formula needs to determine the range of scores within Red/A and to see if Tom's score of 160 is in the 95% of scores closest to the red/A average of 100 (from Averages table). Make sense to anyone?

AnalystScoreTeamAccountWithin 95% rangeAverageABCD
Tom160RedA Red100145170200
Sarah120BlueB Blue 125130156180
Sonny132RedB Pink1301250167198
George156RedA Yellow85130150159
Jodie98PinkC
Bruce149YellowC
Leroy200YellowD
Julia120PinkA
Stan98BlueB
Jon132BlueC
Keith189YellowD

<colgroup><col span="4"><col><col span="6"></colgroup><tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,124
Messages
6,128,991
Members
449,480
Latest member
yesitisasport

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