ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   set month end (https://www.excelbanter.com/excel-discussion-misc-queries/57611-set-month-end.html)

Chilliputt

set month end
 
Hi. I need a function to customize month end to the last Friday of each
month. So for December 2005, the start date would be (A1) 11-26-05, and the
end date would be (A2) 12-30-05. I want to autofill the dates that fall
within this range down starting in A3.

Any thoughts?

Search33

set month end
 
=IF(MONTH(A2+28)=MONTH(A2+35),A2+35,A2+28)

There will be either 4 weeks(28 days) or 5 weeks (35 days) between month end.
so if 4 weeks later is in the same month as 5 weeks later, then it is 5
weeks, if they're different, it's 4 weeks.

- Search


"Chilliputt" wrote:

Hi. I need a function to customize month end to the last Friday of each
month. So for December 2005, the start date would be (A1) 11-26-05, and the
end date would be (A2) 12-30-05. I want to autofill the dates that fall
within this range down starting in A3.

Any thoughts?



All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com