+ Reply to Thread
Results 1 to 4 of 4

finding year associated with last negative value and then calculating value

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    finding year associated with last negative value and then calculating value

    Hi,

    I have a table that looks as follows:

    i j k l m etc
    Years 1 2 3 4 5
    row 69 2600 2400 3000 3000 3000
    row 71 -10000 -7400 -5000 -2000 1000


    Row 69 has cash generated
    Row 71 has cumulative cash position at the end of that year

    the formula should find the year associated with the last negative value in row71 and add that to a fraction of the cumulative cash position in that year + the cash generated in the following year. In this example it would be 4+(-L71/M69) = 4.67

    would this use a hlookup function?

    Thx

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: finding year associated with last negative value and then calculating value

    Please post a sample sheet - Thx

  3. #3
    Registered User
    Join Date
    06-03-2011
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: finding year associated with last negative value and then calculating value

    I have attached a sample file. thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: finding year associated with last negative value and then calculating value

    This will return the year number (as long as there is a negative value in the cumulative cash flow range)...

    =IF(COUNTIF(B3:F3,"<0"),LOOKUP(2,1/(B3:F3<0),B1:F1),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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