Using Monday, Friday or Sunday dates to find relating month, If last week of a month has a Wednesday, then that week is part of same month

atearth

New Member
Joined
Feb 25, 2015
Messages
39
Office Version
  1. 365
  2. 2013
  3. 2007
Platform
  1. Windows
  2. Web
I'm currently trying to using Monday, Friday or Sunday dates to find relating month, to show week X is part of month Y.

ABCD
1Week Commencing Monday30-Jan-1729-Jan-1828-Jan-19
2Week Ending Friday03-Feb-1702-Feb-1801-Feb-19
3Week Ending Sunday05-Feb-1704-Feb-1803-Feb-19
4Month01-Feb-1701-Jan-1801-Jan-19

<tbody>
</tbody>


B4 is 01-Feb-17 due to the week in question only having Monday & Tuesday in Jan-17. So the week in question would be part of Feb-17.

C4 and D4 would be 01-Jan due to both weeks in questions having Monday, Tuesday and Wednesday in Jan-YY.
Any ideas as to what formula to use?

Would leap day affect the formula used?
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hello,

Not sure to fully understand your objective ...

Could the WeekNum() function applied to B1,C1,D1 be of any help ?
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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