Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Everything about Charts in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Get column name from index in Excel Table
  • How to count table columns in Excel

References

  • How to get relative row numbers in a range in Excel
  • How to use Excel ROWS Function
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Count unique text values with criteria
  • Create hyperlink with VLOOKUP in Excel

Data Validations

  • Excel Data validation with conditional list
  • Excel Data validation must contain specific text
  • Excel Data validation don’t exceed total
  • Excel Data validation whole percentage only
  • Excel Data validation allow weekday only

Get first Monday before any date in Excel

by

To find the first Monday before any date you can use a formula based on the WEEKDAY function.

Formula

=date-WEEKDAY(date-2)

In the example shown, the formula in C6 is:

=B5-WEEKDAY(B5-2)

Explanation

If you imagine you have any random date and want to look back in time to find the nearest Monday, you can see that you will need to “roll back” a specific number of days, depending on the day of week (e.g. Mon, Tue, etc) of the starting date. If the date is a Monday, you’ll need to drop back 7 days, if the date is a Tuesday, you’ll need to drop back 1 day, and so on. The table below shows the adjustment needed for each day of the week.

Date Days to drop back
Monday 7
Tuesday 1
Wednesday 2
Thursday 3
Friday 4
Saturday 5
Sunday 6

The formula is based on the fact that Monday is 2 in Excel’s default scheme, where weeks begin on Sunday. The “roll back” is calculated by getting the weekday value of the date 2 days before the given date, and subtracting this value from the date. So, assuming a date of June 4, 2015 (a Thursday) in cell A1, the formula is solved as follows:

=A1-WEEKDAY(A1-2)
=June 4,2015-WEEKDAY(June 4,2015-2)
=June 4,2015-WEEKDAY(June 2,2015)
=June 4,2015-3
=June 1,2015

An alternative

If you find the weekday adjustment confusing and non-intuitive, you use an alternative formula that uses the CHOOSE function with hard-coded adjustment values:

=B5-CHOOSE(WEEKDAY(B5),6,7,1,2,3,4,5)

This formula uses WEEKDAY to get an index for the day of week, and CHOOSE to fetch the correct roll back. One advantage of this approach is that CHOOSE allows arbitrary values for each day of the week. This is handy if you don’t want to roll back if the date is already Monday. In that case, you can supply zero as the roll back number for when WEEKDAY returns 2 (Monday).

Monday previous to today

If you need to find the Monday previous to today, just use the TODAY function for date:

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

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • Convert text to date in Excel
  • Get last weekday in month in Excel
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • Calculate total hours that fall between two times in Excel
  • Convert Excel time to decimal seconds

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Group numbers with VLOOKUP in Excel
  • Group arbitrary text values in Excel

General

  • How to count total columns in range in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • How to set or clear a print area in Excel Worksheet
  • How to calculate percentage discount in Excel
  • How to fill cell ranges with random number from fixed set of options in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning