set month end

G

Guest

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?
 
G

Guest

=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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top