+ Reply to Thread
Results 1 to 5 of 5

finding the first number in list that meets criteria

  1. #1
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690

    finding the first number in list that meets criteria

    Hi all,

    I am trying to find the FIRST score in column A that meets or exceeds the target in column C, and entering the number of elapsed days in column D.

    I attach a simple example spreadsheet with the first few correct answers in column D.

    Many thanks

    ps I have now retired, so do not post so frequently.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: finding the first number in list that meets criteria

    Try...

    D2, confirmed with CONTROL+SHIFT+ENTER, and copied down:

    =MATCH(TRUE,B2:$B$40>=C2,0)-1

    Hope this helps!

  3. #3
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690

    Re: finding the first number in list that meets criteria

    Dominic, that was quick, many thanks. I tried it in my actual application, it works as such, but I have only monday to friday dates in the date column, with some dates missing, so is there a way to return the DATE on which the match is found, thanks.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: finding the first number in list that meets criteria

    Try...

    =INDEX(A2:$A$40,MATCH(TRUE,B2:$B$40>=C2,0))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

  5. #5
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690

    Re: finding the first number in list that meets criteria

    Thanks, Dominic, I just added a minus today's date bit and it now gives me the elapsed days to hit target. Out of interest I am using it to track share prices and to monitor various automated buying and selling scenarios. Thanks again.

+ 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