COUNTIFS using dates specified by external cells

chesspupil

Board Regular
Joined
May 21, 2006
Messages
52
=COUNTIFS(B14:B17,">=1/1/2010",B14:B17,"<=12/31/2010") Example given from a helper site

What I have tried for my own data
=COUNTIFS(B6:B100,">=A1",B6:B100,"<=A2") <<<< Note my data set is correct range, A1 is not activated or seen as a date, I want the formula to change based on dates I enter.

=COUNTIFS(B6:B100,">=&A1, dates",B6:B100,"<=&A2")

This is the formula I am trying to use.

How do I specify the dates based on external cell values?

Thank you
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
try it like...

=COUNTIFS(B6:B100,">="&A1, dates",B6:B100,"<="&A2)

=COUNTIFS(B8:B56,">=" & A1,B8:B56,"<=" & A2)
I figured it out moments before I saw this, thank you. Note it did not require the word dates
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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