Try this
Formula: copy to clipboard
=AVERAGEIFS(H6:H60000,H6:H60000,">4",H6:H60000,"<100")