Gabriel Ideas Written by Gabriel

Master Google Sheets Date Formula: Calculate Calendar Days

By Gabriel Aug 06, 2026
Google Sheets Weekly Schedule Template (Free Download)
Google Sheets Weekly Schedule Template (Free Download)

Calculating the number of days in a given period is a common task in Google Sheets. While you can't use a simple formula like you'd find in programming to get the exact number of days, you can calculate the number of calendar days between two dates. Here's a step-by-step guide to help you achieve this, along with some tips and tricks.

Google Sheets Weekly Schedule Template (Free Download)
Google Sheets Weekly Schedule Template (Free Download)

Before we dive into the formulas, let's ensure your dates are recognized as actual dates in Google Sheets. To do this, enter your dates as "mm-dd-yyyy" or "yyyy-mm-dd", and Google Sheets will automatically recognize them as date format. If not, you can change the format by clicking on the cell, then clicking on the format icon in the toolbar and choosing "Date".

How to make a monthly calendar printable using Google Sheets (online tool similar to Excel)
How to make a monthly calendar printable using Google Sheets (online tool similar to Excel)

Basic Formula for Calendar Days

The DATEDIF function in Google Sheets provides the difference between two dates in days, but it also includes the end date in the calculation. To get only the calendar days, you need to use the NETWORKDAYS function. Let's break down the syntax.

Google Sheets Calendar Templates | Firstprintable
Google Sheets Calendar Templates | Firstprintable

First, let's assume we have two dates in cells A1 (Start Date) and B1 (End Date). The formula to calculate the number of calendar days between these two dates is:

```html =NETWORKDAYS(A1, B1) ```

Ignoring Weekends

How to Create a Dynamic Monthly Calendar in Google Sheets - Template Provided
How to Create a Dynamic Monthly Calendar in Google Sheets - Template Provided

The NETWORKDAYS function automatically ignores weekends (Saturday and Sunday). Here's an example:

In cell C1, enter the following formula: ```html =NETWORKDAYS(A1,B1) ```

This will calculate and display the number of calendar days from A1 to B1, excluding weekends.

How to Create a Calendar in Google Sheets From Scratch - Make Tech Easier
How to Create a Calendar in Google Sheets From Scratch - Make Tech Easier

Considering Holidays

What if you want to ignore holidays too? Google Sheets doesn't have a built-in list of holidays, but you can manually create one. Here's how:

Let's say you have a list of holidays in cells E1:E5. To account for these holidays, update the formula in C1 as follows: ```html =NETWORKDAYS(A1, B1, E1:E5) ```

Dynamic Calendar Google Sheets Tutorial + FREE template
Dynamic Calendar Google Sheets Tutorial + FREE template

This updated formula will calculate the number of calendar days from A1 to B1, excluding weekends and the specified holidays.

Calculating Business Days

How to Insert Calendar in Google Sheets
How to Insert Calendar in Google Sheets
How to Create a Calendar in Google Sheets | Automatic Dynamic | Step-by-Step Tutorial for Beginners
How to Create a Calendar in Google Sheets | Automatic Dynamic | Step-by-Step Tutorial for Beginners
How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet
How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet
The Best Google Sheets Calendar Templates - Make Tech Easier
The Best Google Sheets Calendar Templates - Make Tech Easier
How to Create a Calendar in Google Sheets
How to Create a Calendar in Google Sheets
Add a Dynamic Mini Calendar in Google Sheets – Easy & Beginner-Friendly
Add a Dynamic Mini Calendar in Google Sheets – Easy & Beginner-Friendly

Sometimes, you might need to calculate the number of business days (Monday to Friday) between two dates. Use the NETWORKDAYS.INTL function for this:

The syntax is similar to NETWORKDAYS, but you also need to specify the weekend days (0=Monday, 1=Tuesday, ..., 5=Saturday, 6=Sunday). For business days, the formula would be:

```html =NETWORKDAYS.INTL(A1,B1,1,1,0,0) ```

Considering Holidays in Business Days

To consider holidays in your business day calculation, use the same approach as before. Assume you have a list of holidays in cells E1:E5:

In your formula, include the holiday range as a third argument: ```html =NETWORKDAYS.INTL(A1,B1,1,1,0,0,E1:E5) ```

This formula will calculate the number of business days from A1 to B1, considering weekends and specified holidays.

Thanks for reading! If you found this article helpful, share it with your network or leave a comment below. Remember, every day counts in Google Sheets!