Weeks of Month Dates

Papi

Well-known Member
Joined
May 22, 2007
Messages
1,592
What is posted below is not exactly what I need. What I need to do is enter the first Monday of a given month in Cell B3 and have B4 return the first Monday of the next month and the same for the next ten cells B5:B14.

On a similar note, how would a formula go to enter say September 16, 20011 and each cell after (B4:B14) to return the 16th of the following month but return the day on the Monday (Tuesday if using a Holiday range) if the next month falls on a weekend.

And if I could be so bold as to ask how the last one might work if a person needs to return a Friday instead of Monday and move to Thursday if there is a Holiday on Friday.

Any help would be great.

Book1
BCDE
2Date
310/1/2011
410/3/2011Mon
Sheet1
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Alan,

See the formulas in the screenshot below.

A couple of notes:

1. Since you're entering a first Monday into Cell B3, the formula takes a shortcut. The first Monday of the next month will always be either B3+28 or B3+35. So the same formula would work for first Tuesday, Wednesday....

2. The formula in Col C uses the EOMONTH function. In versions prior to xl2007, the Analysis Toolpak must be installed to use this function.

3. For your questions regarding the 16th of the month, their aren't any holidays coming up on those days, so for my example I had to award us each a National Holiday next year. :biggrin:

Excel Workbook
BCDEFGH
2First Monday16th of Month16th or Next Workday16th or Previous WorkdayHolidays
310/3/2011 Mon11/16/2011 Wed11/16/2011 Wed11/16/2011 WedCanada Day7/1/2011 Fri
411/7/2011 Mon12/16/2011 Fri12/16/2011 Fri12/16/2011 FriCivic Holiday8/1/2011 Mon
512/5/2011 Mon1/16/2012 Mon1/17/2012 Tue1/13/2012 FriNew Year's Day1/1/2012 Sun
61/2/2012 Mon2/16/2012 Thu2/16/2012 Thu2/16/2012 ThuFamily Day2/20/2012 Mon
72/6/2012 Mon3/16/2012 Fri3/19/2012 Mon3/15/2012 ThuPapi's Day1/16/2012 Mon
83/5/2012 Mon4/16/2012 Mon4/16/2012 Mon4/16/2012 MonJS411's Day3/16/2012 Fri
94/2/2012 Mon5/16/2012 Wed5/16/2012 Wed5/16/2012 WedGood Friday4/6/2012 Fri
105/7/2012 Mon6/16/2012 Sat6/18/2012 Mon6/15/2012 FriEaster Monday4/9/2012 Mon
116/4/2012 Mon7/16/2012 Mon7/16/2012 Mon7/16/2012 MonVictoria Day5/21/2012 Mon
127/2/2012 Mon8/16/2012 Thu8/16/2012 Thu8/16/2012 ThuCanada Day7/2/2012 Mon
138/6/2012 Mon9/16/2012 Sun9/17/2012 Mon9/14/2012 FriCivic Holiday8/6/2012 Mon
149/3/2012 Mon10/16/2012 Tue10/16/2012 Tue10/16/2012 Tue
Sheet1
 
Upvote 0
there are many methods see this webpage and apply to suity you

http://www.mrexcel.com/forum/showthread.php?t=19107

for example the first of the month next few months are in the row no. 1
see formulas in row 2(I used Aladin Aktyrek's formula (below)

type the formula in A2 and copy it across

Excel Workbook
ABCDEFGHIJK
11-Oct-111-Nov-111-Dec-111-Jan-121-Feb-121-Mar-121-Apr-121-May-121-Jun-121-Jul-121-Aug-12
23-Oct-117-Nov-115-Dec-112-Jan-126-Feb-125-Mar-122-Apr-127-May-124-Jun-122-Jul-126-Aug-12
Sheet1
 
Upvote 0
Hello Jerry and venkat1926,

I was going through Jerry's list and did not notice venkat1926's until I was almost done and then realized my wording gave a somewhat misrepresetation of what I need. B4 looks at B3 and should copy down to B14. C4 looks at C3 and copies down to C14, D4 looks at D3 and copies down to D14 etc. Other than my mistake Jerry, yours was right on the money as you followed what I wrote, which was wrong on my part. I've been trying to re-figure out how to do it but have not accomplished this yet.

Also, I found one more that really throws me off and that is something that happens on the 15th and Last day of the month but moves to the previous workday by exlcuding weekends and Holidays.
 
Upvote 0
Also, I found one more that really throws me off and that is something that happens on the 15th and Last day of the month but moves to the previous workday by exlcuding weekends and Holidays.

Hello Alan,

With holidays in H3:H13 as per Jerry's suggestion then enter the first date of the sequence in F3 (either 15th of month or last of month) and then put this formula in F4

=WORKDAY(EOMONTH(F3,0)+15*(DAY(F3)>15)+1,-1,H$3:H$13)

format in required date format and copy down
 
Upvote 0
C4 looks at C3 and copies down to C14, D4 looks at D3 and copies down to D14 etc. Other than my mistake Jerry, yours was right on the money as you followed what I wrote, which was wrong on my part. I've been trying to re-figure out how to do it but have not accomplished this yet.

Alan,

I just broke out Columns C:E to make it easier to see the dates that are changed by weekends or holidays. You can combine those as shown below and copy the formulas down from C4 and D4.

Excel Workbook
BCD
2First Monday16th or Next Workday16th or Previous Workday
310/3/2011 Mon11/16/2011 Wed11/16/2011 Wed
411/7/2011 Mon12/16/2011 Fri12/16/2011 Fri
512/5/2011 Mon1/17/2012 Tue1/13/2012 Fri
61/2/2012 Mon2/16/2012 Thu2/16/2012 Thu
72/6/2012 Mon3/19/2012 Mon3/15/2012 Thu
83/5/2012 Mon4/16/2012 Mon4/16/2012 Mon
94/2/2012 Mon5/16/2012 Wed5/16/2012 Wed
105/7/2012 Mon6/18/2012 Mon6/15/2012 Fri
116/4/2012 Mon7/16/2012 Mon7/16/2012 Mon
127/2/2012 Mon8/16/2012 Thu8/16/2012 Thu
138/6/2012 Mon9/17/2012 Mon9/14/2012 Fri
149/3/2012 Mon10/16/2012 Tue10/16/2012 Tue
Sheet1


Hopefully, Barry's reply answers your other question - I didn't completely understand what you described about the 15th of the month.
 
Upvote 0
The mix-up was on my side on how I worded myself in the initial post. Everything is perfect. It always amazes me the professionalism combined with patience found on the MrExcel website. We are darned lucky to have so many awesome individuals from around the world willing to assist people of all levels, from beginners to experts. I would have to say this is one of the most amazing websites on this earth given the dedication to helping those folks needing assistance and understanding on so many complex issues.

Jerry, you have such a keen ability to read and understand what the user is looking for and given some of the quirky explanations we submit, you have the ability to sum up answers and typically nail them down rather quickly.

Barry, what can be said other than you are one of the masters of the arena and given the number of assists which you handle in a year keeps you on top of the board along with some very strong contenders.

venkat1926, have helped by giving direction that actually helped me resolve issues that I was struggling with.

Many thanks to all of you. I cannot thank you enough.

Jerry, just to indicate my last question, the issue was events that happen typically on the 15th and the last day of each month but should never fall on a weekend and therefore moves the date to the previous workday, so needs to exclude weekends and Holidays.

Alan
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,569
Members
452,926
Latest member
rows and columns

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