How to Calculate Discounted Payback Period in Excel

In this article, we will demonstrate 3 methods to calculate Discounted Payback Period in Excel.


What Is Discounted Payback Period?

Discounted payback period refers to the time taken (in years) by a project to recover the initial investment based on the present value of the future cash flows generated by the project. It is an essential metric when evaluating the profitability and feasibility of any project.


How to Calculate Discounted Payback Period in Excel: 3 Ways

Consider the Yearly Cash Flow of Project Alpha dataset in cells B4:C15. In this dataset, we have the Years from 0 to 10 and their Cash Flows respectively. An initial investment of $50,000 is made at the start of the project and a positive cash flow of $9,000 is recorded at the end of each year. In addition, we’ve chosen a Discount Rate of 10% for this project. Let’s calculate the Discounted Payback Period.

Dataset 1

We used Microsoft Excel 365 version, but you may use any other version at your disposal.


Method 1 – Using PV Function

The most obvious way to calculate the discounted payback period in Excel is using the PV function to calculate the present value, then obtaining the payback period of the project.

Steps:

  • In cell D5, enter the following formula:

=C5

Cell C5 refers to the Cash Flow at Year 0.

Using PV Function

  • In cell D6, enter the following formula:

=-PV($D$17,B6,0,C6,0)

In this formula, cell D17 is the Discount Rate while cells B6 and C6 are Year 1 and Cash Flow of $9,000 respectively. The Present Value of Cash Flow is negative, so we use a negative sign to make the value positive.

Note: Always use Absolute Cell Reference by pressing the F4 key on your keyboard.

Formula Breakdown:

  • -PV($D$17,B6,0,C6,0) → returns the present value of an investment, that is the total amount a series of future payments is worth now. $D$17 is the rate argument that refers to the Discount Rate. B6 represents the nper argument, which is the annual number of payments. 0 is the pmt argument which indicates the payment amount made each period. C6 points to the optional fv argument, which is the future value of the cash flow. 0 represents the optional type argument, which refers to the payment made at the end of the year.
  • Output → $8,182

Using PV Function

  • In cell E5, enter the formula below:

=D5

Cell D5 represents the Present Value of Cash Flow.

How to Calculate Discounted Payback Period in Excel Using PV Function

  • In cell E6, enter the formula below:

=E5+D6

Cell E5 is the Cumulative Cash Flow while cell D6 is the Present Value of Cash Flow.

How to Calculate Discounted Payback Period in Excel Using PV Function

  • Calculate the payback period by using the formula below:

=B13+-E13/D14

Cell B13 is Year 8 while cells E13 and D14 indicate values of $1,986 and $3,817 respectively.

How to Calculate Discounted Payback Period in Excel Using PV Function

Read More: How to Calculate Payback Period in Excel


Method 2 – Using IF Function

Steps:

  • In cell D6, enter the formula below:

=-PV($D$17,B6,0,C6,0)

Cell D17 is the Discount Rate while cells B6 and C6 are Year 1 and Cash Flow of $9,000 respectively.

How to Calculate Discounted Payback Period in Excel Using IF Function

  • In cell E6, enter the formula below:

=E5+D6

Cell E5 is the Cumulative Cash Flow while cell D6 is the Present Value of Cash Flow.

How to Calculate Discounted Payback Period in Excel Using IF Function

  • Calculate the Payback Period (Years) by using the formula below:

=IF(AND(E13<0,E14>0),B13+(-E13/D14),"")

Formula Breakdown:

  • IF(AND(E13<0,E14>0),B13+(-E13/D14),””) → becomes
    • IF(TRUE,B13+(-E13/D14),””) →  the IF function checks whether a condition is met and returns one value if TRUE and another value if FALSE. Here, the IF function returns the value of B13+(-E13/D14) which is the value_if_true argument. Otherwise, it would return “” (BLANK) which is the value_if_false argument.
    • Output → 8.52

Using IF Function


Method 3 – Using VLOOKUP and COUNTIF Functions

We can also employ the COUNTIF and VLOOKUP functions to calculate the discounted payback period.

Steps:

  • In cell D6, enter the formula below:

=-PV($H$4,B6,0,C6,0)

How to Calculate Discounted Payback Period in Excel Using VLOOKUP and COUNTIF Functions

  • In cell E6, enter the formula below:

=E5+D6

How to Calculate Discounted Payback Period in Excel Using VLOOKUP and COUNTIF Functions

  • In cell I5, use the COUNTIF function as follows:

