Fortune Telling Collection - Fortune-telling birth date - How to use the function in excel to calculate the length of service
How to use the function in excel to calculate the length of service
1, taking Excel 20 16 as an example, open the Excel worksheet;
2. The length of service is generally displayed throughout the year, because different dates will return different lengths of service. The DATEDIF function can calculate the number of years between two days according to the start date of employment and the current date or the end date of a specified date.
3. Enter the following formula in cell C2, and then fill the formula down.
=DATEDIF(B2, today (), "y")
Formula: take cell B2 as the start date and system date as the end time, and return the number of years between them.
4. Precautions:
The DATEDIF function can easily return the year, month and day of the year, or the year and day of the year, or the year and month of the year, but you need to put the start date in the first parameter position and set the third parameter to y, m, d, yd and ym respectively.
- Related articles
- What language does Nantong dialect belong to?
- What are the village committees under Xizhai Village, Qixian County, Kaifeng City, Henan Province?
- 1957 life fortune telling _ 1957 life fate
- What about the girl named Guo?
- Judging your own birth horoscope fortune telling _ judging your own birth horoscope fortune telling?
- Xin' an night market fortune telling
- The Handbook of Female Fortune Tellers is available from ancient times to modern times.
- The second month of the lunar calendar is in Tomb-Sweeping Day, but why is it that every fortune-telling is in the third month of the lunar calendar in Tomb-Sweeping Day?
- What superstitious people and things do you know?
- Are tigers and sheep suitable for husband and wife? Can people who belong to tiger sheep be husband and wife?