Explanation

TheCOUNTIFS functiontakes one or more criteria, entered as range/criteria pairs.

The second range/criteria pair is:

Matching any time less than the time in E6 (6:30).

The TIME function is useful when you want to assemble a proper time inside another formula.

Excel formula: Round time to nearest 15 minutes

Excel formula: Calculate hours between two times

Excel formula: Extract time from a date and time

Excel formula: Group times into 3 hour buckets

Excel COUNTIFS function

Excel TIME function