Counting dates that do and do not match

OTT

New Member
Joined
Jul 28, 2011
Messages
16
I have the following columns in my spreadsheet:

M = Date of Interim Reply
X = Date of Final reply
C10 = Start Date
C11 = End Date

I want to count the number of responses that have been issued during a certain period of time which I enter into C10 and C11 i.e. 01/05/2011 to 31/05/2011.

Not everything receives both an interim and final response. If only a final response is issued, there is a formula in Column M which will copy the date from Column X - we have to do this to record that the case has been closed.

In order to calculate an accurate number of responses issued I think I would like two formulas.

Formula 1 - I would like this to calculate the number of entries in Column M and Column X that fall between the start and end dates where the date entereed in these 2 columns is the same.

Formula 2 - I would like this to calculate the number of entries in Column M and Column X that fall between the start and end dates where the date entered in these 2 columns do not match.

Can anyone help me with this please?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Like this:

<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>B</th><th>C</th><th>L</th><th>M</th><th>N</th><th>X</th><th>Y</th><th>Z</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="font-weight: bold;text-align: center;;">Date of Interim Reply</td><td style="text-align: right;;"></td><td style="font-weight: bold;text-align: center;;">Date of Final Replay</td><td style="font-weight: bold;;">Formula1</td><td style="font-weight: bold;;">Formula2</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #92D050;;">10/05/2011</td><td style="text-align: right;background-color: #92D050;;"></td><td style="text-align: center;background-color: #92D050;;">31/05/2011</td><td style="text-align: center;background-color: #C5D9F1;;">2</td><td style="text-align: center;background-color: #92D050;;">4</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">01/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">04/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">04/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">10/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">28/04/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">30/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #92D050;;">01/05/2011</td><td style="text-align: right;background-color: #92D050;;"></td><td style="text-align: center;background-color: #92D050;;">30/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">10/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">03/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">29/04/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">18/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #C5D9F1;;">14/05/2011</td><td style="text-align: right;background-color: #C5D9F1;;"></td><td style="text-align: center;background-color: #C5D9F1;;">14/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="font-weight: bold;;">Start</td><td style="text-align: center;;">01/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #92D050;;">12/05/2011</td><td style="text-align: right;background-color: #92D050;;"></td><td style="text-align: center;background-color: #92D050;;">28/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="font-weight: bold;;">End</td><td style="text-align: center;;">31/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">09/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">05/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #92D050;;">08/05/2011</td><td style="text-align: right;background-color: #92D050;;"></td><td style="text-align: center;background-color: #92D050;;">16/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">04/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">02/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">22/04/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">26/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;background-color: #C5D9F1;;">20/05/2011</td><td style="text-align: right;background-color: #C5D9F1;;"></td><td style="text-align: center;background-color: #C5D9F1;;">20/05/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: center;;">12/05/2011</td><td style="text-align: right;;"></td><td style="text-align: center;;">02/06/2011</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td><td style="text-align: center;;">*****</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet2</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Y2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">--(<font color="Red">$M2:$M16>=$C$10</font>),--(<font color="Red">$X2:$X16<=$C$11</font>),--(<font color="Red">$M2:$M16=$X2:$X16</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Z2</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">--(<font color="Red">$M2:$M16>=$C$10</font>),--(<font color="Red">$X2:$X16<=$C$11</font>),--(<font color="Red">$M2:$M16<>$X2:$X16</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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