I'm working on a football database of weekly scores. Each row represents an individual's weekly performance (e.g. catches, yards, TDs), while also containing their weekly fantasy score, and their season total fantasy score.
Each record now needs a Position Rank (within each year), meaning where their season score ranked within their football position for each year. Highest scoring QB in 1995 is QB 1, seventh highest RB from 2008 is RB 7.
A B C D E F G ...
UniqueID NameAdj Season SeasonPts Pos PosRank_RB PosRank_QB ...
1 Corey Dillon 1997 198.8 RB
2 Jerry Butler 1979 108.7 WR
3 Earl Campbell 1978 227.8 RB
4 Bo Jackson 1987 105.0 RB
Each position will have its own Pos Rank column, and I created this formula to rank the Season Points:
=COUNTIFS($c:$c,$c2,$e:$e,$e2,$d:$d,">"&$d2)+COUNTIFS($c$2:$c2,$c2,$e$2:$e2,$e2,$d$2:$d2,$d2)
Problem is, because each player may have 16 games (e.g. 16 records), that means Corey Dillon may have 16 records where Season=1997 AND SeasonPts=198.8. So he'll take up 16 places in the rankings.
I need to ignore those records when both $B2 AND $D2 are duplicates.
P.S. I wouldn't mind producing this with two options: one column where only the first 1997 Corey Dillon gets a rank number, and one where all 1997 Corey Dillons share duplicate rank. I'm guessing as I move forward into running COUNTIF (and other formulas) on all this data, having both columns could prevent future headaches (e.g. "Number of Seasons where..." could get spiked by 16 Dillons).