Find first Monday in a month

Pioneer-1752

Spammer
Joined
Mar 14, 2002
Messages
15
I need to find the first Monday of a given month.

If cell A2 has the first day of the month, I need cell A3 to have the first Monday of the month referenced in A2 in mm/dd/yyyy format.

Can someone help me?

Thank you.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
In A3 enter:

=A2+IF(2 < WEEKDAY(A2), 7 - WEEKDAY(A2) + 2, 2 - WEEKDAY(A2))

where A2 houses the date of interest.
 
Upvote 0
Here's another formula using CHOOSE

=CHOOSE(WEEKDAY(A2,2),A2,A2+6,A2+5,A2+4,A2+3,A2+2,A2+1)
 
Upvote 0
If A2 has any valid date for the month, try

=DATE(YEAR(A2),MONTH(A2),7)-WEEKDAY(DATE(YEAR(A2),MONTH(A2),7),3)
 
Upvote 0
On 2002-08-22 08:56, Dave Patton wrote:

If A2 has any valid date for the month, try

=DATE(YEAR(A2),MONTH(A2),7)-WEEKDAY(DATE(YEAR(A2),MONTH(A2),7),3)

Or simply...

=TEXT(A2,"mm/yyyy")+MOD(8-WEEKDAY(TEXT(A2,"mm/yyyy"),2),7)
 
Upvote 0
A very late entry:
=A2+6-WEEKDAY(A2-1,3)

I was going to post this morning but pesky work got in the way. I post this now only because I only recently discoverd the "3" in the second argument of weekday. That goes monday (0) thru Sunday (6).

Also, I think weekday is "off the shelf" and not a part of the tool pak add im
 
Upvote 0
IML, good use of Return_type 3! You're right about WEEKDAY not being a part of the Analysis ToolPak. I confused it with WEEKNUM which I've been using quite a bit lately.
 
Upvote 0
Piggybacking here- This formula worked perfectly to help me calculate Labor Day 2014. Which happens to be the first day of the month AND the first Monday. Thank you, IML!
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,400
Members
449,156
Latest member
LSchleppi

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