+ Reply to Thread
Results 1 to 6 of 6

Calculate Payback Day

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    Los Angeles
    MS-Off Ver
    Excel 2016
    Posts
    39

    Calculate Payback Day

    I have a spreadsheet with two columns Day and Cashflow. Cashflow represents the initial cash outlay and then a running revenue total. How do I calculate the payback day (Day 4 in the example) via formula?

    Day 1 -300,000
    Day 2 50,000
    Day 3 200,000
    Day 4 325,000
    Day 5 400,000

  2. #2
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Calculate Payback Day

    Assuming your day numbers are in column A and your revenue/outlay figures are in column B, with your outlay in B1, use this formula:

    =INDEX(A:A,COUNT(B:B)-COUNTIF($B:$B,">"&ABS(B1))+1)

    I've attached an example showing how it works.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Calculate Payback Day

    It might be worth noting that if you have days with negative revenue, this formula might not work properly. Let me know if this is an issue and I can look at a revised formula.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculate Payback Day

    i assume the starting day is always negative
    then the payments are always +ve
    then with day 1,2,3,4 in a1 downwards

    =MATCH(TRUE,INDEX(B2:B100>=ABS(B1),0),0)+1
    returns 4
    if you want to return "date 4" or something else in column a say its a real date

    =index(a2:a100,MATCH(TRUE,INDEX(B2:B100>=ABS(B1),0),0))
    Last edited by martindwilson; 02-23-2014 at 10:50 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,648

    Re: Calculate Payback Day

    May be this:
    =INDEX(A:A,MATCH(TRUE,SUBTOTAL(9,OFFSET($B$1,,,ROW(INDIRECT("1:"&COUNT(B:B))),))>0,0))
    Quang PT

  6. #6
    Registered User
    Join Date
    07-22-2009
    Location
    Los Angeles
    MS-Off Ver
    Excel 2016
    Posts
    39

    Re: Calculate Payback Day

    Quote Originally Posted by martindwilson View Post
    i assume the starting day is always negative
    then the payments are always +ve
    then with day 1,2,3,4 in a1 downwards

    =MATCH(TRUE,INDEX(B2:B100>=ABS(B1),0),0)+1
    returns 4
    if you want to return "date 4" or something else in column a say its a real date

    =index(a2:a100,MATCH(TRUE,INDEX(B2:B100>=ABS(B1),0),0))
    Thank you all for the help - I reviewed all the solutions but the above worked best for me.

    James

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 04-24-2013, 11:38 PM
  2. Payback Calculation
    By andrew8008 in forum Excel General
    Replies: 3
    Last Post: 06-18-2007, 01:20 AM
  3. payback period formula
    By deacs in forum Excel General
    Replies: 0
    Last Post: 05-24-2007, 01:02 PM
  4. Discounted Payback
    By Calgarychris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2006, 04:20 PM
  5. Discounted Payback
    By Calgarychris in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2006, 01:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1