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

Data Analysis

  • How To Compare Two Lists in Excel
  • How to create a Histogram in Excel
  • Subtotal function in Excel
  • How to Create Thermometer Chart in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • How to get address of first cell in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Multi-criteria lookup and transpose in Excel
  • How to get address of last cell in range in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation exists in list
  • Data validation must not exist in list
  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage 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

  • IF with wildcards in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • Nested IF function example in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to get same date next year or previous year in Excel
  • Check If Two Dates are same month in Excel
  • Get date from day number in Excel
  • Roll back weekday to Friday base on a particular date in Excel
  • How to calculate nth day of year in Excel

Grouping

  • Map text to numbers in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Group numbers with VLOOKUP in Excel

General

  • How to calculate project complete percentage in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to choose page/paper size in Excel before Printing
  • Freeze and Unfreeze Panes in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning