Google-sheets – Counting timestamp considering time and date

google sheetsgoogle-sheets-timestamp

How do I count timestamp considering both date and time range?For example, I want to count how many cells are within 2/14/2018 22:00 to 2/15/2018 1:00.

enter image description here

Best Answer

Use COUNTIFS.

Let say that you have

  • J1 : 2/14/2018 22:00
  • J2 : 2/15/2018 1:00

Then the formula to use could be

=COUNTIFS(G2:G,">="&J1,"=<"&J2)