Try:

=COUNTIFS(H:H,"<"&B2-7,H:H,">0",I:I,"<>Y",J:J,"")

and

=COUNTIFS(H:H,"<"&B2,H:H,"<>" & " ",I:I,"<>Y",J:J,"")

watch the spaces you had "<> Y" and also when referencing a cell for the criteria it is not within quotes....