I have a timestamp column. It is formatted as time (1:30 PM). I used the =NOW() to fill in the timestamp. I would like to do a COUNTIFS formula where it counts how many times from a specific timeframe like 6:00 pm to 7:00 pm.
I have a timestamp column. It is formatted as time (1:30 PM). I used the =NOW() to fill in the timestamp. I would like to do a COUNTIFS formula where it counts how many times from a specific timeframe like 6:00 pm to 7:00 pm.
Please try a formula like this one.
=COUNTIFS($A$2:$A$10,">="&$H$2,$A$2:$A$10,"<"&$H$3)
Here the times are in the range A2:A10, the start time is in H2 and the end time in H3. The start time is included in the count but not the end time, to avoid double counting if you count from 6:00 to 7:00 and from 7:00 to 8:00.
You may face some difficulty entering the times correctly. It's vital that the same format is used in both column A and column H and that this format is a correct Time format, not a text string. Test your entries by formatting the testing cell as Number.
Presuming that a cell in column A is formatted as either Time or General, and you then enter 13:00 the cell will display either 13:00 or 1:00 PM, depending upon the time format you set for Windows (Excel uses the setting you entered in the Control Panel). Now change the NumberFormat (Right-click the cell > Format cells > Number Format) to Number. The cell will display 0.54. Repeat the test in column H.