COUNTIF with dates?

Hi team!

So, I have a date column with the date where a row is created "Created date" in my sheet. I'm trying to find a way how can I count how many rows are created in weekly periods. I have in my metrics sheet 2 columns with the ranges:

I need in column 4 something like a: "Countif ("Ceated date" in between dates in column 2 and 3).

Any ideas?

Best Answer

  • Michelle Choate 2
    Michelle Choate 2 ✭✭✭✭✭✭
    Answer ✓

    Just use a COUNTIFS formula. This is assuming your Created Date is a DATE ONLY column, and not the system generated column with the time information still in it. I use a secondary column with the =DATEONLY([Created Date]@row) formula to have my Created column to use for calculations.

    Using Created Date assuming it is a date only column, the formula would be:

    =COUNTIFS([Created Date]:[Created Date],>=Column2@row, [Created Date]:[Created Date], <=Column3@row)

    Michelle Choate

    michelle.choate@outlook.com

    Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate

Answers

  • Michelle Choate 2
    Michelle Choate 2 ✭✭✭✭✭✭
    Answer ✓

    Just use a COUNTIFS formula. This is assuming your Created Date is a DATE ONLY column, and not the system generated column with the time information still in it. I use a secondary column with the =DATEONLY([Created Date]@row) formula to have my Created column to use for calculations.

    Using Created Date assuming it is a date only column, the formula would be:

    =COUNTIFS([Created Date]:[Created Date],>=Column2@row, [Created Date]:[Created Date], <=Column3@row)

    Michelle Choate

    michelle.choate@outlook.com

    Always happy to walk through any project you need help with! Book time with me here: https://calendly.com/michelle-choate

  • Humashankar
    Humashankar ✭✭✭✭✭
  • OMG, so simple lol...Thanks for the inputs @Michelle Choate 2 !! this was exactly what I needed.

    Regards!