# COUNTIFS date column issue

#### aiwnjoo

##### Well-known Member
Hello all, sorry to bother you all. I am struggling here.

Scenario;

Column A (Created) in Data sheet contains 3000+ dates ranging from 01/01/2018 to 30/06/2018, there could be several instances of the same dates.

Column B (Closed) in Data sheet contains 3000+ dates ranging from 01/01/2018 to 30/06/2018, there could be several instances of the same dates.

---

The dates are formatted and cleaned using INT for both colums so the dates present themselves as "DD/MM/YYYY" no serial stuff going on.

---

As an Example March has 666 records created between the dates of 01/01/2018 and 31/01/2018 of which 573 of those were closed in the same month leaving an surplus of 93 records that were left open as of the 01/02/2018, this is calculating it manually just using filters and im trying to return that as a formula.

Formula I am using to the the 666 figure;

=COUNTIFS(Data!\$A:\$A,">="&\$A6,Data!\$A:\$A,"<="&\$B6)

A6 is 01/01/2018
B6 is 31/01/2018

Now what I cannot figure out is the surplus formula, the above formula looks in column A and counts all records where the date in A is between the 1st and 31st. The next formula needs to look at this formula to validate but then also apply its own formula to say;

Count all records in column B where the date in B is between the 1st and 31st but also where the date in A is between the 1st and 31st.

Thankyou.

### Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

#### wideboydixon

##### Well-known Member
Can you just check if the closed is beyond the end of the month?

Code:
``=COUNTIFS(Data!\$A:\$A,">="&\$A6,Data!\$A:\$A,"<="&\$B6,Data!\$B:\$B,">"&\$B6)``

WBD

Replies
0
Views
167
Replies
1
Views
193
Replies
8
Views
648
Replies
2
Views
221
Replies
30
Views
364

1,171,654
Messages
5,876,720
Members
433,207
Latest member
Bitt0101

### 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.

### Which adblocker are you using?

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

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