Function Problems

How to Exclude Weekends in an Excel Gantt Chart Formula

Steve KSteve K Oct 9, 2026 868 views

Question details

The user wants to generate a sequence of dates for a Gantt chart based on a start date, automatically skipping weekends (Saturdays and Sundays).

How to Exclude Weekends in an Excel Gantt Chart Formula
Product
Excel
Device & OS
not provided
Scenario
Creating a project management Gantt chart where timeline tasks only occur on weekdays.
Observed behavior
Need a formula to calculate and populate consecutive weekday dates starting from a specific project start date (cell E2) into a timeline row (starting in cell J4).
Before you start

Ensure you have the project start date formatted correctly as a Date in your specified cell before applying the timeline formula.

Solution 1Recommended

Use the WORKDAY Function to Skip Weekends

The WORKDAY function calculates the nearest working day in the future or past, automatically excluding Saturdays and Sundays.

The WORKDAY function is ideal for project timelines and Gantt charts because it ensures that no tasks are scheduled on weekends. By combining it with the COLUMNS function, you can create a dynamic formula that increments the date automatically as you drag it across columns.

1
Locate the starting cells

Identify the cell containing your project start date (e.g., cell E2) and select the cell where you want your timeline to begin (e.g., cell J4).

2
Enter the WORKDAY formula

In cell J4, input the formula =WORKDAY($E$2-1,COLUMNS($J:J)). The $E$2 is an absolute reference to your start date, ensuring it remains constant as the formula moves.

3
Apply the formula across the chart

Press Enter to apply the formula, then click and drag the fill handle (the small green square at the bottom-right of the cell) to the right to populate the rest of your Gantt chart dates.

4
Add custom holidays (Optional)

If you want to exclude specific holidays, create a list of holiday dates in a separate range and add it as the third argument to your formula, like =WORKDAY($E$2-1,COLUMNS($J:J), $Z$2:$Z$10).

Use the WORKDAY Function to Skip Weekends
Absolute References: Using the dollar signs ($) in $E$2 ensures that the formula always refers to the exact start date cell when copied across other columns.
Manage Projects with WPS Spreadsheet

Create Professional Gantt Charts in WPS Spreadsheet

WPS Spreadsheet fully supports the WORKDAY function and advanced charting tools, making it incredibly easy to track project schedules, skip weekends, and manage complex timelines.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and create a new Spreadsheet document or open your existing project file.
  2. 2. Enter your project data: Type your project start date into a designated cell, such as E2.
  3. 3. Apply the WORKDAY formula: In your timeline row, enter =WORKDAY($E$2-1,COLUMNS($J:J)) and drag it across your Gantt chart area to generate weekday-only dates.
Fully compatible with Microsoft Excel formulas like WORKDAY and NETWORKDAYS.Seamlessly open, edit, and save Microsoft Excel (.xlsx) project files without formatting loss.Includes built-in chart templates for quick project management.Lightweight software with a familiar, easy-to-use interface.
microsoft office alternative - wps office

Frequently Asked Questions

How do I exclude custom holidays in addition to weekends?

You can add a list of holiday dates as the third argument in the WORKDAY function. For example, =WORKDAY($E$2-1, 1, A1:A10) where A1:A10 contains your specific holiday dates.

What if my work week doesn't have Saturday and Sunday off?

If your weekends fall on different days, use the WORKDAY.INTL function instead. It allows you to specify exactly which days of the week should be treated as non-working days using a custom weekend parameter.

Why is my formula returning a random number instead of a date?

Spreadsheet software stores dates as sequential serial numbers. If you see a number like 44200 instead of a date, select the cell, right-click, choose 'Format Cells', and change the number format to 'Date'.

How can I calculate the total number of working days between two dates?

To find the number of working days between a start and end date, use the NETWORKDAYS function. The formula =NETWORKDAYS(start_date, end_date) will automatically exclude weekends from the total count.