+ Reply to Thread
Results 1 to 6 of 6

Formula that returns the first in range

  1. #1
    Registered User
    Join Date
    02-12-2018
    Location
    Texas, US
    MS-Off Ver
    2010
    Posts
    14

    Formula that returns the first in range

    Hello,

    I've been working on this for hours trying to find a way via COUNTIF, INDEX, FIND and much more, but my brain is fried.

    I have a column of data, say A1:A54 that is going to be nothing but numbers descending. I'm looking to create a formula say in $C$1 that finds the first instance of the number dropping below "-9" in column A's data and then performs the OFFSET function of grabbing the data in the neighboring cell in column B.

    I've created a conditional formatting formula with COUNTIF to highlight the row of the first instance, but haven't been successful otherwise.


    Thank you for your help.

    B.O.B.
    Burnt Out Brain.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Formula that returns the first in range

    Try

    =INDEX(B:B,MATCH(D1,A:A,-1)+1)

    D1=Search value

  3. #3
    Registered User
    Join Date
    02-12-2018
    Location
    Texas, US
    MS-Off Ver
    2010
    Posts
    14

    Re: Formula that returns the first in range

    Hi John,

    I've tried that, the issue is, the search value isn't always going to be the same (which would make it so much easier). That's why I'm searching for the first to reach below -9, as sometimes that could be -10 or -2000.

    Thank you for your help.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Formula that returns the first in range

    So D1=-9 ????
    Attached Files Attached Files
    Last edited by JohnTopley; 03-05-2018 at 03:24 PM.

  5. #5
    Registered User
    Join Date
    02-12-2018
    Location
    Texas, US
    MS-Off Ver
    2010
    Posts
    14

    Re: Formula that returns the first in range

    Oh! I thought it would only search only for -9, not anything else.

    Thanks!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Formula that returns the first in range

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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 that looks in range and returns Pass if all cells contain Ps
    By Jamidd1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-19-2017, 08:44 AM
  2. [SOLVED] Formula that returns all cells with data within a selected range
    By Jamidd1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2016, 06:30 AM
  3. [SOLVED] formula that returns text in range if there are multiples
    By almostgenius in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2015, 07:24 PM
  4. [SOLVED] need a formula that returns unique values in a range
    By James C in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2013, 02:26 PM
  5. [SOLVED] Formula returns different value from same range
    By JO505 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 08:07 PM
  6. formula which returns horizantal range to vertical range
    By unas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-29-2010, 09:58 AM
  7. Replies: 3
    Last Post: 07-17-2008, 12:16 PM

Tags for this Thread

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