Find Relative Position, with Multiple Criteria?

mark2323

New Member
Joined
Mar 25, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have a table of data, and I'm trying to draw the top 30 values in the STATS_P[PTS] column and list those values sequentially to GAME_P!F8:F37. There is one criteria in the formula, and that is matching GAME_P!$A$2 to the values in STATS_P[REPLAY] column. This is working great at this point. My problem comes when trying to pull the relative row position of those top 30 values (This shows in GAME_P!C8:C37). The results in GAME_P!C8:C37 are reflecting relative positions WITHOUT the desired criteria of matching GAME_P!$A$2 to the STATS_P[REPLAY] column as I did successfully in GAME_P!F8:F37. I can't figure out a way to enter and use the criteria of matching GAME_P!$A$2 to the STATS_P[REPLAY] column in the formula, to only pull the relative positions of those top 30 values that match the selected Replay.

FORMULA in GAME_P!F8:F37 that is correctly pulling appropriate Top 30 values with matching GAME_P!$A$2 to the values in STATS_P[REPLAY] column:
=IF($A$2="(All)",AGGREGATE(14,6,INDIRECT($B$3),D8),AGGREGATE(14,6,INDIRECT($B$3)/(STATS_P[REPLAY]=VALUE($A$2)),D8))

FORMULA in GAME_P!C8:C37 that is pulling Top 30 values, with no consideration of matching GAME_P!$A$2 to the values in STATS_P[REPLAY] column:
=AGGREGATE(15,6,(INDIRECT($B$3)=$F8)/(INDIRECT($B$3)=$F8)*(ROW(INDIRECT($B$3))-ROW(PLAYERS!$F$1)),$B8)

I've tried many different variations of the formula to accomplish this, but have been unsuccessful. Is there a way to do this?


Screenshot (185).jpg
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Reminder:
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Find Relative Position, with Criteria
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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