Forum Discussion

NeilKloster's avatar
NeilKloster
Brass Contributor
Jul 08, 2020
Solved

Counting entries between date/time ranges

Hello,    I'm trying to figure out how to count the number of entries in an excel column that fall within a certain date/time range?   For example, I have a spreadsheet that has three columns (Se...
  • mtarler's avatar
    mtarler
    Jul 08, 2020

    NeilKloster  in the attached is a SUMPRODUCTS() formula that I used because the COUNTIFS() formula wouldn't work because the "dates" in your table are actually TEXT format (you probably imported or copied them in as text).  I also went to the DATA tab and used "Text to Columns" to force that column to be actual Date information instead of text and included the correct COUNTIFS() formula in the cell below the other "count" cell to show how it works (that it does work if you correct the text).  If you will be importing data a lot and don't want to deal with converting text to number every time use the first.  If you want to do more with the data and dates, you might want to convert the text to real dates to make it easier for yourself.

Resources