How to Find the Number of Days Between Two Dates in Microsoft Excel

Microsoft Excel logo on a green background

Microsoft Excel makes it easy to count the number of full days between two specific dates. You can use either an arithmetic operator or an Excel function to do that. We’ll show you both ways.

RELATED: How to Count the Days Between Two Dates in Google Sheets

Find the Number of Days Between Dates With Subtraction

To know how many days there are between two days with the – (minus) sign method, first, open your spreadsheet with Microsoft Excel.

We will use the following spreadsheet which has both a start date and an end date:

An Excel spreadsheet with a start and an end date.

It should happen automatically, but make sure the text for your dates is formatted as date values.

In your spreadsheet, click the cell in which you want to display the answer. This cell will show the number of days between your specified dates.

Click the cell in which to display the result.

In your selected cell, type the following formula and press Enter. In this formula, replace C2 with the cell where you have your end date, and replace B2 with the cell where you have your start date.

=C2-B2

Enter the formula to find the number of days between two dates.

And instantly, you will see the answer in the cell where you typed the formula.

The number of days between the specified dates.

You’re all set. Did you know that in addition to subtracting dates, you can also add dates together in Excel?

Calculate the Days Between Two Dates With the DAYS Function

Excel’s DAYS function is dedicated to finding the number of days between two dates. It effectively performs the same calculation that the subtraction method does, so it’s up to you which method you use.

To use this function, open a spreadsheet with Microsoft Excel. In the spreadsheet, click the cell in which you want to display the answer.

Click the cell in which to display the result.

In your selected cell, type the following function and press Enter. In this function, replace C2 with the cell where you have your end date, and replace B2 with the cell where your start date is.

=DAYS(C2,B2)

Enter the DAYS function.

If you’d like to use the dates directly in the function, you can do so. In this case, in the above function, replace C2 with the end date and B2 with the start date. Make sure to add double quotes around each date.

Like this:

=DAYS("27/7/2021","25/3/2021")

Enter the DAYS function with direct values.

And immediately, Excel will tell you the number of full days between your specified dates.

Days between the two specified dates.

Now that you know this, you might also want to learn how to calculate someone’s age in Excel. It’s equally easy to do that.

RELATED: How to Calculate Age in Microsoft Excel

Note: This article have been indexed to our site. We do not claim legitimacy, ownership or copyright of any of the content above. To see the article at original source Click Here

Related Posts
Machine Learning Gets a Quantum Speedup thumbnail

Machine Learning Gets a Quantum Speedup

In Valeria Saggio’s Vienna lab, she directed a laser of single photons into a special quantum circuit to show how the vagaries of quantum physics can improve machine learning.Valeria SaggioFor Valeria Saggio to boot up the computer in her former Vienna lab, she needed a special crystal, only as big as her fingernail. Saggio would…
Read More
Twitter alternative Bluesky is now open to the public thumbnail

Twitter alternative Bluesky is now open to the public

You can finally stop begging the ‘cool kids’ for invites. By Andrew Paul | Published Feb 6, 2024 2:00 PM EST The social media alternative harkens back to a pre-Musk Twitter. Jaap Arriens/NurPhoto via Getty Images SHARE Bluesky is finally open to anyone still desperate to fill the social media void left by Twitter’s collapse
Read More
Why OpenAI’s Codex Won’t Replace Coders thumbnail

Why OpenAI’s Codex Won’t Replace Coders

While machine learning has been around a long time, deep learning has taken on a life of its own lately. The reason for that has mostly to do with the increasing amounts of computing power that have become widely available—along with the burgeoning quantities of data that can be easily harvested and used to train…
Read More
Index Of News
Total
0
Share