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

Data Analysis

  • How to create dynamic reference table name in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Working With Tables in Excel

References

  • Perform case-sensitive Lookup in Excel
  • Merge tables with VLOOKUP in Excel
  • How to get first column number in range in Excel
  • How to get last row in mixed data with blanks in Excel
  • How to use Excel TRANSPOSE Function

Data Validations

  • Excel Data validation whole percentage only
  • Excel Data validation must contain specific text
  • Excel Data validation exists in list
  • Excel Data validation date in next 30 days
  • Excel Data validation only dates between

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

  • OR function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • Nested IF function example in Excel

Date Time

  • Add days exclude certain days of week in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • Count times in a specific range in Excel
  • Display Date is same month in Excel
  • Get project end date in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel
  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel

General

  • 231 Keyboard Shortcut Keys In Excel
  • Find, Select, Replace and Go To Special in Excel
  • How to Insert Cells, Row and Rows in Excel
  • Basic text sort formula in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning