Populate a column with the dates of 1st, 3rd and 5th Mondays between two dates...

raghuprabhu

New Member
Joined
Apr 8, 2017
Messages
7
How to create a list of dates of every 1st, 3rd, 5th Monday each month between two dates?

I have in cell A2 (01 Jul 19) the first date and in B2 (30 Jun 20) the second date.

How do I populate column C with the dates of every 1st, 3rd, 5th Monday each month between 01 Jul 19 and 30 Jun 20.

Thank you

Kind regards

Raghu
 
@ pgc01:

Your formula for cell C2 can return dates for the 2nd and 4th Mondays, too -- depending on the date in A2.

Here is a suggested modification:

=A2+MOD(2-WEEKDAY(A2),7*(1+(MONTH(A2)=MONTH(A2+MOD(2-WEEKDAY(A2),14)))))

Date in A2 assumed to be the 1st of a month.


Hi Tetra.

Thanks for looking into this. I had tried with several different months in 2019 and it worked OK.

Can it be, like footoo said, that you did not consider the start the first of the month? In that case my first formula would have to change.

From post #1 it seemed to me we are interested in full months. (?)

Let's see what the OP says.
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Upvote 0
Nice formula.

Remark:
This formula will usually, most of the times, work OK.
This formula assumes that you use the 1900 date system. If you use the 1904 date system, for ex. MAC <=2008 or because you set the option, it will give you a wrong result.

For the 1904 date system : =CEILING(A2-3,7)+3
 
Upvote 0
I like PGC's answer but here's an alternative...

D2: =WORKDAY.INTL(A2 - 1, 1, "0111111")
D3: =WORKDAY.INTL(D2, 2 - (DAY(D2 + 7) <= 7), "0111111")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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