WEEKDAY Formula not giving correct date - HELP PLS!

MonkeyFace28

Board Regular
Joined
May 30, 2014
Messages
74
hey y'all,

hope everyone is good.

I have a spreadsheet I am trying to get the week commencing date to auto populate at the top of each tab.

I have my first week commencing date in cell M1 on tab named "WK1" I want my next week commencing date to show in cell A1 in tab "WK2" (i think you can see where this is going :) )

I also have a formula in A1, tab 1 that works like this -
Formula: =$L$1& " " &TEXT(M1,"d mmmm yyyy")
output: W/C 2 January 2019 - p.s if anyone can get the little letters to work i.e the nd, th, st, that would be amazing!)

the formula I have to give me the w/c date is as follows

Formula: =WK1!M1-WEEKDAY(WK1!M1,2)+1
output: W/C 31 December 2018

I can't work out why it's going backwards not forwards? :confused::eek:

any suggestions / help / money appreciated :) xx
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You said you already have that. Cant you not just add 7 days to it?
 
Upvote 0
You said you already have that. Cant you not just add 7 days to it?

I said I already have my "first" week commencing date - not that it's a Monday... because it isn't, it's a Wednesday because of the UK bank holidays. so you see, if I add 7 to my first date of 02/01/2019 - i will get the 09/01/2019 which is a Wednesday :)
 
Upvote 0
Maybe I am seeing this wrong but..

=WK1!M1 - WEEKDAY(WK1!M1,2)+1

You are subtracting and not adding
 
Last edited:
Upvote 0
To produce the next monday from any date you could use:

=M1-WEEKDAY(M1,2)+8

The subtraction of the weekday formula is intentional. It isnt really going to work when you reach the next bank holiday which is then going to produce the monday still. So use:

=WORKDAY(M1-WEEKDAY(M1,2)+7,1,holidays)

where holidays is a named range containing the holiday dates.
 
Upvote 0
To produce the next monday from any date you could use:

=M1-WEEKDAY(M1,2)+8

The subtraction of the weekday formula is intentional. It isnt really going to work when you reach the next bank holiday which is then going to produce the monday still. So use:

=WORKDAY(M1-WEEKDAY(M1,2)+7,1,holidays)

where holidays is a named range containing the holiday dates.

IT'S ALIIIIVVVVVEEEEEEE

yay thank you soo much, it works!! you're the best :) xx
 
Upvote 0

Forum statistics

Threads
1,216,372
Messages
6,130,223
Members
449,567
Latest member
ashsweety

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