YEARFRAC calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date ). For instance, you can use YEARFRAC to identify the proportion of a whole year's benefits, or obligations to assign to a specific term.
| Excel version | Available |
|---|---|
| Excel 2007 | ✓ |
| Excel 2013 | ✓ |
| Excel 2019 | ✓ |
| Excel 2021 | ✓ |
| Microsoft 365 | ✓ |