Countifs formula is not working correctly

Status
Not open for further replies.

hofst038

New Member
Joined
Mar 11, 2016
Messages
17
DateLead TechNon Lead TechCompleted
3/11/2016Y
3/15/2016N
3/16/2016N
3/17/2016Y
3/20/2016N

<tbody>
</tbody>


So I want a count of all the “Y” values in the Completed column based off the date range of 3/11/2016-3/18/2016.

My formula goes like this:
=COUNTIFS($A$1:$A$6, ">=" &DATEVALUE("3/11/2016"),$A$1:$A$6, "<="&DATEVALUE("3/18/2106"),$D$1:$D$6, "Y")

It seems to be ignoring the formula and grabbing ALL dates that are 3/11/2016 and above, not just the ones in the selected date range 3/11/2016-3/18/2016. Does anyone know how to fix this so it grabs only the dates from 3/11/2016 to 3/18/2016?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,025
Office Version
  1. 365
  2. 2016
Did you mean to set the second date as 2106?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,307
Office Version
  1. 365
Platform
  1. Windows
Status
Not open for further replies.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,150
Messages
5,835,685
Members
430,376
Latest member
eeehhhyyy

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
Top