+ Reply to Thread
Results 1 to 4 of 4

Find first value that is greater than X, and return value in another column

  1. #1
    Registered User
    Join Date
    11-13-2003
    Location
    Wirral, UK
    Posts
    5

    Find first value that is greater than X, and return value in another column

    Hello All

    I'd appreciate some help on this problem, please. I feel like I can almost do it but my brain seems to have gone on xmas shutdown and isn't co-operating.

    I have three columns of data. Column A contains a 'test' number, and many rows have the same value. Column B contains the 'sample' number, and this increases by one with each row that the 'test' value remains the same. Column C contains a 'value', which either increases or remains the same with each increase in the 'sample' column (i.e. there is never a decrease).

    For each 'test' I need to look up the 'sample' number where the 'value' is first equal to or greater than 2.

    So, in the attached example, for test 1 the sample value where the corresponding test value is first equal to or greater than 2 is sample 7. For test 2, it is sample 5. For test three, no values are equal to or greater than 2 so no sample is returned.

    I hope this makes sense. I'd like to know which functions I can use to make this lookup work.

    Thanks in advance!

    Ben
    Example.xlsx
    Example.png

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Find first value that is greater than X, and return value in another column

    You need an array formula for this. these are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-13-2003
    Location
    Wirral, UK
    Posts
    5

    Re: Find first value that is greater than X, and return value in another column

    Wonderful! Thank you so much!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Find first value that is greater than X, and return value in another column

    You're welcome. thansk for the feedback...

+ 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. [SOLVED] Formula to index each column and return whole number greater than zero below Yes OR No
    By Martin Chamberlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 12:24 AM
  2. Replies: 6
    Last Post: 11-30-2012, 02:48 PM
  3. [SOLVED] Return next value in a column greater than zero
    By sordid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2012, 09:29 AM
  4. Return last column index greater than zero
    By denise001 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2011, 04:40 AM
  5. Associate/Find Nos and Return Equal/Greater
    By Celticshadow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2011, 07:24 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