SammySpaceman
Board Regular
- Joined
- Aug 18, 2002
- Messages
- 64
- Office Version
- 2019
- Platform
- Windows
Hi,
I have a list of titles in Column A with the corresponding number of plays in Column HG. What I am trying to do is create a Top Ten List of most played titles. I'd like it to be dynamic; so, as more plays are accrued throughout, the list adjusts accordingly.
In a different sheet, I use Large to figure out the top ten number of plays, and input those values into the B Column, starting with B75. I.e. =LARGE('Full Stats'!$HG$3:$HG$98,1)
Then, I used Index/Match to locate the corresponding title for those plays, and input those values into the A Column, starting with A75. I.e. =INDEX('Full Stats'!$A$3:$A$98,MATCH(B75,'Full Stats'!$HG$3:$HG$98,0)))
That worked until I encountered duplicate values for number of plays. To return each title that had a duplicate number of plays, I used this formula: =IFERROR(INDEX('Full Stats'!$A$3:$A$98, SMALL(IF($B$78='Full Stats'!$HG$3:$HG$98, ROW('Full Stats'!$HG$3:$HG$98)-ROW('Full Stats'!$HG$3)+1), ROW(1:1))),"" )
Additionally, I was able to extend it across the number of cells that had duplicate values.
At that point, I thought I might be able to use IF to combine the features to create the dynamic part of the list. The reason for this is that the values won't always match, and, when they do match, there could be two matches or three or even four. So, I tried using the below formula to evaluate the value in Column B with the one below it to see if those number of plays would match. My logic was that if they did match, I might be able to use the Index/Small formula listed above, and, if they didn't match, I could use the Index/Match formula listed above.
Here's the formula I tried: =IF(B79=B78,INDEX('Full Stats'!$A$3:$A$98, SMALL(IF($B$78='Full Stats'!$HG$3:$HG$98, ROW('Full Stats'!$HG$3:$HG$98)-ROW('Full Stats'!$HG$3)+1), ROW(1:1))),INDEX('Full Stats'!$A$3:$A$98,MATCH(B78,'Full Stats'!$HG$3:$HG$98,0)))
The weird thing is that when I click on the Function Argument, the Formula result listed is the correct title. However, once I click OK, the title displayed in the cell is not the correct one.
Any help is greatly appreciated.
I have a list of titles in Column A with the corresponding number of plays in Column HG. What I am trying to do is create a Top Ten List of most played titles. I'd like it to be dynamic; so, as more plays are accrued throughout, the list adjusts accordingly.
In a different sheet, I use Large to figure out the top ten number of plays, and input those values into the B Column, starting with B75. I.e. =LARGE('Full Stats'!$HG$3:$HG$98,1)
Then, I used Index/Match to locate the corresponding title for those plays, and input those values into the A Column, starting with A75. I.e. =INDEX('Full Stats'!$A$3:$A$98,MATCH(B75,'Full Stats'!$HG$3:$HG$98,0)))
That worked until I encountered duplicate values for number of plays. To return each title that had a duplicate number of plays, I used this formula: =IFERROR(INDEX('Full Stats'!$A$3:$A$98, SMALL(IF($B$78='Full Stats'!$HG$3:$HG$98, ROW('Full Stats'!$HG$3:$HG$98)-ROW('Full Stats'!$HG$3)+1), ROW(1:1))),"" )
Additionally, I was able to extend it across the number of cells that had duplicate values.
At that point, I thought I might be able to use IF to combine the features to create the dynamic part of the list. The reason for this is that the values won't always match, and, when they do match, there could be two matches or three or even four. So, I tried using the below formula to evaluate the value in Column B with the one below it to see if those number of plays would match. My logic was that if they did match, I might be able to use the Index/Small formula listed above, and, if they didn't match, I could use the Index/Match formula listed above.
Here's the formula I tried: =IF(B79=B78,INDEX('Full Stats'!$A$3:$A$98, SMALL(IF($B$78='Full Stats'!$HG$3:$HG$98, ROW('Full Stats'!$HG$3:$HG$98)-ROW('Full Stats'!$HG$3)+1), ROW(1:1))),INDEX('Full Stats'!$A$3:$A$98,MATCH(B78,'Full Stats'!$HG$3:$HG$98,0)))
The weird thing is that when I click on the Function Argument, the Formula result listed is the correct title. However, once I click OK, the title displayed in the cell is not the correct one.
Any help is greatly appreciated.