23.08.2023 Views

CFI-Excel-eBook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Corporate Finance Institute Excel

YEARFRAC

Get the fraction of a year between two dates

start_date

end_date basis

What is the YEARFRAC Function?

The YEARFRAC Function is categorized under DATE/TIME functions. YEARFRAC

will return the number of days between two dates as a year fraction in Excel.

Formula

=YEARFRAC(start_date, end_date, [basis])

The YEARFRAC function uses the following arguments:

1. Start_date (required argument) – It is the start of the period. The

function includes the start date in calculations.

2. End_date (required argument) – It is the end of the period. The

function includes the end date in calculations.

3. [basis] (optional argument) – It specifies the type of day count basis to

be used.

Various possible values of [basis] and their meanings are:

How to use the YEARFRAC Function in Excel?

As a worksheet function, YEARFRAC can be entered as part of a formula in a

cell of a worksheet. To understand the uses of the function, let’s consider a few

examples:

corporatefinanceinstitute.com

56

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!