How to count the days excluding Sundays between two dates in Excel?

As below screenshot shown, you have two given dates, one is start date and the other is the end date, and the job is to count the days excluding Sundays between these two given dates, how can you quickly get it done in Excel?

doc count days excluding sundays 1

Count days excluding Sundays with formula

Count a specific weekday between two dates with Kutools for Excel


Count days excluding Sundays with formula

Here I can introduce a formula for counting days excluding Sundays during a date range.

Select a blank cell, here is C2, and type this formula =B2-A2-INT((B2-A2-WEEKDAY(B2)+1)/7) into it, and then press Enter key, a date displayed.
doc count days excluding sundays 2

Then keep the result selected, click Home tab, and go to the Number group to format the cell to General or Number in the Number Format drop-down list.
doc count days excludes sunday 2

In the formula, A2 is the start date, and B2 is the end date, you can change them to your need.


Count a specific weekday between two dates with Kutools for Excel

If you want to count days excluding a specific weekday, for instance, counting the number of Fridays between two dates, you can use Kutools for Excel’s Count the number of specific weekday function to get it done.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select a blank cell which you will place the counting result, and click Kutools > Formula Helper > Formula Helper. See screenshot:
doc kutools count weekday 1

2. In the Formulas Helper dialog, check Filter checkbox, then in the beiside textbox, type "count", you can see all utilities names contain count have been list in the Choose a formula section, choose Count the number of specific weekday, then in the Arguments input section, click doc select button to select the start date and end date into the Start Date and End Date textboxes, and type 6 into the textbox next to Weekday, if you want to count another weekday, you can refer to the Remark. See screenshot:
doc kutools count weekday 2

3. Click Ok, and the number of Fridays has been counted.
doc kutools count weekday 3

If you want to count the weekdays or weekends only between two dates, you can apply Number of working days between two dates or Number of non-working days between two dates function in Formulas Helper dialog.

doc kutools count weekday 4
doc kutools count weekday 5

Relative Articles:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Moshiur (Industrial · 4 months ago
    No need to use -1 as of my understanding
    • To post as a guest, your comment is unpublished.
      Sunny · 2 months ago
      Thanks for your remind, I have modified the formula.
  • To post as a guest, your comment is unpublished.
    Moshiur (Industrial · 4 months ago
    =D5-C5-INT((D5-C5-WEEKDAY(D5)+1)/7) this formula will give more authentic instead of =D5-C5-INT((D5-C5-WEEKDAY(D5)+1)/7)-1.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 months ago
      Thanks for your remind, I have modified the formula.
  • To post as a guest, your comment is unpublished.
    Lesley · 11 months ago
    How can i get the SLA results and exclude sunday from the date received and date loaded
    • To post as a guest, your comment is unpublished.
      Sunny · 10 months ago
      Hi, Lesley, could you explain what SLA means firstly?
  • To post as a guest, your comment is unpublished.
    Andres Perez · 2 years ago
    Thank you so much!