0% found this document useful (0 votes)
36 views

How To Calculate Days Between Two Dates in Excel

The document describes several methods to calculate the number of days between two dates in Microsoft Excel: 1. Subtracting dates without a function by entering the dates in cells and subtracting the cells. 2. Using the DATE function by entering the dates in the function syntax DATE(yyyy,mm,dd)-DATE(yyyy,mm,dd). 3. Using the DATEDIF function with the syntax DATEDIF(start_date,end_date,"d") where "d" represents days. 4. Using the DAYS360 function which calculates days on a 360 day calendar year. 5. Using the NETWORKDAYS function which excludes weekends and optional holidays.

Uploaded by

C-jay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

How To Calculate Days Between Two Dates in Excel

The document describes several methods to calculate the number of days between two dates in Microsoft Excel: 1. Subtracting dates without a function by entering the dates in cells and subtracting the cells. 2. Using the DATE function by entering the dates in the function syntax DATE(yyyy,mm,dd)-DATE(yyyy,mm,dd). 3. Using the DATEDIF function with the syntax DATEDIF(start_date,end_date,"d") where "d" represents days. 4. Using the DAYS360 function which calculates days on a 360 day calendar year. 5. Using the NETWORKDAYS function which excludes weekends and optional holidays.

Uploaded by

C-jay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Gaming PC & Mobile Social Media Internet Entertainment Gadgets VPNs

march
HOME  PC & MOBILE  APPS  MICROSOFT EXCEL

How To Calculate Days Between Two Dates In

Comarch
Excel
Matthew August 17, 2022
E-book:
Invoice
As an Excel user, there may be times when you need to add start and end date columns
to your spreadsheets. As such, Excel includes a few functions that tell you how many
Automation
days there are between two separate dates. There are four Excel functions you can add
Comarch
to cells that tell you how many days exist between two speci ed dates. This article
describes how to use Excel to calculate days between two speci ed dates with and
without using those functions. Let’s get started.

Comarch
DOWNLOAD
E-book: Invoice Automation

Download

How to Find the Difference Between Dates in Excel


without a Function
First, you can nd the difference between dates by subtracting them. Excel doesn’t
include a subtract function, but you can still add subtraction formulas to your cells.
Here’s how to do it for dates.

1. Open a “blank” Excel spreadsheet, and enter a “start” and “end” date in cells “B4”
and “C4” as in the snapshot below. Note that the dates should be in U.S. format with
the month rst, the day second, and the year third.

2. Now, select cell “D4,” click inside the “formula bar” at the top, then input “ =C4-B4 ”
and press “Enter.” Cell “D4” will return a value of “34.” Note: “C4” comes rst because
you are subtracting.

How to Find the Difference Between Two Dates in


Excel using the DATE Function
You can nd the difference between two dates using the DATE function. Then, you can
nd the number of days by entering the dates in the function bar instead of
spreadsheet cells. The basic syntax for that function is “=DATE(yyyy, m, d)-DATE(yyyy, m,
d).” To properly calculate the difference, the latest date gets inserted rst.

1. Select a “cell” on the spreadsheet where you want to add the function, then ensure
it is set to “General” format.

2. Click inside the “function bar,” then type “ =DATE(2022, 5, 5)-DATE(2022, 4, 1) ”


and press “Enter.”

Finding the Difference Between Two Dates using the


DATEDIF Function
DATEDIF is a exible function you can use to calculate the total days by entering dates
on the spreadsheet or in the function bar. However, DATEDIF is not listed on Excel’s
Insert Function window because it only exists for Lotus 1-2-3 workbook
compatibility.

You may also like


FEATURED VIDEOS

How to Duplicate a
Spreadsheet in Excel
Lee Stanton September 18, 2022

How to Sum a Row in


Google Sheets
Lee Stanton September 11, 2022

How To Create a
Printable Checklist in
Excel
Lee Stanton August 30, 2022
Also, the use of DATEDIF may produce incorrect results in some situations. For more
details, see this Excel DATEIF help page.

If you decide to use the “DATEIF” function, you’ll need to enter it directly in the function
bar. The syntax includes the following: DATEDIF(start_date, end_date, unit). You can
enter a start date and end date or cell references to speci c dates in the function, and
then add the unit “days” to the end of it. Here’s how to do it.

1. Select the “cell” on the spreadsheet where you will place the function, then set it to
“General” format.

2. To nd the difference in days (including years) entered in cells B6 and C6, type
“ =DATEDIF(B6, C6, "d") ” into the function bar and press “Enter.” The “d” represents
the format, “days.”

3. If you need to ignore years in the calculation, replace “d” with “yd” so you get a
formula listed as “ =DATEDIF(B4, C4, "yd") .” The “y” excludes years, but the “d”
includes “days.”

If you encounter any errors, ensure you insert the earliest cell rst, which is “B6” above.

Finding the Difference Between Two Dates using the


DAYS360 Function
The DAYS360 function is one that nds the total days between dates based on a 360-
day calendar, which is more widely adopted for nancial years. As such, that might be a
better function for account spreadsheets. It won’t make much difference for dates just a
few months apart, but for longer periods DAYS360 will return slightly different values
than the other functions.

1. Enter ‘1/1/2021′ and ‘1/1/2022‘ in cells B6 and C6 on your spreadsheet.

2. Then click a cell to include the DAYS360 function in, press Formulas > Date & Time.

3. From the Date & Time dropdown menu, select DAYS360.

4. Press the Start_date button and type in “B6,” click the End_date button and type in
“C6,” and then press OK.

5. The DAYS360 function will return a value of 360.

Finding the Difference Between Two Dates using the


NETWORKDAYS Function
What if you need to nd the difference between two dates, but exclude weekends from
the equation? DATEDIF, DATE, and DAYS360 aren’t going to be much good for such a
scenario. NETWORKDAYS is a function that nds the number of days between dates
without including any weekends, and it can also factor in extra holidays, such as bank
holidays.

So it’s supposed to be a function for project planning. The function’s basic syntax is:
=NETWORKDAYS(start_date, end_date, [holidays]).

1. Click on a cell you want to add the function to and press Formulas > Date & Time >
NETWORKDAYS.

2. Type “B7″ for the Start_date and “C7” for the End_date and click OK.

3. Using the start and end dates of 4/1/2022 and 5/5/2022, the NETWORKDAYS function
returns a value of 25 days between the dates without the weekends. With the
weekends included, the total days is 34 as with earlier examples.

4. To include extra holiday days in the function, enter those dates in additional
spreadsheet cells. Then press the Holidays cell reference button on the
NETWORKDAYS function window and select the cell, or cells, that include the
holiday dates. That will deduct the holidays from the nal gure.

So, there are numerous ways you can calculate days between start and end dates in
Excel spreadsheets. More recent Excel versions also include a DAYS function that you
can nd the difference between a couple of dates with. Those functions will certainly
come in handy for spreadsheets that include lots of dates.

Frequently Asked Questions


What does #NUM mean?

When you perform the formulas above and receive #NUM rather than a number, it’s
because the start date is greater than the end date. Try opping the dates around and
performing the steps again.

One thought on “How to Calculate Days Between Two Dates


in Excel”

AbJanuary 16, 2019 at 10:07 am REPLY 

How many days are there 1/16/2019 through 2/26/2019


The “Days” function returns 41 but if you count I think it’s 42

Leave a Reply
Your email address will not be published. Required elds are marked *

Comment *

Name * Email *

Website

Save my name, email, and website in this browser for the next time I comment.

POST COMMENT

Disclaimer: Some pages on this site may include an af liate link. This does not effect our editorial in any way.

Todays Highlights

How to Change the How to View Your How to Change Your


Location on a FireStick Google Search History User Name in Zoom
Lee Stanton April 7, 2022 Steve Larner July 27, 2022 Lee Stanton August 23, 2022

How to Use Inspect How to Download How to Change Your


Element Photos from Google Username on Fortnite
Lee Stanton August 16, 2022 Photos Lee Stanton July 18, 2022

Jessie Richardson March 18, 2021

Categories Latest
Gaming Entertainment How to Remove Netflix Recently
Watched Shows
PC & Mobile Gadgets
Cassandra July 27, 2022
Social Media VPNs

Internet How to Use a VPN with an Android


Device

Lee Stanton August 3, 2022

© Box 20 LLC 2022 Contact Us | Privacy Policy | TOS | All Rights Reserved

You might also like