Guide · Microsoft Teams and Excel, December 2026

How to count leave days in Excel without weekends and public holidays

Someone asks for Thursday to Tuesday off. Is that six days of leave, or four? If your team keeps a leave sheet in a Teams channel, the answer should come from a formula, not from whoever is adding it up that day. Excel has two functions made for this. Here is how to use them, including for teams whose weekend is not Saturday and Sunday.

1. Set up the leave sheet

If you have not got a sheet yet, the guide to free ways of tracking leave in Teams shows how to keep one in a channel. For the formulas you need three things:

  • A column for the first day off and one for the last day off, both real dates, not text.
  • A column for days used, where the formula goes.
  • A separate list of public holidays, one date per cell, on its own sheet or off to the side.

Microsoft warns that problems can occur when dates are entered as text. If a formula returns #VALUE!, a date typed as text is the first thing to check.

2. Count working days with NETWORKDAYS

NETWORKDAYS(start_date, end_date, [holidays]) counts the days between two dates and leaves out Saturdays, Sundays and any dates in the holidays list. With first day off in B2, last day off in C2 and the holiday dates in Holidays!A2:A20:

=NETWORKDAYS(B2, C2, Holidays!A2:A20)

Thursday to Tuesday across one weekend and no holiday gives 4. Both the first and the last day count when they are working days, which is what you want for leave: a request for a single day, with the same date in both cells, gives 1. Microsoft's page does not spell this out; its own example (110 working days from 1 October 2012 to 1 March 2013) only works out if both ends are counted, so test it once with a single-day request before you trust the column.

Leave the holidays argument out and only weekends are removed. The holiday list can be in any order and is easy to maintain: add next year's dates when the government publishes them.

3. Use NETWORKDAYS.INTL when the weekend is different

Not every office rests on Saturday and Sunday. NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]) adds a weekend argument. You can give it a number code:

  • 1 (or leaving it out): Saturday and Sunday.
  • 7: Friday and Saturday. 6: Thursday and Friday. 2: Sunday and Monday.
  • 11 to 17: a single weekend day, from 11 (Sunday only) to 16 (Friday only) and 17 (Saturday only).

Or a seven-character string that starts on Monday, where 1 is a day off and 0 is a working day. "0000011" is Saturday and Sunday; "0000110" is Friday and Saturday. For a team with a Friday and Saturday weekend:

=NETWORKDAYS.INTL(B2, C2, 7, Holidays!A2:A20)

Two cautions from Microsoft's page: "1111111" (every day a weekend) always returns 0, and an invalid string returns #VALUE!. If you have offices in different countries, keep one holiday list per country and one weekend setting per person or per office, then point each row at the right ones. This is where sheets get fiddly.

4. Handle half days

Neither function knows about half days. Two simple ways to deal with them:

  • Add a column "half days" and subtract 0.5 for each one: =NETWORKDAYS(B2, C2, Holidays!A2:A20) - 0.5*D2.
  • Keep half-day requests to a single date and enter 0.5 in the days-used column by hand.

5. What the formula does not do

  • It counts the days, but does not check them against a balance. You still need a column for days left.
  • It cannot tell that a public holiday falls inside a leave request unless the date is on your list.
  • It does not stop two people from the same team being off on the same days.
  • Nothing in it knows whether the manager approved the request.
  • Anyone with edit access can overwrite the formula, so protect that column or keep the sheet in a read-only copy for most people.

6. When to add more

If keeping holiday lists, weekend settings and balances in sync starts to take real time, we are building Leave Planner, a Microsoft Teams app that does the counting for you:

  • Requests count working days only, and each office has its own weekend and public holidays.
  • Requests go to the approver as a card in Teams, and only approved leave reaches the team calendar.
  • Leave types can be private, so sick leave shows to colleagues simply as "Away".

To weigh it against a sheet, see the comparison.

Coming soon. Leave Planner is not in the Microsoft Teams app store yet. Read how it works on the Leave Planner page and in the documentation.

We build Leave Planner. Everything in steps 1-5 works without it. This guide was written with AI assistance. The Excel functions were checked against Microsoft Support's pages for NETWORKDAYS and NETWORKDAYS.INTL, not tested in a live workbook, and the app details against the app's code. Both functions are in current Excel; if a result looks wrong, check the date cells first.

Leave Planner by Volution is built by Volution Technology.