Skip to main content

Excel Formula: Get Most Recent Day of Week

doc convert date to julia 1

If there is a given date, how can you get the date of the most recent specific weekday based on the date in Excel? Here introduces a formula to quickly get it.

If you want to follow along with this tutorial, please download the example spreadsheet.
doc convert date to julia 1

Generic formula:


Syntaxt and Arguments

Date: the given date that is used to find the most recent day of week.
Week_number: the number indicates which weekday you want to get. Excel assigns 1 to Sunday and 7 to Saturday. For example, to get the most recent Monday, the weekday_number is 2.

Return Value

The formula returns a 5-digit number. Since Excel stores dates as numbers, for getting a visual date, you can show the formula result in date format.

How this formula works

To get the most recent Thursday based on the date in cell B3, please use below formula:


Press Enter key.
doc convert date to julia 1

Then go to Number Format list to choose Short Date or Long Date as you need in the Number group under Home tab.
doc convert date to julia 1


MOD function: returns the remainder of two numbers after division.


1 This formula gets the most recent weekday in past.

2 If you want to automatically get the most recent weekday from today, use below formula:

Relative Formulas

Relative Functions

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations