# countif, if month?

#### deletedalien

##### Well-known Member
Hi guys, i need a little help trying to figure this out,

As you can see by the title i can't even think of a proper way to define this question but here's the deal.

In column "A" i have dates (mm dd yyy) and in column "B" i have some instances of either A or F or R etc...

in a different cell (I7) i have say... 12/1/2016

what i need is to use that cell (I7) as a reference to count the instances of "F" in column "B" but only if they match the date (December) on column "A"

does that make sense?

Any help will be appreciated...

Thanx guys and happy holidays!

### Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try this:

=COUNTIFS(A:A,">="&EOMONTH(\$I\$7,-1)+1,A:A,"<"&EOMONTH(\$I\$7,0)+1,B:B,"F")

Try this:

=COUNTIFS(A:A,">="&EOMONTH(\$I\$7,-1)+1,A:A,"<"&EOMONTH(\$I\$7,0)+1,B:B,"F")

Like a CHARM!!!!!

Thanx!!!

Replies
12
Views
378
Replies
16
Views
1K
Replies
5
Views
506
Replies
3
Views
294
Replies
7
Views
230

1,217,315
Messages
6,135,810
Members
449,965
Latest member
Ckl43

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

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