COUNTIF multiple criteria using dates?

hissonrr

Board Regular
Joined
Feb 6, 2016
Messages
106
Good day all,

In short I am trying to get a number using the COUNTIF function that has two criteria, the first being simple text in a column, but the second being that is is between two dates in another column and the same row.

To make it easier i will make a quick table...

So basically how would I write a formula that counts the number of rows where RH (in column D) is between 1/1/2018 and 1/1/2019 in column A?

In this example the formula would yield 2 because there are two rows where RH in column D falls between 1/1/2018 and 1/1/2019 in column A...


Any help would be appreciated as i am not very good with dates in formulas.

-R


ABCD
13/4/2018null1RH
25/2/2018null2RH
36/2/2017null3SM
410/10/2018null4SM
51/2/2017act5RH

<tbody>
</tbody>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try:
Code:
=COUNTIFS(D1:D5,"RH",A1:A5,">=1/1/2018",A1:A5,"<1/1/2019")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,291
Members
449,498
Latest member
Lee_ray

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