P14 should be:

=IF(G14='RPS Contest Payout'!$D$37,IF(COUNTIFS($D$14:D14,D14,$G$14:G14,G14)=1,ROW(),""),"")

you were referencing $D$36... which is blank