+ Reply to Thread
Results 1 to 6 of 6

Need help with INDEX and MATCH

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    11

    Question Need help with INDEX and MATCH

    Hi,

    Currently I have this formula: =INDEX($G$24:$G$129,MATCH("n",$F$24:$F$129,0))

    I am looking for the next "n" match in column F. Please advise.

    Thank you for any help given.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help with INDEX and MATCH

    Hi.

    Syntactically there's absolutely nothing wrong with your formula.

    Or do you perhaps mean that you are looking for the first example where a cell contains the letter "n" anywhere within its contents, and not that the entire cell content is precisely "n"?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need help with INDEX and MATCH

    Hi,

    Thanks for helping.

    I am only only for exact "n" matches. "n" can be in any row in column f. The formula gives me the first match. I would like to find the subsequent matches (without using filter function), that excludes the 1st match.

    Eg: 1st match => INDEX($G$24:$G$129,MATCH("n",$F$24:$F$129,0))
    2nd match => formula to exclude 1st match
    3rd match => formula to exclude 1st and 2nd matches
    etc...

    I am unsure of how to change the formula for this.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help with INDEX and MATCH

    Put this formula in D23:

    =COUNTIF(F24:F129,"n")

    which counts the number of entries in the range F24:F129 which are equal to "n".

    Then put this formula in your first cell of choice:

    =IF(ROWS($1:1)>$D$23,"",INDEX($G$24:$G$129,AGGREGATE(15,6,ROW($F$24:$F$129)-MIN(ROW($F$24:$F$129))+1/($F$24:$F$129="n"),ROWS($1:1))))

    and copy down until you start to get blanks for the results.

    Regards

  5. #5
    Registered User
    Join Date
    12-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Need help with INDEX and MATCH

    It's nearly working! I noticed that the input in Column G must be unique or it will give the previous first match.

    E.g. Column F24: N, G24: Y
    Column F46: N, G46: J
    This set is shown correctly.

    Column F24: N, G24: Y
    Column F46: N, G46: Y
    Only N,Y is given.
    This result is used by another cell to indicate the staff category. So, Row 24: Teacher and Row 46: Lawyer. But I am only getting the result for Row 24.

    Thank you for the help!

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help with INDEX and MATCH

    Sorry - not sure I understand what you mean.

    Please re-upload a workbook with an example of this apparent issue.

    Regards

+ 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. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Replies: 5
    Last Post: 02-29-2012, 08:51 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