I see, thanks. This is my first post so my apologies. Here are the formulas I mentioned:
=IF(G2<>G3,MAX(OFFSET($D$2,MATCH(G2,$G$2:$G$16,0)-1,0,COUNTIF($G$2:$G$16,G2))),"")
=IF(G2<>G3,MIN(OFFSET($D$2,MATCH(G2,$G$2:$G$16,0)-1,0,COUNTIF($G$2:$G$16,G2))),"")
I tried to use...