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
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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

Just to clarify, you want the Last Monday in February for the year you specify or,

The last Monday of the Year you specify?

Your question asks for both.
 
Upvote 0
Perhaps try this...
Excel 2010
A
101/12/2013
2Fri 22-Feb-13

<colgroup><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1
Array Formulas
CellFormula
A2{=MAX((MONTH(DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}))=2)*(WEEKDAY(DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}), 2)=5)*DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Hope that helps.

/AJ
 
Upvote 0
Apologies. I set for Fridays, not Mondays.
'Sides, VOG's formula is much simpler.
Excel 2010
ABC
101/01/2013Mon 25-Feb-13Mon 25-Feb-13
201/01/2015Mon 23-Feb-15Mon 23-Feb-15
301/01/2016Mon 29-Feb-16Mon 29-Feb-16
401/01/2012Mon 27-Feb-12Mon 27-Feb-12

<colgroup><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B1=DATE(YEAR(A1),3,1)-WEEKDAY(DATE(YEAR(A1),3,6))

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

<tbody>
</tbody>

Array Formulas
CellFormula
C1{=MAX((MONTH(DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}))=2)*(WEEKDAY(DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}), 2)=1)*DATE(YEAR(A1),2,{21,22,23,24,25,26,27,28,29}))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


/AJ
 
Upvote 0
Thanks sir but the result is not correct
The last Monday of February for example 2014 is 25/2/2014
and the result of your formula is 28/2/2014
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

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