Autofill Dates in Excel Excluding Weekends
In this article
Yes, you can autofill dates in Excel excluding weekends by using the WORKDAY function or by customizing the fill series options to skip Saturdays and Sundays. These methods ensure only weekdays are included when generating date sequences, which is especially useful for project timelines, work schedules, and business reporting.
How the WORKDAY Function Works
The WORKDAY function in Excel is specifically designed to calculate a date that is a specified number of workdays from a starting date, automatically excluding weekends (Saturday and Sunday). Optionally, it can also exclude custom holidays. This makes it ideal for creating date lists that reflect actual business days.
The syntax is:
WORKDAY(start_date, days, [holidays])
Where:
- start_date – the initial date from which to begin counting
- days – the number of workdays to add (use positive) or subtract (use negative)
- holidays – an optional range or list of dates to exclude in addition to weekends
For example, if cell A1 contains 1/1/2024 (a Monday), and you enter =WORKDAY(A1,1) in cell A2, Excel returns 1/2/2024 (Tuesday). If you drag this formula down, each subsequent cell will add one more workday, skipping weekends automatically.
Using Fill Series to Skip Weekends
Excel’s Fill Series feature can also generate dates excluding weekends, but only if configured correctly. By default, dragging the fill handle (the small square at the bottom-right of a selected cell) will include all calendar days. However, you can modify this behavior.
- Enter your starting date in a cell (e.g., A1).
- Select that cell and go to Home > Fill > Series.
- In the Series dialog box, choose Columns or Rows depending on layout.
- Set Series in to Chronological.
- Set Step value to
1. - Under Unit, select Weekday.
- Enter the Stop value (the final date in your range).
- Click OK.
This method fills only Monday through Friday dates between the start and end points. It’s useful when you want to generate a full list at once rather than using formulas.
Customizing with WORKDAY.INTL for Non-Standard Weekends
If your workweek doesn’t follow the standard Monday–Friday schedule (e.g., some Middle Eastern countries observe Friday–Saturday weekends), use WORKDAY.INTL. This function allows you to define which days are considered weekends.
Syntax:
WORKDAY.INTL(start_date, days, [weekend], [holidays])
The [weekend] argument can be a number or a string:
1= Saturday/Sunday (default)2= Sunday/Monday11= Sunday only17= Saturday only
Alternatively, use a seven-character binary string (e.g., "0000011" means Saturday and Sunday are weekends). A 1 represents a non-workday. The string starts with Monday.
For example, =WORKDAY.INTL(A1,1,"0000110") treats Thursday and Friday as weekends.
Common Problems and How to Fix Them
Several issues can arise when autofilling dates while excluding weekends:
- Dates appear as serial numbers: This happens when the cell format is not set to Date. Right-click the cell, choose Format Cells, and select a Date format under the Number tab.
- Weekends still appear in the list: This usually means the fill series was not set to Weekday or a standard drag-fill was used instead of the Series dialog.
- Formula returns #VALUE! or #NUM!: Check that the start date is a valid Excel date (not text). Also ensure the
daysargument is numeric. - Holidays not excluded: If using the holidays parameter, confirm the holiday range contains valid dates and is properly referenced (e.g.,
$B$1:$B$10).
Always test your formula or fill series over a known date range (e.g., including a weekend) to verify weekends are skipped.
Comparison of Methods
Different approaches suit different scenarios:
| Method | Best For | Dynamic Updates | Handles Holidays? |
|---|---|---|---|
| WORKDAY | Sequential workday lists with formula flexibility | Yes – recalculates if start date changes | Yes |
| WORKDAY.INTL | Non-standard weekend schedules | Yes | Yes |
| Fill Series (Weekday) | One-time static date lists | No – values are fixed once filled | No |
If you need the list to update automatically when inputs change, use WORKDAY or WORKDAY.INTL. For static reports or templates, Fill Series may be faster.
Alternatives and Workarounds
When WORKDAY or Fill Series aren’t suitable, consider these alternatives:
- Nested IF and WEEKDAY functions: Create a formula that checks if the next day is a weekend and skips it. For example:
=IF(WEEKDAY(A1+1,2)>5,A1+3,A1+1)
This adds 1 day if it’s a weekday (1–5), or 3 days to skip the weekend. - Power Query: For advanced users, Power Query can generate custom date tables excluding weekends and holidays, and can be refreshed when source data changes.
- VBA Macro: A script can loop through dates and populate only weekdays. This is powerful but requires programming knowledge and may trigger security warnings.
Each alternative has trade-offs in complexity, maintainability, and compatibility.
Frequently Asked Questions
Can I autofill dates in Excel without including weekends using drag-fill?
No, simply dragging the fill handle includes all calendar days. To exclude weekends, you must use the Fill Series dialog and select Weekday under Unit, or use the WORKDAY function in a formula that you then copy down.
How do I exclude holidays as well as weekends?
Use the WORKDAY or WORKDAY.INTL function and include a range of holiday dates as the third argument. For example: =WORKDAY(A1,1,$D$1:$D$10) where D1:D10 contains holiday dates. Excel will skip both weekends and any dates listed in that range.
Why does my WORKDAY formula return a number instead of a date?
Excel stores dates as serial numbers. If the cell displays a number (e.g., 45359), it means the cell format is not set to Date. Right-click the cell, choose Format Cells, go to the Number tab, select Date, and pick a format.
Can I use WORKDAY to go backward in time (previous workdays)?
Yes. Use a negative number for the days argument. For example, =WORKDAY(A1,-1) returns the previous workday. Excel will skip weekends going backward just as it does forward.
Is there a way to highlight weekends in a date list?
Yes, use Conditional Formatting with a formula like =OR(WEEKDAY(A1,2)=6,WEEKDAY(A1,2)=7) to format Saturdays and Sundays differently. This doesn’t exclude weekends but helps visually distinguish them.
Does Fill Series with Weekday option work in Excel Online?
Yes, Excel Online supports the Fill Series feature, including the Weekday option. However, the interface may vary slightly. Navigate to the Home tab, click Fill in the Editing group, select Series, and choose Weekday under Unit.