Calculate Fractional Working Days with Excel NETWORKDAYS
Question details
Calculate working-day durations that include partial days and time values.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to calculate elapsed working days between two date-and-time values, excluding weekends and optionally holidays.
- Observed behavior
- NETWORKDAYS returns a whole-day count, but the desired result includes the fractional portions of the start and end days.
Enter valid Excel date-and-time values in D4 and E4, with the start before the end. For the formula below, both dates must be working days; enter any holiday dates in J1:J10.
Add time fractions to the NETWORKDAYS result
Use this formula to calculate fractional 24-hour working days when both endpoints fall on working days.
NETWORKDAYS counts both working dates as whole days. Subtracting one and adjusting for the start and end times preserves the partial-day duration. This calculation uses 24-hour days, not a defined business-hours schedule.
Select an empty result cell and enter =NETWORKDAYS(D4,E4,J1:J10)-1-MOD(D4,1)+MOD(E4,1). If you have no holiday list, use =NETWORKDAYS(D4,E4)-1-MOD(D4,1)+MOD(E4,1).
Select the result cell, then choose Home > Number and select Number. Adjust the decimal places to show the precision you need.
Verify that D4 and E4 contain dates with times and that neither endpoint is a weekend or a date in J1:J10.

Calculate fractional working days in WPS Spreadsheet
Use NETWORKDAYS and MOD in WPS Spreadsheet to include partial days while excluding weekends and optional holidays.
- 1. Open the spreadsheet: Open WPS Spreadsheet and use Open to select your workbook, or create a new spreadsheet.
- 2. Enter dates and holidays: Enter the start date and time in D4 and the end date and time in E4. If needed, enter holiday dates in J1:J10.
- 3. Calculate the duration: In an empty cell, enter =NETWORKDAYS(D4,E4,J1:J10)-1-MOD(D4,1)+MOD(E4,1). Omit J1:J10 from NETWORKDAYS if you do not have a holiday list.
- 4. Show decimal days: Select the result cell and use the Number format on the Home tab to display the fractional result.

Frequently Asked Questions
Why does NETWORKDAYS return a whole number?
NETWORKDAYS counts working dates rather than elapsed time. Use MOD on the start and end date-time cells to include their time fractions.
How do I exclude holidays from the calculation?
Enter holiday dates in a range such as J1:J10 and include that range as the third argument: NETWORKDAYS(D4,E4,J1:J10).
What if the start or end date falls on a weekend?
The formula on this page assumes both endpoints are working days. If either falls on a weekend or listed holiday, use a formula that adjusts nonworking endpoints before calculating the duration.
Can I use a different weekend schedule?
Yes. Use NETWORKDAYS.INTL instead of NETWORKDAYS and specify the weekend argument, for example NETWORKDAYS.INTL(D4,E4,1,J1:J10) for Saturday and Sunday. The fractional adjustment still assumes both endpoints are working days.
Does this formula count only hours within a business day?
No. The result represents fractions of a 24-hour day. To count only hours within a schedule such as 9:00 AM to 5:00 PM, use a formula designed for those business hours.




