How to use functions to identify and calculate date information in Excel
The following article details how to use functions in Excel 2013 and 2016 to identify and calculate date information.
To use the functions related to date information, let's explore the following:
1. The relationship between Excel and the date is nothing special.
1.1 How is the date related to Excel?
- Different from numeric or text data types . dates are stored by Excel in a specific way and different from above data types. The dates in Excel are stored as text to serial numbers that Excel recognizes as dates. For example, on 01/01/08 -> the serial number stored in Excel is 39448.
- Excel's calendar dates back to 1900 - the day Excel was born. The way to convert dates to Excel serial numbers is calculated as follows: Excel treats January 1, 1900 as 1, and adds 1 to the serial number every 1 day thereafter. Specifically:
1.2 The date formats Excel supports.
- To know the date formats that Excel supports you do the following:
+ Right-click in any cell in Excel -> Format Cells:
+ The dialog box appears in the Number tab -> Date -> formats that Excel supports are in the Type:
+ Excel also supports users to define their own date style based on Excel's suggestions. Click Custom -> the formats that Excel supports are in the Type:
In addition to the Excel format will not be interpreted as a date, it will be treated as a text string or an error message.
2. Use formulas in calculating dates.
Some functions that are commonly used in calculating dates:
2.1 Calculate the number of days between two specific times.
- To calculate the number of days between two specific dates, the end date minus the start date, provided that the date is in the specified format in Excel.
For example:
- Where the end date is less than the start date -> the return value is less than 0.
2.2 Calculate the number of working days between 2 specific times (except weekends and holidays).
- To calculate the number of working days using the NETWORKDAYS () function . For example, calculate the number of working days when you know your start and end dates.
- In case the end date is less than the start date -> the function returns the number of days less than 0:
2.3 Search for 1 day after 1 working day.
- To find a date after 1 working day -> use the Workday function . For example, finding the date of completion of a work, the number of days to complete the work is 120 days and the start date is 10/10/2016, during which time is entitled to 2 holidays: December 10, 2016 and 10/24. / 2017.
2.4 Find a time after 1 month.
To find 1 day after 1 month -> use the Date () function . For example, find the date after 10/10/2016 3 months:
2.5 Find a time after a number of years, a number of months, and a number of specific dates.
- Find the date after 1 number of years, 1 number of months and 1 number of specific days -> using the Date () function . For example, find the date after 10/10/2016 3 years, 9 months and 27 days:
The above are specific instructions and examples for defining information and calculating dates in Excel 2013.
Good luck!
You should read it
- Complete financial functions in Excel you should know
- Summary of trigonometric functions in Excel
- Instructions on how to insert the current date in Excel
- Calculation of age from date of birth in Excel
- The easiest way to calculate the percentage (%)
- Summary of information functions in Excel
- How to calculate the number of days in Excel - Functions, formulas for calculating the number of days in Excel
- Instructions on how to fix reverse dates in Excel
May be interested
- STDEVA function - The function of estimating standard deviations based on a sample including both text and logical values in Excelstdeva function: the function of estimating standard deviations based on a sample including both text and logical values. standard deviation is a measure of the dispersion of a value against the mean. syntax: stdeva (value1, [value2], ...)
- STDEVPA function - The function of estimating standard deviations based on an entire population including both text and logical values in Excelstdevpa function: the function of estimating standard deviation based on the whole population including both text and logical values. standard deviation is a measure of the dispersion of a value against the mean. syntax: stdevpa (value1, [value2], ...)
- STEYX function - The function returns the standard error of the predicted value of y for each value of x in regression in Excelsteyx function: the function returns the standard error of the predicted value of y for each value of x in the regression. syntax: steyx (known_ys, known_xs)
- T.DIST - The function returns the Student t-distribution on the left in Excelt.dist: the function returns the student's t-distribution on the left. functions used in testing the hypothesis of small numbers of data sets. support functions from excel 2010 onwards. syntax: t.dist (x, deg_freedom, cumulative)
- T.DIST.2T - The function returns the two-tailed Student distribution in Excelt.dist.2t: the function returns the two-tailed student's t-distribution. functions used in testing the hypothesis of small numbers of data sets. support functions from excel 2010 onwards. syntax: t.dist.2t (x, deg_freedom)
- T.DIST.RT - The function returns the Student's t-distribution on the right in Excelt.dist.rt: the function returns the student's t-distribution on the right. functions used in testing the hypothesis of small numbers of data sets. support functions from excel 2010 onwards. syntax: t.dist.rt (x, deg_freedom)