start date and end date of the month in broad cast calendar

pavan5

Board Regular
Joined
Jun 13, 2017
Messages
56
Can someone help me in finding out a formula for figuring out first day and last of the month for a broad cast calendar. Example for Jun 1 2017, the start of month should be May 26th 2017 since Jun 1st falls on a Thursday end date would be normal Jun 30 2017, like wise for Jul 2017, the start date of the month would be June 29 2017 for Aug 2017 it would be July 31 2017 ...The first day(1) of any month should be on Monday.

Any help would be greatly appreciated!
 
Anyway, if you have XL2010+ these will work for you..

If the actual calendar 1st day of the month is in A1

The previous monday is
=WORKDAY.INTL(A1+1,-1,"0111111")

And last day of month is
=EOMONTH(A1,0)
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
So I'll ask again...

If today was June 29th.
Do I call that plain old June 29th, or the 1st day of July ?


Which version of Excel are you using?


it should be like this

date month_start_date_bcast month_end_date_bcast
6/29/2017 05/29/2017 6/25/2017
6/30/2017 05/29/2017 6/25/2017
7/01/2017 06/26/2017 7/30/2017

end date should be the Sunday
 
Upvote 0
Ok,

End Date is
=WORKDAY.INTL(EOMONTH(A1,0)+1,-1,"1111110")
 
Last edited:
Upvote 0
So I'll ask again...

If today was June 29th.
Do I call that plain old June 29th, or the 1st day of July ?


Which version of Excel are you using?

this is what am looking to do ...sample did it manually..
key datestart_dateend_date
201705302017-05-304/30/20175/28/2017
201705312017-05-314/30/20175/28/2017
201706012017-06-015/29/20176/25/2017
201706022017-06-025/29/20176/25/2017
201706032017-06-035/29/20176/25/2017
201706042017-06-045/29/20176/25/2017
201706052017-06-055/29/20176/25/2017
201706062017-06-065/29/20176/25/2017
201706072017-06-075/29/20176/25/2017
201706082017-06-085/29/20176/25/2017
201706092017-06-095/29/20176/25/2017
201706102017-06-105/29/20176/25/2017
201706112017-06-115/29/20176/25/2017
201706122017-06-125/29/20176/25/2017
201706132017-06-135/29/20176/25/2017
201706142017-06-145/29/20176/25/2017
201706152017-06-155/29/20176/25/2017
201706162017-06-165/29/20176/25/2017
201706172017-06-175/29/20176/25/2017
201706182017-06-185/29/20176/25/2017
201706192017-06-195/29/20176/25/2017
201706202017-06-205/29/20176/25/2017
201706212017-06-215/29/20176/25/2017
201706222017-06-225/29/20176/25/2017
201706232017-06-235/29/20176/25/2017
201706242017-06-245/29/20176/25/2017
201706252017-06-255/29/20176/25/2017
201706262017-06-265/29/20176/25/2017
201706272017-06-275/29/20176/25/2017
201706282017-06-285/29/20176/25/2017
201706292017-06-295/29/20176/25/2017
201706302017-06-305/29/20176/25/2017
201707012017-07-016/26/20177/30/2017

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
So your given date to start with is not necessarily the first of the month.

With ANY date in A1

First day of calendar month from date in A1
=WORKDAY.INTL(A1-DAY(A1)+2,-1,"0111111")

Last day of calendar month from date in A1
=WORKDAY.INTL(EOMONTH(A1,0)+1,-1,"1111110")
 
Upvote 0
my start date for the entire data is 1/1/1900 :) from there, series of dates until 12/31/2029
 
Upvote 0
So your given date to start with is not necessarily the first of the month.

With ANY date in A1

First day of calendar month from date in A1
=WORKDAY.INTL(A1-DAY(A1)+2,-1,"0111111")

Last day of calendar month from date in A1
=WORKDAY.INTL(EOMONTH(A1,0)+1,-1,"1111110")

you are awesome !!!! :cool: thanks a ton !!!!!!!

am a newbie to this site, so pardon my duplication of replies
 
Upvote 0

Forum statistics

Threads
1,216,225
Messages
6,129,604
Members
449,520
Latest member
TBFrieds

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