Counting dates based on 2 values

Dragonred

New Member
Joined
May 5, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a sheet that has 2 columns.
Column A is -Deadline
Column B is - Date completed.

I’m wanting to calculate the dates in column A that are within 5 days from Today, unless they have a completed date in the column next to it. I’ve tried Countifs to reference the dates in Column A using the Today ()+5 function (that part has worked),but When I reference column B to only count the blanks I keep getting 0.
=COUNTIFS(A:A,”>Today()+5, B:B,”<>”&”)

Any Ideas?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
As far as I understand, you are doing just the opposite:
Excel Formula:
=COUNTIFS(A:A,">"&Today()-5, B:B,”=")
 
Upvote 0
Hi, thank you for your reply, that formula is still counting all within 5days and not missing out the ones that have a complete date.
 
Upvote 0
As far as I understand, you are doing just the opposite:
Excel Formula:
=COUNTIFS(A:A,">"&Today()-5, B:B,”=")
Hi, thank you for your reply, that formula is still counting all within 5days and not missing out the ones that have a complete date.
 
Upvote 0
Or try this:
Excel Formula:
=COUNTIFS(A:A,">"&Today()-5, B:B,”<>")
One of them should work.
 
Upvote 0
Or try this:
Excel Formula:
=COUNTIFS(A:A,">"&Today()-5, B:B,”<>")
One of them should work.
Hi, It’s still giving the #Value! Error. I want to calculate how many dates in column A are 5 days away from deadline without including the ones that have been completed,(marked in column B with a date.
 
Upvote 0
Hi, see this formula
=COUNTIFS(A:A,"<="&TODAY()+5,B:B,"="&"")
 
Upvote 0
Another option
Excel Formula:
=COUNTIFS(A:A,"<"&TODAY()+5, B:B,"")
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top