Need some help ranking, this is just a small sample. I found a formula on here to rank the teams based on columns D & F, but can't figure out how to use L as a tiebreaker instead of order in the spreadsheet. Obviously this is just a small sample of the sheet there are more columns so the formula won't match up completely. I labeled the columns as I have them in my sheet. I hope I did this right.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Column D[/TD]
[TD]Column F[/TD]
[TD]Column L[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class[/TD]
[TD]PR[/TD]
[TD]SF[/TD]
[TD]Desired Rank[/TD]
[/TR]
[TR]
[TD]1A[/TD]
[TD]12[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1A[/TD]
[TD]10[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1A[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2A[/TD]
[TD]14[/TD]
[TD]4[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2A[/TD]
[TD]12[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2A[/TD]
[TD]12[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3A[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3A[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3A[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
Code:
=COUNTIFS(D:D,D2,F:F,">"&F2)+COUNTIFS(D$2:D2,D2,F$2:F2,F2)
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Column D[/TD]
[TD]Column F[/TD]
[TD]Column L[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Class[/TD]
[TD]PR[/TD]
[TD]SF[/TD]
[TD]Desired Rank[/TD]
[/TR]
[TR]
[TD]1A[/TD]
[TD]12[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