=COUNTIF(E6:E15,"<0")

Formula Breakdown:

  • COUNTIF(E6:E15,”<0″) →  counts the number of cells within a range that meet the given condition. Here, E6:E15 is the range argument that refers to the Cumulative Cash Flow. “<0” represents the criteria argument that returns the count of the years with negative cash flow values.
  • Output → 8

Using COUNTIF Function

  • In cell I6 use the VLOOKUP function as follows to determine the Last Negative Cash Flow:

=VLOOKUP(I5,B5:E15,4)

Cell I5 is the Negative Cash Flow (Years) value of 8.

Formula Breakdown:

  • VLOOKUP(I5,B5:E15,4) → looks for a value in the left-most column of a table and returns a value in the same row from a specified column. Here, I5 (the lookup_value argument) is mapped from the B5:E15 (table_array argument) array. 4 (col_index_num argument) represents the column number of the lookup value.
  • Output → ($1,986)

Using VLOOKUP Function

  • Similarly, determine the Present Value of Cash Flow for the next year as follows:

=VLOOKUP(I5+1,B6:E15,3)

Formula Breakdown:

  • VLOOKUP(I5+1,B6:E15,3) → I5+1 (the lookup_value argument) is mapped from the B6:E15 (table_array argument) array. 3 (col_index_num argument) represents the column number of the lookup value.
  • Output → $3,817

Using VLOOKUP Function

  • Calculate the Fraction Period (Years) using the ABS function as follows:

=ABS(I6/I7)

Cells I6 and I7 represent the Last Negative Cash Flow and the positive Cash Flow in the Next Year.

How to Calculate Discounted Payback Period in Excel Using VLOOKUP and COUNTIF Functions

  • Calculate the Payback Period (Years) by adding the values of cells I5 and I8.

=I5+I8

Cell I5 is the Negative Cash Flow (Years) while cell I8 is the Fraction Period (Years).

How to Calculate Discounted Payback Period in Excel Using VLOOKUP and COUNTIF Functions

The result should look like the screenshot below.

How to Calculate Discounted Payback Period in Excel Using VLOOKUP and COUNTIF Functions

Read More: Calculating Payback Period in Excel with Uneven Cash Flows


What Is Uneven Cash Flow?

Uneven Cash Flow refers to a series of unequal payments made over a certain period, for instance a series of $5000, $8500, and $10000 made over 3 years. So the primary difference between even and uneven cash flows is that in even cash flows the payment values remain equal over a given period, whereas the payment values can be different in uneven cash flows.


Calculating Discounted Payback Period for Uneven Cash Flow

So far, we’ve only considered cases of even cash flows. Now let’s calculate the discounted payback period for uneven cash flow.

Consider the Yearly Cash Flow of Project Beta dataset shown in the B4:C15 cells below. We have the Years from 0 to 10 and their uneven Cash Flows respectively. As in the previous example, we’ve also set a Discount Rate of 10% for this project.

Dataset 2

Steps:

  • In cell D6, enter the formula below:

=-PV($H$4,B6,0,C6,0)

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • In cell E6, enter the formula below:

=E5+D6

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • In cell I5, compute the Negative Cash Flow (Years) as follows:

=COUNTIF(E6:E15,"<0")

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • In cell I6, calculate the Last Negative Cash Flow value with the formula below:

=VLOOKUP(I5,B5:E15,4)

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • Determine the Present Value of Cash Flow for the next year with this formula:

=VLOOKUP(I5+1,B6:E15,3)

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • Calculate the Fraction Period (Years) using the ABS function as follows:

=ABS(I6/I7)

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

  • Add the values of cells I5 and I8 to obtain the Payback Period (Years):

=I5+I8

How to Calculate Discounted Payback Period in Excel for Uneven Cash Flow.

For sake of brevity, we have skipped some of the other relevant examples of Uneven Cash Flow.

Read More: How to Apply Discounted Cash Flow Formula in Excel


Download Practice Workbook


Related Articles


<< Go Back to Excel Cash Flow Formula | Excel Formulas for Finance | Excel for Finance | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Eshrak Kader
Eshrak Kader

Eshrak Kader is a dedicated professional with a BSc. Degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. He boasts a rich background in Microsoft Office Suite, and over the past year, he has authored over 120 insightful articles for the ExcelDemy. Currently, Eshrak leads a team of 5 in the ExcelDemy Video project and enjoys problem-solving and making videos on Excel. Eshrak’s passion for continuous learning underscores his commitment to excellence in... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo