How to count dates by month and day only

Chubba

New Member
Joined
Jul 12, 2011
Messages
20
Office Version
  1. 2010
Platform
  1. Windows
Hello

I have a list of dates and am trying to count the number of instances that are, for example, 3rd of May irrespective of year. Is that possible?

I tried the following, with various permutations for the year but didn't work:

=COUNTIF($A:$A,DATE(,5,3)

Many thanks
 

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.
Try this:
Code:
=SUMPRODUCT(--(MONTH($A:$A)=5),--(DAY($A:$A)=3))

Note that it will be faser/more efficient if you use a defined range and not the whole column.
 
Upvote 0
How about
=SUMPRODUCT((DAY(A1:A34)=3)*(MONTH(A1:A34)=5))
 
Upvote 0
Brilliant, many thanks both.

Agreed about the named range and is something I am using but thought it might be easier to illustrate in the formula in the question.

Many thanks again
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
FWIW you can also do the day & month check at the same time.
=SUMPRODUCT(--(TEXT(A1:A34,"ddmm")="0305"))
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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