+ Reply to Thread
Results 1 to 8 of 8

First data in a range that equals less than zero, return another cell

  1. #1
    Registered User
    Join Date
    04-21-2013
    Location
    Oestrich Winkel, Germany
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    First data in a range that equals less than zero, return another cell

    Hi all,
    I am calculating a loan repayment. I have a set of data that eventually equals zero. I want a cell that will tell me at what time this happens.
    So, I have a set of values in Column L, it eventually reached 0, I have a time vale in column G, it increases by 1 each cell. I want a formula that says when the first value in column L is less that or equal to 0, display cell G that is in the same row. I can't figure out how to do this though. Can anyone help please?

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: First data in a range that equals less than zero, return another cell

    If Column M is not in use type into M2 (If in use insert a new column):

    Please Login or Register  to view this content.
    Drag down as far as required, this can be hidden afterwards.

    Then in the cell that you want to show the time enter:

    Please Login or Register  to view this content.
    Say thanks, click *

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: First data in a range that equals less than zero, return another cell

    Maybe this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 04-21-2013 at 06:04 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    04-21-2013
    Location
    Oestrich Winkel, Germany
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Re: First data in a range that equals less than zero, return another cell

    Quote Originally Posted by Harribone View Post
    If Column M is not in use type into M2 (If in use insert a new column):

    Please Login or Register  to view this content.
    Drag down as far as required, this can be hidden afterwards.

    Then in the cell that you want to show the time enter:

    Please Login or Register  to view this content.
    I started working with this, and it was working, then I played with the second code and managed to get this to give me the time for first zero cell

    =INDEX(G:G,MATCH(0,L:L,0))

  5. #5
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: First data in a range that equals less than zero, return another cell

    Ah ha, ignore my first post.

    Use =INDEX(G:G,MATCH(0,L:L,1)). I put 1 instead of 0 which explains why I couldn't get it work when checking! (i rarely use index/match).
    Will be no need for the helper column.

  6. #6
    Registered User
    Join Date
    04-21-2013
    Location
    Oestrich Winkel, Germany
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Re: First data in a range that equals less than zero, return another cell

    If I use =INDEX(G:G,MATCH(0,L:L,1)) rather than =INDEX(G:G,MATCH(0,L:L,0)) I get the highest T value.
    =INDEX(G:G,MATCH(0,L:L,0)) seems to work fine.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: First data in a range that equals less than zero, return another cell

    Quote Originally Posted by Harribone View Post
    Ah ha, ignore my first post.

    Use =INDEX(G:G,MATCH(0,L:L,1)). I put 1 instead of 0 which explains why I couldn't get it work when checking! (i rarely use index/match).
    Will be no need for the helper column.
    On it's own that isn't reliable if there are a mix of +ve/-ve numbers, i.e. not sorted. See my second formula.

  8. #8
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: First data in a range that equals less than zero, return another cell

    Quote Originally Posted by Marcol View Post
    On it's own that isn't reliable if there are a mix of +ve/-ve numbers, i.e. not sorted. See my second formula.
    Good point there, good someone is on the ball!

+ 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