How can I autofill a cell with the date of the last Monday?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello!

How can I autofill a cell with the date of the last Monday?

Thanks!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
This one produces same day in today is a monday:

=TODAY()-WEEKDAY(TODAY(),3)

or this one the previous monday:

=TODAY()-WEEKDAY(TODAY()-2)

So it depends on what you want to do on a monday.
 
Upvote 0
=if(weekday(today())=1,today()-6,if(weekday(today())=2,today()-7,if(weekday(today())=3,today()-1,if(weekday(today())=4,today()-2,if(weekday(today())=5,today()-3,if(weekday(today())=6,today()-4,today()-5))))))
 
Upvote 0
This one produces same day in today is a monday:

=TODAY()-WEEKDAY(TODAY(),3)

or this one the previous monday:

=TODAY()-WEEKDAY(TODAY()-2)

So it depends on what you want to do on a monday.

So the first one, tomorrow, will return 29/10? I don't have a way to verify that.
 
Upvote 0
Yes it will. You could replace today() with a cell reference with tomorrows date in it if you wanted to check.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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