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

Data Analysis

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How to create Gauge Chart in Excel
  • Chart Axes in Excel
  • Add Outline to Data in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • How to use Excel ROW Function
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Get nth match with INDEX / MATCH in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • How to calculate two-way lookup VLOOKUP in Excel Table

Data Validations

  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Data validation must not exist in list
  • Excel Data validation whole percentage only
  • Excel Data validation exists in list

Generate series of dates by weekends in Excel

by

This tutorials covers how to generates Series of dates increment by weekends from a single start date in Excel.

If need to generate a dynamic series of dates with a formula that include only future weekend dates (i.e. Sat and Sun), you can do so with a formula that uses the IF and WEEKDAY functions.

Formula

=IF(WEEKDAY(date)=7,date+1,date+(7-WEEKDAY(date)))

Explanation

 

In the example, B6 is the hard-coded start date and the formula in B7 is:

=IF(WEEKDAY(B6)=7,B6+1,B6+(7-WEEKDAY(B6)))

To solve this formula, Excel first calculates the weekday value for the date in B6. By default, weekday will return 1 for Sunday and 7 for Saturday. Next, Excel tests the weekday inside the IF statement, using B6=7 as the logical test. If B6 = 7, the date in B6 is a Saturday and the result if true is returned: B6 + 1. So, if B6 is a Saturday, the formula returns the next day (a Sunday).

Worked Example:   Conditional formatting gantt chart weekends in Excel

If not, the result if false is returned:

B6+(7-WEEKDAY(B6))

To solve this part of the formula, Excel calculates the weekday value of B6, then subtracts that value from 7. The result is added to B6. So, for Monday through Friday, this looks like this:

Worked Example:   Get work hours between dates custom schedule in Excel

B6+(7-2) = B6+5 <– Mon
B6+(7-3) = B6+4 <– Tue
B6+(7-4) = B6+3 <– Wed
B6+(7-5) = B6+2 <– Thu
B6+(7-6) = B6+1 <– Fri

Worked Example:   If cell equals in Excel

Note: you’ll need to supply a date at least one day before the first Saturday you want to generate.

Post navigation

Previous Post:

Get day from date in Excel

Next Post:

Calculate loan interest in given year in Excel

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
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel
  • How to use IFS function in Excel

Date Time

  • How to calculate Day of the Year in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Get days, months, and years between dates in Excel
  • Custom weekday abbreviation in Excel
  • Extract time from a date and time in Excel

Grouping

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

General

  • How to calculate percent of goal in Excel
  • How to calculate decrease by percentage in Excel
  • With vs Without Array Formula in Excel
  • How to count total columns in range in Excel
  • Count cells that contain errors in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning