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

Data Analysis

  • How To Perform and Interpret Regression Analysis in Excel
  • Excel Line Chart
  • Randomize/ Shuffle List in Excel
  • Error Bars in Excel
  • How to Create Gantt Chart in Excel

References

  • How to get last row in numeric data in Excel
  • Create hyperlink with VLOOKUP in Excel
  • Count rows with at least n matching values
  • Extract data with helper column in Excel
  • Excel Advanced Lookup using Index and Match Functions

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation must contain specific text
  • Excel Data validation date in next 30 days
  • Excel Data validation with conditional list
  • Excel Data validation allow uppercase only

Roll back weekday to Friday base on a particular date in Excel

by

Case study:

If Monday, roll back to Friday

To check the weekday of a date, and roll back to Friday when the date is a Monday, you can use the IF and WEEKDAY functions.

Formula

=IF(WEEKDAY(date)=2,date-3,date)
If-Monday-roll-back-to-Friday Roll back weekday to Friday base on a particular date in Excel

Explanation

In the example shown, the formula in C5 is

=IF(WEEKDAY(B5)=2,B5-3,B5)

How this formula works

The WEEKDAY function returns a number, 1-7, that corresponds to particular days of the week. By default, WEEKDAY assumes a Sunday-based week, and assigns 1 to Sunday, 2 to Monday, and so on, with 7 assigned to Saturday.

In this case, we only want to take action if the date in question is Monday. To test, we use this expression inside the IF function:

WEEKDAY(B5)=2

If the logical expression returns TRUE, we know the date is a Monday, so we subtract 3 to “roll back” to Friday. If the expression returns FALSE, we simply return the original date.

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

  • How to use Excel XOR Function
  • How to use Excel NOT Function
  • Check multiple cells are equal in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel

Date Time

  • Add days to date in Excel
  • Get day name from date in Excel
  • How to calculate next scheduled event in Excel
  • List holidays between two dates in Excel
  • Add days exclude certain days of week in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • How to randomly assign data to groups in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel

General

  • Excel Operators
  • How to increase by percentage in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to create dynamic named range with INDEX in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning