Count and show the months that have Friday the 13th in a given year.

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,180
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
This is an office thing especially that Halloween is coming up. I have been trying to figure this one out. The post below Barry Houdini had a great formula to count and show the months that have a 5 week friday. I would like to do the same for Friday the 13th but cannot figure it out. Can some one help!

http://www.mrexcel.com/forum/showthread.php?t=431025

Thanks in advance Stephen!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Not up to Barry's standard, but it works.

Where B1 contains the year of interest.

=IFERROR(TEXT(SMALL(IF(WEEKDAY(DATE(B1,{1,2,3,4,5,6,7,8,9,10,11,12},13))=6,DATE(B1,{1,2,3,4,5,6,7,8,9,10,11,12},13)),ROWS(B$1:B1)),"MMMM"),"")

Fill down 12 rows to get your list of months with friday 13th, then for the count of those months, either count the non empty cells, or use something like

=SUM(--(WEEKDAY(DATE(B1,{1,2,3,4,5,6,7,8,9,10,11,12},13))=6))
 
Upvote 0
jasonb75,

Thank you so much. Works Great and is exactly what I wanted! Thank you again!
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,912
Members
452,949
Latest member
beartooth91

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