I need to add a gender cell and then combine these two formulas.
=IF(OR(D2="",D2<17,E2=""),"",VLOOKUP(E2,'Male Tables'!A4:K77,IF(D2>61,11,ROUNDUP((D2-16)/5+1,0)),TRUE))
=IF(OR(D2="",D2<17,E4=""),"",VLOOKUP(E2,'Female Tables'!A4:N50,IF(D4>61,11,ROUNDUP((D4-16)/5+1,0)),TRUE))