Getting a previous Monday (unless the date is a Monday)

Berandon

New Member
Joined
Sep 8, 2014
Messages
36
I saw a thread that asked for the prior Monday formula, but i used it and if the date is a Monday it goes to the previous Monday, How would i change the formula to be if Monday is today then leave it. I am new to using days of the week formula, so any explanation of how the formula breaks down so i can use it for other days of the weeks i may need. I mostly need previous Monday and following Friday and i have a working Friday one, but not the Monday one.

Thank you in advance for any help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
A​
B​
C​
1​
Mon 01 Jan 2018​
Mon 01 Jan 2018​
B1: = A1 + 1 - WEEKDAY(A1 - 6 - 2)
2​
Wed 10 Jan 2018​
Mon 08 Jan 2018​
3​
Fri 02 Mar 2018​
Mon 26 Feb 2018​
4​
Sun 11 Mar 2018​
Mon 05 Mar 2018​
5​
Tue 13 Mar 2018​
Mon 12 Mar 2018​
6​
Mon 12 Mar 2018​
Mon 12 Mar 2018​

For the on-or-prior nDay,

= A1 + 1 - WEEKDAY(A1 - 6 - nDay)

For Monday, nDay is 2
 
Upvote 0
assuming that E3 contains "=Today()"
then :
=E3-WEEKDAY(E3-1)+1
 
Upvote 0
If your Excel has the WORKDAY.INTL function, here is a shorter formula:

=WORKDAY.INTL(TODAY()+1,-1,"0111111")
 
  • Like
Reactions: shg
Upvote 0

Forum statistics

Threads
1,215,756
Messages
6,126,692
Members
449,330
Latest member
ThatGuyCap

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