Home  >  Article  >  Topics  >  How to calculate length of service using excel year function

How to calculate length of service using excel year function

藏色散人
藏色散人Original
2020-02-08 10:03:4627954browse

How to calculate length of service using excel year function

#How does the excel year function calculate length of service?

1. Taking the excel2010 version as an example, as shown in the figure below, the length of service must be calculated based on the date of entering the company and the specified year;

Recommended tutorial: excel tutorial

How to calculate length of service using excel year function

2. First, enter the formula =YEAR($E$2)-YEAR(B2) in cell C2. Since the specified years are the same, use absolute references. symbol to fix this value, so that the specified year will not change when the formula is filled in. Press the enter key to get the calculation result;

How to calculate length of service using excel year function

3. Then put the mouse In the lower right corner of cell C2, drop down the formula to fill in the formula, and you can calculate everyone's length of service.

How to calculate length of service using excel year function

The above is the detailed content of How to calculate length of service using excel year function. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn