How many mondays in a month ?

gaftalik

Well-known Member
Joined
Feb 6, 2003
Messages
521
Office Version
  1. 2016
Platform
  1. Windows
How to find out how many mondays in a given month lets say January 2004 ?

Thank you .
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Also:

=INT((EOMONTH(A1,0)-2)/7)-INT((A1-2)/7)+INT(WEEKDAY(A1-2)/7)

where A1 is a 'first of the month' date. This formula is less volatile.
 
Upvote 0
eomonth() is from the analysis tool pack - will be available in 97 if you activate the tool pack addin
 
Upvote 0
One substitute for EOMONTH() is:

DATE(YEAR(A1),MONTH(A1)+1,0)

However, you should have EOMONTH() available to you with Excel 97 through the Analysis ToolPak add-in, even with this version of Excel.
 
Upvote 0
My goodness! i like those formulas despite the time they take to analyse them :whistle:

Thanks to all of you !
 
Upvote 0
Thank you for this site that i was able to solve my excel problem in getting how many mondays are there in a month. But after knowing it how I found out that i alsol need to get the exact date of all mondays in a month. Say for Jan 2011 there are 5 mondays then i need to know what dates are those. I'm expecting that excel will give me result of Jan 3, Jan 10, Jan 17, Jan 24 and Jan 31. Can you help me please?
 
Upvote 0
=A1+MOD(B1-WEEKDAY(A1),7)
gets you the 1st Monday in the month, with the 1st day of the month in A1 and 2 (or whatever weekday # you want) in B1. Add 7 to this date for subsequent weekdays.
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,634
Members
449,324
Latest member
AmirMalik

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