Hi, this may be a simple solution but I've been stuck for a while now.
I'm trying to get a count of dates within that are before today's date, within 30 days from today, between 30 & 60 days away and further than 60 days away.
The catch is that I need to use two columns (planned dates and revised dates). If there is a revised date, I want the formula to only use the revised date but if the revised date cell is blank, to use the planned date.
There are more categories in the counts (hence I'm using COUNTIFS) but I haven't included them as they are not what's causing the issue, they're just identifiers so it's counting the right category.
I just want to isolate them so it's counting using one column (P "Revised Date") or the other (O "Planned Date").
I've added verbally what I'm trying to make it do and the formula I'm using.
Really appreciate any help on this one because I think my head is about to pop!
Before Today:
"If column P has a value (aka: there is a date there), count how many are before today's date. If it doesn't have a value, count the number of dates in column O that are before today's date."
=IF($P:$P="<>",COUNTIFS($P:$P,"<"&TODAY()),COUNTIFS($O:$O,"<"&TODAY())
Within 30 days from now:
"If column P has a value, count how many are coming up in the next 30 days. If it doesn't have a value, count the number of dates in column O that are coming up in the next 30 days."
=IF($P:$P="<>",COUNTIFS($P:$P,"<="&TODAY()+30),COUNTIFS($O:$O,"<="&TODAY()+30))
Between 30 & 60 days away:
"If column P has a value, count how many are between 30 to 60 days away. If it doesn't have a value, count how many of the dates in column O that are between 30 to 60 days away."
=IF($P:$P="<>",COUNTIFS($P:$P,">="&TODAY()+30,$P:$P,"<="&TODAY()+60),COUNTIFS($O:$O,">="&TODAY()+30,$O:$O,"<="&TODAY()+60))
Further than 60 days away:
"If column P has a value, count how many are 60 days or above away. If it doesn't have a value, count how many dates on column O are more than 60 days away."
=IF($P:$P="<>",COUNTIFS($P:$P,">"&TODAY()+60),COUNTIFS($O:$O,">"&TODAY()+60))
Bookmarks