LibreOffice 25.2 Help
The result is the number of the years (including fractional part) between StartDate and EndDate.
YEARFRAC(StartDate; EndDate [; Basis])
StartDate and EndDate are two date values.
Basis (optional) is chosen from a list of options and indicates how the year is to be calculated.
| आधार | गणना | 
|---|---|
| 0 or missing | US method (NASD), 12 months of 30 days each | 
| 1 | वर्ष में दिनों की सुनिश्चित संख्या, माह में दिनों की सुनिश्चित संख्या | 
| 2 | माह में दिनों की सुनिश्चित संख्या, वर्ष में 360 दिन | 
| 3 | माह में दिनों की सुनिश्चित संख्या, वर्ष में 365 दिन होते हैं | 
| 4 | यूरोपीय विधि, 12 महीने प्रत्येक में 30 दिन | 
What fraction of the year 2008 lies between 2008-01-01 and 2008-07-01?
=YEARFRAC("2008-01-01"; "2008-07-01";0) returns 0.50.