+ Reply to Thread
Results 1 to 5 of 5

Help! Reference a cell in same column if Range meets criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Washington, D.C.
    MS-Off Ver
    Excel 2007
    Posts
    12

    Help! Reference a cell in same column if Range meets criteria

    Hi Everyone,

    I'm looking for a formula that will allow me to display a cell's value if the criteria for a range is met. This is a little more complex than a IF Formula.

    Example:

    I have range I9:Z9, I want to display the value of the cell in row 3 of the same column that meets my criteria. My Criteria is the first instance of the letter "A".

    So if "A" shows up for the first time in cell T9, I would like the corresponding value in cell T3 to be displayed. "A" will show up several times in the range, I would just like the first instance. Will this need to be done through VBA? Is this possible?

    Thanks,

    Trevorrow

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help! Reference a cell in same column if Range meets criteria

    Try this:

    =IF(COUNTIF(I9:Z9,"A"),INDEX(I3:Z3,1,MATCH("A",I9:Z9,0)),"")
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Help! Reference a cell in same column if Range meets criteria

    Try
    =INDEX(I3:Z3,1,MATCH("A",I9:Z9))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    02-04-2013
    Location
    Washington, D.C.
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Help! Reference a cell in same column if Range meets criteria

    Quote Originally Posted by Special-K View Post
    Try
    =INDEX(I3:Z3,1,MATCH("A",I9:Z9))
    This works! However, it is returning the last instance of "A" instead of the first. I may be able to work with this, but is there an easy fix?

  5. #5
    Registered User
    Join Date
    02-04-2013
    Location
    Washington, D.C.
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Help! Reference a cell in same column if Range meets criteria

    I should mention the range I am defining and cell value I am looking to display are on another sheet, let's call it "Sheet 1". I'll be more specific with ranges:

    First instance of the letter "A" in range 'Sheet1'!$I9:$BDM9
    Then display value in Row 3 of same column of same sheet.
    Last edited by Trevorrow; 02-12-2013 at 03:31 PM.

+ 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