Calculating work experience on Excel is one of the most common calculations in Excel today. For accountants, this is a fundamental function to master from the beginning. It not only calculates work experience on Excel but also involves many time-related calculations that this function handles. If you are studying common calculations in Excel, prioritize this function.
When it comes to date and time calculations, we often think of the Date function. However, in this article, we will explore a function that combines the Date function—DateDIF. Learn how to use the DateDIF function to count days, months, and years in Excel. Follow along below.
How to Calculate Work Experience on Excel Spreadsheets
Overview of the DateDIF Function
- DateDIF is a function that allows users to count the number of days, months, and years from a specified starting point to another specified point or the current moment. It returns the result in a date-month count format. DateDIF is widely used for date and time calculations due to its high precision, multiple return types, and ease of use.
Formula for the DateDIF Function
=DATEDIF(Start Date, End Date, return option)
- In this, DateDIF is the function name for counting dates and months.
- Start Date: The starting date is predetermined and can be the date when you start school, work, or get married.
- End Date: It's the date when a task, event, or simply the current moment ends.
* 'd': Count the number of days.
* 'm': Count the number of months, considering only the integer part.
* 'y': Count the number of whole years in between.
* 'yd': Return the odd days of the year when subtracting two time spans.
* 'ym': Return the odd months of the year when subtracting two time spans.
* 'md': Return the odd days of the month.
Application to Calculate Work Experience on Excel
Let's consider a list of 10 employees in a company with contracts at different times. Note that these contracts are based on their initial entry into the company, and the requirement is to calculate the number of working days. If the number of days > 30, the result should be in months, and if the number of months > 12, the result should be in years.
Step 1: Before calculating work experience on Excel, check if the date column format follows the correct standard. Ensure it's in the proper Vietnamese date format.
- Highlight the cells to calculate and right-click, then choose >Format Cells.
Step 2: Right in the first Number section, choose Category (List) as Date, Type (Display type) can be any, but Locate (location) must be selected as Vietnamese. Then confirm OK to have the system adjust the date and time to the Vietnamese style on Excel for you.
Step 3: In the work experience table, we start entering the formula in the first empty cell, which is D6, as follows:
=DATEDIF(C6,TODAY(),'y')&' years '&DATEDIF(C6,TODAY(),'ym')&' months '&DATEDIF(C6,TODAY(),'md')&' days'
Explanation of the formulas:
- =DATEDIF: Function used for counting days, months, years.
- C6: The first position in the contract table corresponding to the start date.
- TODAY: The result of the last date returns today's value.
- 'y': Count the number of whole years in between, considering only the integer part.
Additionally, we observe the use of the & character to concatenate multiple functions. Here, Mytour has used three similar functions with different return results: years, months, and then days.
Step 4: After pressing enter, you will get the result as 10 years 5 months 21 days, corresponding to the contract signing date and the calculation date. The next step is familiar; just drag down to apply the formula to all objects below.
And the final result after calculating work experience on Excel is a list that meets the given conditions. We have a list with the most accurate calculation of work experience on Excel.
So, we've just learned more about calculating work experience on Excel using the DATEDIF function, a useful function in date and time calculations. Practice more with this function so you can understand and integrate it with various other functions in Excel.
Apart from the DateDIF function, we also have the Date and Datevalue functions in Excel, worth exploring. If you've delved into DateDIF, why not explore more about Date and Datevalue functions in Excel.
There are many ways to calculate percentages quickly and accurately. However, the approach may vary depending on the specific case, such as calculating completion percentages, item percentages, or percentages relative to the total.