+ Reply to Thread
Results 1 to 3 of 3

How to find the first highest value with another condition

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    Cambridge, USA
    MS-Off Ver
    Excel 2008
    Posts
    6

    How to find the first highest value with another condition

    Hi,

    I want to report the value in column F corresponding to the first value higher than 10 in column I and corresponding to A1 in column A. To extract the first value, I was able to use this formula :

    =INDEX(G:G,MATCH(INDEX($I3:I206000,SUMPRODUCT(MATCH(1,--(I3:$I206000>10),0)),1),I:I,0),1)

    But, then I want to do the same for the value A2 from column A, for A3... and so on.

    I have created Sheet2 as a reference.

    Thanks in advance for your help.

    Simon
    Attached Files Attached Files
    Last edited by sjlabrie; 02-22-2011 at 09:42 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to find the first highest value with another condition

    Your sample file does not quite out to your formula above.

    Using your sample - if we assume you want to return Time where 483-533 first exceeds 10 for each SamplePos listed in Sheet2 - and you want to do this efficiently (relatively speaking):

    Please Login or Register  to view this content.
    Then:

    Please Login or Register  to view this content.
    Performing the same without a helper column will be inefficient - more so the larger the source data set / number of SamplePos being searched for

    If you can sort your data you can improve efficiency of approach further.

  3. #3
    Registered User
    Join Date
    12-15-2010
    Location
    Cambridge, USA
    MS-Off Ver
    Excel 2008
    Posts
    6

    Re: How to find the first highest value with another condition

    Quote Originally Posted by DonkeyOte View Post
    Your sample file does not quite out to your formula above.

    Using your sample - if we assume you want to return Time where 483-533 first exceeds 10 for each SamplePos listed in Sheet2 - and you want to do this efficiently (relatively speaking):

    Please Login or Register  to view this content.
    Then:

    Please Login or Register  to view this content.
    Performing the same without a helper column will be inefficient - more so the larger the source data set / number of SamplePos being searched for

    If you can sort your data you can improve efficiency of approach further.
    Thank you DonkeyOte... It works perfectly.

+ 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