Forum Discussion

Kaddrik's avatar
Kaddrik
Copper Contributor
Mar 16, 2022
Solved

Count the number of dates based on a condition

Hello,   hope you are doing good.   I have a pivot table with dates in a column. Using conditional formating i set the dates that are between today and up to 329 away as green , those that betwee...
  • HansVogelaar's avatar
    Mar 16, 2022

    Kaddrik 

    Green:

    =COUNTIFS(H:H,">"&TODAY()-329,H:H,"<="&TODAY())

    Orange:

    =COUNTIFS(H:H,">"&TODAY()-365,H:H,"<="&TODAY()-330)

    Red:

    =COUNTIFS(H:H,">0",H:H,"<="&TODAY()-365)

Resources