0 return when using Countifs statement

nelmagene

New Member
Joined
Sep 13, 2011
Messages
7
I am by no means am I an Excel formula expert. I have been struggling with this formula for 3 days, looking all over google and everything says it is right but it returns 0 when it should return 145.

I am trying to count how many line entry dates fall with fall within a specified date range based upon weather it is Scheduled or Unscheduled. I have not gotten to the "Scheduled or Unscheduled" in the formula, since i cant get just a basic count to work.

the Formula i am using is: =COUNTIFS(AL5:AL5000, ">="&DATE(AA2,6,20), AL5:AL5000, "<="&DATE(AF2,6,25)) This should be looking at all dates that fall between the range of AA2 and AF2 in column AL. but as i said the return is 0.

Any and all help is greatly appreciated, Thank You in advance
1660544001083.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
=COUNTIFS(AL5:AL5000, ">="&DATE(AA2,6,20), AL5:AL5000, "<="&DATE(AF2,6,25))

Hi, you don't need the DATE() function as you already have the full date in AA2 and AF2 and the DATE() function returns a date from it's parts.
i.e.
Excel Formula:
=COUNTIFS(AL5:AL5000, ">="&AA2, AL5:AL5000, "<="&AF2)
 
Upvote 0
Solution
Hi, you don't need the DATE() function as you already have the full date in AA2 and AF2 and the DATE() function returns a date from it's parts.
i.e.
Excel Formula:
=COUNTIFS(AL5:AL5000, ">="&AA2, AL5:AL5000, "<="&AF2)
Thank You so much, it works. I have never been happier to feel like a dumb fellow.. Your are great!!!!!!!!!!!!!!!!!!
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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