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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,216,116
Messages
6,128,932
Members
449,480
Latest member
yesitisasport

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