COUNTIFS date column issue

aiwnjoo

Well-known Member
Joined
Jul 30, 2009
Messages
598
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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