+ Reply to Thread
Results 1 to 5 of 5

NON blank corresponding value of most recent date

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    NON blank corresponding value of most recent date

    Hello everybody. I am new to the forum and already found lot of helpful info, Thanks!
    I am looking for a formula that looks into 2 columns, one containing dates and one values, and returning the corresponding value of the latest date.
    So far so good i found working for me:
    =INDEX(H10:H13,MATCH(MAX(L10:L13),L10:L13,0))
    where dates are in L10:L13 and values in H10:H13.
    What I just can NOT get is how to get as a result the value comparable to the second most recent date, in case the most recent date has 0 o no value?
    Any idea?
    Thanks,
    F

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: NON blank corresponding value of most recent date

    Hi

    Try
    =INDEX(H10:H13,MATCH(LARGE(L10:L13,2),L10:L13,0))

    rylo

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: NON blank corresponding value of most recent date

    Rylo, thanks for your reply. That give in result the corresponding vale of the second latest date.
    I am still looking for the value of the latest date with a value corresponding. That would be the latest date, unless there is no value (or 0) and if so it would give the next latest date with a value.
    Any idea?

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: NON blank corresponding value of most recent date

    Hi

    Sorry misunderstood what you were chasing. Try this

    =INDEX(H10:H13,MATCH(MAX(IF(H10:H13>0,L10:L13)),L10:L13,0))

    It has to be array entered (CTRL, SHIFT, ENTER)

    rylo

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: NON blank corresponding value of most recent date

    Perfect! Thanks a million, it works like a charm!
    I really appreciate your help!
    Best,
    F

+ 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