combination of countif/sumif should do the trick
in O5
Formula:
=IF(COUNTIF($B$5:B5,B5)=0,"",IF(COUNTIF($B$5:B5,B5)=COUNTIF(B:B,B5),COUNTIF($B$5:B5,B5),""))
in p5
Formula:
=IF(O5="","",SUMIFS(H:H,B:B,B5))
in column Q
not quite sure the logic is but the formula in there doesnt seem to work on certain lines
Bookmarks