Calculate Week beginning and Week ending date of CURRENT month only

egrospeRP

New Member
Joined
Sep 5, 2018
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi Excel Gurus,

I'm trying to figure out a formula that will calculate the week beginning and week ending of a specific date BUT only the current month.

For example, 8/3/2018 has a week beginning of 7/29/2018 and a week ending of 8/4/2018. What formula can i use so that the week beginning date will return 8/1/2018 not 7/29/2018?

Similar with the week ending date... For example, 8/28/2018 has a beginning week of 8/26/2018 and week ending date of 9/1/2018. What formula can i use so that the week ending date will return as 8/31/2018 not 9/1/2018?

Thanks in advance!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
For a date in cell A1:

Week Start Date:
=MAX(A1-WEEKDAY(A1)+1,DATE(YEAR(A1),MONTH(A1),1))

Week End Date:
=MIN(A1+(7-WEEKDAY(A1)),EOMONTH(A1,0))

Does that seem to do what you want?
 
Upvote 0
Solution
That did the trick! thank you so much!

For a date in cell A1:

Week Start Date:
=MAX(A1-WEEKDAY(A1)+1,DATE(YEAR(A1),MONTH(A1),1))

Week End Date:
=MIN(A1+(7-WEEKDAY(A1)),EOMONTH(A1,0))

Does that seem to do what you want?
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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