Skip to playerSkip to main content
  • 7 months ago
Discover how to calculate age using your YEARFRAC function in Excel.

YEARFRAC is an Excel function that calculates the fraction of a year between two dates. By using this function, you can easily calculate a person's age in years, months, and even days. To calculate age, you simply need to subtract the person's birth date from the current date and divide the result by 365.25 (to account for leap years). This will give you the person's age in years with decimal places. You can then use the INT function to round down to the nearest whole number and obtain the person's age in years. Alternatively, you can use the DATEDIF function to calculate the number of complete years between two dates, but this function does not handle leap years as accurately as YEARFRAC.

Here are the steps outlined on the video.
1) =YEARFRAC(B3,TODAY())
2) Ctrl + 1
3) Number tab
4) Number
5) Decimal places set to 0


Calculate age using YEARFRAC in Excel,
yearfrac months,yearfrac today,yearfrac vs datedif,yearfrac,yearfrac not working,yearfrac google sheets,yearfrac basis,datedif excel,

Transcript
00:00This is how you calculate the age of a person based on date of birth as of today.
00:03You use a function called YearFrag and the first argument will be the date of
00:08birth itself, comma, and the second argument will be today and hit enter.
00:14And of course YearFrag is the year showing in fraction which is decimal
00:19place. All you have to do select the cell, press ctrl 1 to open up the format
00:23cell. In here make sure your number tabs go to numbers and in here change this
00:29decimal place to 0 and click OK. And now apply to the rest of the rows and
00:33that's how you calculate the age of a person.
Be the first to comment
Add your comment

Recommended