Excel Formula: Get Midpoint of Two Dates
In Excel, most of the time, you need to get difference between two dates, but in some times, you may want to get the midpoint of two dates as above screenshot shown. Here this article introduces two formulas to get the midpoint of two dates in Excel in two different situations.
If you want to follow along with this tutorial, please download the example spreadsheet.
Get midpoint of two dates including holidays and weekends
Generic formula
SUM(start_date,end_date)/2 |
Syntaxt and arguments
Start_date, End_date: the two dates that used to get the midpoint. |
Return value
The formula returns to a number value. But the result may be shown in number format, or may be shown in a date format, which depends on the formats of Start_date and End_date.
How this formula works
Take a table as an example, column A and column B place the start dates and end dates separately, then get the midpoints of each date range in column C, please use below formula:
=SUM(A3,B3)/2 |
Press Enter key and then drag the auto fill handle down to fill this formula to other cells.
Explanation
SUM function: this function used to add numbers together.
As we known, the dates are recorded as serial number in Excel, and to get a midpoint of two numbers, you need to add two numbers together and then divided by 2. SUM function can do it.
Get midpoint of two dates excluding weekends and holidays
Generic formula
WORKDAY(start_date,(end_date-start_date)/2,holidays) |
Syntaxt and arguments
Start_date, End_date: the two dates that used to get the midpoint. |
Holidays: the days that you want to exclude when counting. |
Return value
The formula returns to a number. You need to format it as date format later.
How this formula works
Take a table as an example, column A and column B place the start dates and end dates separately, then get the midpoints of each date range in column C, please use below formula:
=WORKDAY(A3,(B3-A3)/2,F3:F5) |
Press Enter key and then drag the auto fill handle down to fill this formula to other cells.
Keep result cells selected, click Home tab and go to choose Short Date or Long Date from the drop-down menu of the Number Format.
Explanation
WORKDAY function: this function is adding workdays to the given start date and returns a workday.
Relative Formulas
- Get date from given date month year
The DATE function can be used to get a standard date based on the given year, month and day in Excel. - Find earliest or latest date in each group
This article provides the formulas to find the earlist and lates dates in the same group in Excel. - Get day name from given date
This tutorial talks about how to use formula to get the day name such as Monday,Tuesday based on the given date. - Create weekly date range
In this tutorial, it provides a formula to quickly get the weekly date range in Excel.
Relative Functions
- Excel DATE Function
Create date with year, month and day - Excel YEAR Function
Returns the year of date in 4-digit serial number format - Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date - Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date - Excel NOW Function
Get the current time and date
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.