YEARFRAC in Excel


YEARFRAC in Excel
This function calculates the difference between two dates and expresses the result as a decimal fraction.      



Microsoft Excel Function
=YEARFRAC(StartDate,EndData,Basis)        
         
Basis : Defines the calendar system to be used in the function.                                     
0 : or omitted USA style 30 days per month divided by 360.                                 
1 : 29 or 30 or 31 days per month divided by 365.                                     
2 : 29 or 30 or 31 days per month divided by 360.                                     
3 : 29 or 30 0r 31 days per month divided by 365.                                     
4 : European 29 or 30 or 31 days divided by 360.                             

                  
Formatting
The result will be shown as a decimal fraction, but can be formatted as a percent.                                                          

Content Data

Start Date
End Date
Fraction

1-Jan-17
1-Jan-17
0
 =YEARFRAC(C4,D4)
2-Jan-17
12-Dec-17
1
 =YEARFRAC(C5,D5)
3-Jan-17
3-Apr-17
25%
 =YEARFRAC(C6,D6)

YEARFRAC in Excel Reviewed by Rupesh on 02:12 Rating: 5

No comments:

All Rights Reserved by Technology from Developers Eye © 2014 - 2015
Powered By Blogger, Designed by Aadics
Disclaimers:: The information provided within this blogsite is for general informational purposes only. While we try to keep the information up-to-date and correct, there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this blogsite for any purpose.The author does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause.

Contact Form

Name

Email *

Message *

Powered by Blogger.