+ Reply to Thread
Results 1 to 13 of 13

INdex and match not returning expected results

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    INdex and match not returning expected results

    Hello All

    I am having a problem with an index and match and cant figure it out. I would like to match the # in Column A with the # in Column E , and if there is a YES anywhere in column L that corresponds to the # in Column A then I would like to return a YES in column B( where formula resides). If there is a NO in column L then I would like to return a NO. For some reason, I am returning a NO ( highlighted in red) instead of a YES

    EXAMPLE COLORED IN ORANGE AND RED

    Thanks in advance
    Attached Files Attached Files
    Last edited by Ron Purpura; 12-02-2021 at 06:35 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: INdex and match

    Why are you using @ in your formula. That is only for Tables.

    B2 =IFNA(IF(MATCH(A2,($E$2:$E$18)*($L$2:$L$18="YES"),0)>0,"YES",""),"NO")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: INdex and match

    Sorry Mehmetcik, not quite following you. I have no @ in the formula

    This is the formula I have in cell b2: =IFNA(IF(MATCH(A2,($E$2:$E$18)*($L$2:$L$18="YES"),0)>0,"YES",""),"NO"), which is not working

    Thank you for taking the time to look at this

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: INdex and match

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: INdex and match not returning expected results

    Thank you.

  6. #6
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: INdex and match

    So sorry, thread title changed

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

    Re: INdex and match not returning expected results

    The formula I see in your workbook us this:

    =IFNA(IF(MATCH(A2,(@$E$2:$E$18)*(@$L$2:$L$18="YES"),0)>0,"YES",""),"NO")

    If I remove the @ signs it works correctly.

    Maybe if you enter it as an array formula before copying down, it might work.

    CTRL+SHIFT+ENTER
    Last edited by AliGW; 12-02-2021 at 07:29 PM.

  8. #8
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: INdex and match not returning expected results

    Thank you AliGW

    I have no idea why an @ sign is showing up in the formula.

    My workbook is reflecting : =IFNA(IF(MATCH(A2,($E$2:$E$18)*($L$2:$L$18="YES"),0)>0,"YES",""),"NO")

    Very frustrating, but I greatly appreciate your help

    Sorry about the thread title

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,172

    Re: INdex and match not returning expected results

    One way:

    =IF(COUNTIFS($E$2:$E$18,A2,$L$2:$L$18,"YES")>0,"YES","NO")

  10. #10
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: INdex and match not returning expected results

    B3 shows as No in your attachment. Deleting the @ symbols returns a No.

    Maybe as Ali Says you need to use Ctrl Shift Enter in B2 and then fill down.

  11. #11
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: INdex and match not returning expected results

    THANK YOU SO MUCH Ali and Mehmetcik ! Utilizing the array does solve my problem.

    I am curious, is there another formula I may be able to use instead of using the array ?

    Gratefully
    Ron

  12. #12
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,172

    Re: INdex and match not returning expected results

    Another way:

    =IF(AGGREGATE(14,6,(A2=$E$2:$E$18)*($L$2:$L$18="YES"),1)=1,"YES","NO")

  13. #13
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Spencerport, NY
    MS-Off Ver
    Excel 2016
    Posts
    270

    Re: INdex and match not returning expected results

    AWESOME ! thank you Phuocam !

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. 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
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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