Week commencing

Noz2k

Well-known Member
Joined
Mar 15, 2011
Messages
693
OK, I currently use this formula to work out the week commencing date

Code:
Date - Weekday(Date, 3)

This looked to be working fine when I tested it last week, however now that it is a Monday I get a problem that the code gives me the date for last Monday rather than today.

How can I correct this?
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You seem to use function. What is this function?
 
Upvote 0
For me it returns the 16/05/2011


Anyway, I have changed the formula now to

(Date +1) - Weekday(Date, 2)

which gives me the 23rd. Just unsure if this will work on every other day of the week?
 
Upvote 0
Is that not essentially the same as what I've already got?

Just subtracting 1 less from a number that's 1 less?
 
Upvote 0
It looks like it,

which gives me the 23rd. Just unsure if this will work on every other day of the week?

I haven't tested your version so was just giving you one that I know works.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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