Formula to get the last Monday in February

YasserKhalil

Well-known Member
Joined
Jun 24, 2010
Messages
852
Hello
I need a formula that returns the date of the last Monday in February for any year
For example I have the date in A1
01/01/2014
I need the last Monday For the year 2014
 
Changing the 6 to 3 appears to give the correct result but I have not tested it thoroughly.

I tested the last Monday of March for the years and the results are very good.
What about changing the day of the week instead of Monday I want the last Thurs. for example
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I tested the last Monday of March for the years and the results are very good.
What about changing the day of the week instead of Monday I want the last Thurs. for example

That is what I meant about changing 6 to 3.
 
Upvote 0
I found this formula which returns the last Thursday of any month

Code:
= EOMONTH(A2;0)-WEEKDAY(EOMONTH(A2;0)+3)+1
The value 0 for January I tested to change the value 0 to 1 and I got the last Thursday of Feb.

What about the other last days such as Tuesday or any day >> Where can I change to get the correct results ?

Is there an index for the days of the week or something similar?
 
Upvote 0
Excel 2010
ABC
1DateDay
201/02/2014Saturday22/02/2014

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
C2=EOMONTH(A2,0)-WEEKDAY(EOMONTH(A2,0)+MATCH(B2,{"Sunday","Saturday","Friday","Thursday","Wednesday","Tuesday","Monday"},0)-1)+1

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

EXCELLENT Soultion Mr. Comfy
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,941
Members
449,480
Latest member
yesitisasport

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