COUNTIFS Comparing Dates

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
I have the below formula, but also need it to take into account occurrences when Column K (in DEV WIP) is less than Column L in DEV WIP

Code:
=
COUNTIFS(
'DEV WIP'!K:K,"<>31/12/9999",
'DEV WIP'!N:N,"<>COMPLETE",
'DEV WIP'!K:K,"<"&TODAY()+30,
'DEV WIP'!K:K,">="&TODAY(),
'DEV WIP'!L:L,"<>")
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hey try this:

=SUMPRODUCT(('DEV WIP'!K:K<>DATE(9999,12,31))*('DEV WIP'!N:N<>"COMPLETE")*('DEV WIP'!K:K < <today()+30)*('dev wip'!k:k="">TODAY() + 30)*('DEV WIP'!K:K >= TODAY())*('DEV WIP'!L:L<>"")*('DEV WIP'!K:K<'DEV WIP'!L:L))</today()+30)*('dev>
 
Last edited:
Upvote 0
Thankyou
Hey try this:

=SUMPRODUCT(('DEV WIP'!K:K<>DATE(9999,12,31))*('DEV WIP'!N:N<>"COMPLETE")*('DEV WIP'!K:K < <today()+30)*('dev wip'!k:k="">TODAY() + 30)*('DEV WIP'!K:K >= TODAY())*('DEV WIP'!L:L<>"")*('DEV WIP'!K:K<'DEV WIP'!L:L))</today()+30)*('dev>
 
Upvote 0
Hi

...
'DEV WIP'!K:K,"<>31/12/9999",
...
'DEV WIP'!K:K,"<"&TODAY()+30,
...


Why the first condition?
If it's less than (TODAY()+30) then it will never be equal to 31/12/9999.

Please explain.
 
Upvote 0
I noticed that too pgc, thought it looked a bit strange :p kept the formula as is though but indeed it can most likely be removed from the formula.
 
Upvote 0

Forum statistics

Threads
1,215,584
Messages
6,125,678
Members
449,248
Latest member
wayneho98

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