I'm attempting to place code I currently have within a worksheet into VBA and, simply put, I'm not sure how to accomplish this.
Currently, I have a range of data (Quarterly Schedule (D53:W72)) which I've been able to determine what the 3 largest unique values are using the following functions within the worksheet (in Cells AI53, AI54 and AI55, respectively):
The range of Quarterly Schedule (D53:AG72) is the largest range I need to test, this is required when I'm searching for the max unique value involving 20 players.
The issue becomes a little more complex when I need to find the 3 largest unique values for a range that is less than the maximum.
Example:
Thank you for any guidance you can provide.
Don
Currently, I have a range of data (Quarterly Schedule (D53:W72)) which I've been able to determine what the 3 largest unique values are using the following functions within the worksheet (in Cells AI53, AI54 and AI55, respectively):
-
Excel Formula:
[LIST=1] [*]=LARGE(D53:AG72,1) [*]{=MAX(IF(D53:AG72<AI53,D53:AG72))} [*]{=MAX(IF(D53:AG72<AI53,D53:AG72))} [/LIST] [*]
The range of Quarterly Schedule (D53:AG72) is the largest range I need to test, this is required when I'm searching for the max unique value involving 20 players.
The issue becomes a little more complex when I need to find the 3 largest unique values for a range that is less than the maximum.
Example:
- The starting point will always be D53.
- I can predetermine the number of players involved. In this example 8 players (this value is established in a separate worksheet called ALLWEEKS:G79)
- I can sort all data to place "active" players information up front (i.e., D53:K60)
Thank you for any guidance you can provide.
Don