+ Reply to Thread
Results 1 to 8 of 8

Return the row number of two MATCHES

  1. #1
    Registered User
    Join Date
    02-27-2019
    Location
    Blackburn
    MS-Off Ver
    2010
    Posts
    9

    Return the row number of two MATCHES

    Hello,

    I'm trying to find the row number of two matches. I know how to return the row number of, for example, the white car (MATCH("White",B2:B5,0)).

    But would like to return the row number of the Black Golf.



    match.PNG

    Can anyone help?

    Thankyou.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Return the row number of two MATCHES

    Try this (untested):

    =LOOKUP(2,1/((A2:A5="Golf")*(B2:B5="Black")),ROW(B2:B5))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,400

    Re: Return the row number of two MATCHES

    Your request example, the white car (MATCH("White",B2:B5,0)),But would like to return the row number of the Black Golf.
    Pls try this array formula
    D6 cell

    HTML Code: 

  4. #4
    Registered User
    Join Date
    02-27-2019
    Location
    Blackburn
    MS-Off Ver
    2010
    Posts
    9

    Re: Return the row number of two MATCHES

    Quote Originally Posted by AliGW View Post
    Try this (untested):

    =LOOKUP(2,1/((A2:A5="Golf")*(B2:B5="Black")),ROW(B2:B5))
    Thank you AliGW - that seems to have sorted it!

  5. #5
    Registered User
    Join Date
    02-27-2019
    Location
    Blackburn
    MS-Off Ver
    2010
    Posts
    9

    Re: Return the row number of two MATCHES

    Quote Originally Posted by AndyRob1973 View Post
    Thank you AliGW - that seems to have sorted it!
    Thankyou wk9128, I don't seem to be able to get that to work. I suspect I'm doing something wrong.

  6. #6
    Registered User
    Join Date
    02-27-2019
    Location
    Blackburn
    MS-Off Ver
    2010
    Posts
    9

    Re: Return the row number of two MATCHES

    Quote Originally Posted by wk9128 View Post
    Your request example, the white car (MATCH("White",B2:B5,0)),But would like to return the row number of the Black Golf.
    Pls try this array formula
    D6 cell

    HTML Code: 
    Thankyou wk9128, I don't seem to be able to get that to work. I suspect I'm doing something wrong.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Return the row number of two MATCHES

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,400

    Re: Return the row number of two MATCHES

    Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly

    Array formula , To enter as an array formula instead of pressing ENTER, you press CTRL + Shift + Enter at the same time. You should see curly braces {} if it's entered correctly.
    {=MATCH("Black"&"Golf",B2:B5&A2:A5,)+1}

+ 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. Replies: 7
    Last Post: 12-13-2019, 11:47 AM
  2. [SOLVED] How to return row number/relative position of multiple matches?
    By FierceExcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2019, 10:55 AM
  3. Replies: 3
    Last Post: 03-09-2019, 03:31 PM
  4. Return defined number of matches in table
    By inq80 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-05-2015, 06:43 PM
  5. [SOLVED] Return a value if a number is in a range, even, and then matches the street
    By pixelninja in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-16-2014, 05:45 PM
  6. Find all matches for one cell and when a match found return a ref number VBA
    By ch_abs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 06:15 AM
  7. Replies: 5
    Last Post: 01-05-2013, 01:28 AM

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