Countif for dates that exclude a value

churmie

New Member
Joined
Jan 9, 2014
Messages
44
Morning guys.

A simple one, that is getting me confused. I need to count certain dates but exclude a value. How could I do this? An example is below:

[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Date[/TD]
[/TR]
[TR]
[TD]2/5/18[/TD]
[/TR]
[TR]
[TD]18/5/18[/TD]
[/TR]
[TR]
[TD]2/3/18[/TD]
[/TR]
[TR]
[TD]15/4/18[/TD]
[/TR]
[TR]
[TD]3/6/18[/TD]
[/TR]
[TR]
[TD]Hold[/TD]
[/TR]
[TR]
[TD]4/7/18[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Dates[/TD]
[TD]Jan 18[/TD]
[TD]Feb 18[/TD]
[TD]Mar 18[/TD]
[TD]Apr 18[/TD]
[TD]May 18[/TD]
[TD]Jun 18[/TD]
[TD]Jul 18[/TD]
[/TR]
[TR]
[TD]Count[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I need to get the formula in the 'Count' row. I know it seems simple, but I'm obviously doing something wrong! Thanks for the help in advance as always!

Churmie
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Book1
ABCDEFGH
1Date
202/05/2018
318/05/2018
402/03/2018
515/04/2018
603/06/2018
7Hold
804/07/2018
9
10DatesJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18
11Count0011211
Sheet1
Cell Formulas
RangeFormula
B11=COUNTIFS($A$2:$A$8,">="&B$10,$A$2:$A$8,"<="&EOMONTH(B$10,0))


WBD
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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