How to Subtract Working Days in Excel
In this article
To subtract working days in Excel, use the WORKDAY function: =WORKDAY(start_date, -N), where N is the number of working days you want to go back. For example, =WORKDAY(A1, -10) returns the date 10 working days before the date in A1, automatically skipping weekends. If you need to exclude holidays as well, add a range of holiday dates as the third argument: =WORKDAY(A1, -10, holidays). This gives you a precise business-day calculation without manual counting.
What You'll Need
- Excel 2010 or later (WORKDAY is available in all modern versions, including Microsoft 365 and Excel for the web).
- A start date entered in a cell (formatted as a date, not text).
- Optional: a list of holiday dates in a separate range if you want to exclude them.
Step-by-Step
- Enter your start date. Type a date into a cell, for example
A1. Make sure Excel recognises it as a date (it should align to the right by default). If it aligns left, it may be stored as text—re-enter it in a format like2025-04-01or useDATE(2025,4,1). - Decide how many working days to subtract. This is a positive number representing the count of business days you want to go back. For instance, 5 for one work week, 10 for two weeks.
- Write the WORKDAY formula. In an empty cell, type
=WORKDAY(A1, -5)to subtract 5 working days from the date in A1. The negative sign tells Excel to go backwards. Press Enter. - Check the result. The cell will display a date that is 5 working days before A1, skipping Saturdays and Sundays. For example, if A1 is Monday, April 7, 2025, subtracting 5 working days returns Monday, March 31, 2025 (because weekends are skipped).
- Add holidays (optional). If you have a list of holiday dates (e.g., in
D1:D10), include that range as the third argument:=WORKDAY(A1, -5, D1:D10). Excel will skip both weekends and any dates in that list. Ensure the holiday range contains valid dates, not text. - Format the result as a date. If the result appears as a serial number (like 45382), select the cell, right-click, choose Format Cells, and pick a Date format. Alternatively, use the Home tab's number format dropdown.
- Copy the formula down. If you have multiple start dates, drag the fill handle to apply the formula to other rows. Use absolute references (e.g.,
$D$1:$D$10) for the holiday range so it doesn't shift.
Common Mistakes
- Using a positive number instead of negative. WORKDAY with a positive number adds working days; to subtract, always use a negative value (e.g.,
-5). - Forgetting to exclude holidays. If you need to account for holidays, you must include the third argument; otherwise, only weekends are skipped.
- Holiday range contains blanks or text. Blank cells or text in the holiday range can cause incorrect results or errors. Ensure the range only contains valid dates.
- Start date stored as text. If your start date is text, WORKDAY may return a #VALUE! error. Convert it to a date using
DATEVALUEor re-enter it. - Expecting WORKDAY to consider custom weekends. WORKDAY always treats Saturday and Sunday as weekend. For different weekend days, use
WORKDAY.INTL.
Tips
- Use
WORKDAY.INTLif your weekends are not Saturday/Sunday. For example,=WORKDAY.INTL(A1, -5, 7)treats Friday and Saturday as the weekend (code 7). See Excel's documentation for other weekend codes. - To subtract working days from today's date, use
=WORKDAY(TODAY(), -5). The result updates each day. - Combine with
TEXTto display the result in a specific format:=TEXT(WORKDAY(A1, -5), "mmmm d, yyyy"). - If you need to count working days between two dates, use
NETWORKDAYSinstead. - Name your holiday range (Formulas > Define Name) to make formulas easier to read, e.g.,
=WORKDAY(A1, -5, Holidays).
Troubleshooting
- #VALUE! error: Check that the start date and holiday range contain valid dates, not text. Also ensure the days argument is a number.
- #NUM! error: This occurs if the result is an invalid date (before January 1, 1900). If subtracting many working days, the result may be too far back.
- Result is a serial number: Format the cell as a date (right-click > Format Cells > Date).
- Holidays not excluded: Verify the holiday range is correct and does not include duplicates or non-date values. Also check that you included the third argument.
- Formula not updating: Ensure calculation is set to automatic (Formulas > Calculation Options > Automatic).
Frequently Asked Questions
Can I subtract working days including Saturdays?
Yes, use WORKDAY.INTL with a weekend code that excludes only Sunday (code 11) or define your own weekend string. For example, =WORKDAY.INTL(A1, -5, 11) treats only Sunday as weekend.
What's the difference between WORKDAY and NETWORKDAYS?
WORKDAY returns a date a specified number of working days before or after a start date. NETWORKDAYS counts the number of working days between two dates. They are complementary functions.
Can I use WORKDAY with a cell reference for the days argument?
Yes, you can reference a cell containing the number of days, e.g., =WORKDAY(A1, -B1) where B1 holds 5. Just ensure B1 contains a positive number; the negative sign in the formula makes it subtract.
Does WORKDAY work in Excel for Mac?
Yes, WORKDAY is available in Excel for Mac (2011 and later) and Excel for the web. The syntax is identical.
How do I subtract working days excluding custom holidays in Google Sheets?
Google Sheets also has a WORKDAY function with the same syntax: =WORKDAY(start_date, num_days, [holidays]). Use a negative num_days to subtract.
Why does my WORKDAY formula return a weekend date?
WORKDAY should never return a weekend date unless your holidays list includes a weekend date and you haven't excluded it properly. Double-check that the holidays range does not contain weekend dates, or use WORKDAY.INTL with appropriate weekend settings.