Count of text in a column based off a date range in another column

hofst038

New Member
Joined
Mar 11, 2016
Messages
17
Really needs some help on this: I am trying to get a count of something that is in a given date range.
Date
Lead Tech
Non Lead Tech
Completed
3/11/2016
Y
3/15/2016


N
3/16/2016


N
3/17/2016


Y
3/20/2016


N





<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. Can someone please help me out?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try

=COUNTIFS(A1:A5,">="&DATEVALUE("3/11/2016),A1:A5,"<="&DATEVALUE("3/18/2016),D1:D5,"Y")
 
Last edited:
Upvote 0
See if this helps

=COUNTIFS($A$1:$A$6,">=" &A2, $A$1:$A$6, "<="&A3, $D$1:$D$6, "Y")

'change the A2 and A3 to the desired ranges or the values'


Raga
 
Upvote 0
I tried that and it looks like there are too few arguments when inserting this function. Thanks for trying it out.
 
Upvote 0
Which version of Excel are you running?

Special-K99's formula is just missing a few double-quotes after the dates:
Code:
=COUNTIFS(A1:A5,">="&DATEVALUE("3/11/2016"),A1:A5,"<="&DATEVALUE("3/18/2016"),D1:D5,"Y")
 
Upvote 0
I got it, thanks guys. Final product was: =COUNTIFS($A$1:$A$5, ">=" &DATEVALUE("3/11/2016"),$A$1:$A$5, "<=" &DATEVALUE("3/18/2016"),$D$1:$D$5, "Y")
 
Upvote 0
I got it, thanks guys. Final product was: =COUNTIFS($A$1:$A$5, ">=" &DATEVALUE("3/11/2016"),$A$1:$A$5, "<=" &DATEVALUE("3/18/2016"),$D$1:$D$5, "Y")
I guess you missed my last post!;)
 
Upvote 0
Ha thanks Joe4, I didnt get it until after. I did; however, run into a problem.....The function seems to be ignoring the two dates inside it and it picking up every date. Anyone know how to correct this?
 
Upvote 0
It doesn't do that for me. It is working as it should for me (and returning 2).
Are you sure you have your ranges correct?

Are you using a European or American version of Excel?

Are you also sure that your dates are actually entered as dates and not text?
An easy well to tell is to try to apply the following formula to one of the date:
Code:
=ISNUMBER(A1)
If it returns FALSE, the entry is not numeric/date, but rather text.
 
Last edited:
Upvote 0
I forgot to mention, the dates it is looking up is pulled in via V lookup from another file... could this possibly be part of the problem?
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,797
Members
449,337
Latest member
BBV123

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