+ Reply to Thread
Results 1 to 17 of 17

Index Match multiple criteria with wildcard

  1. #1
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Index Match multiple criteria with wildcard

    I am trying to come up with a formula that can capture the commission rate of a sales rep based on the name of a company, however in some cases the company name is not an exact match. As such, I need to figure out how to incorporate a wildcard that references text in another cell. I also am looking to incorporate the IfError formula to avoid #N/A in my results.

    On a final note, I would like to do this without using the array function if possible.

    Attached is my example. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Index Match multiple criteria with wildcard

    Try this ...

    =INDEX($K$5:$K$7, MATCH(1,INDEX(ISNUMBER(SEARCH($J$5:$J$7,B4))+0, 0), 0))

    or:

    =LOOKUP(2,1/SEARCH($J$5:$J$7,B4),$K$5:$K$7)

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index Match multiple criteria with wildcard

    or
    =IFERROR(LOOKUP(2,1/COUNTIF($B4,"*"&$J$5:$J$7&"*"),$K$5:$K$7),"")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you. This looks good but I am missing the second criteria, which is matching the sales reps names. I added a new file to this post to further explain what I am looking for.

    Regards
    Last edited by Perk1961; 03-16-2018 at 12:28 PM.

  5. #5
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you. This formula works well but is missing one of the multiple criteria I need.

    I was also wondering if there was a way to do this with the index match formula so there is more flexibility in case I move some of the columns in the future.

    Also, is the Asterisk function more powerful than the Search function when it comes to closely matching a name as shown by Phuocom?

    Regards,
    Last edited by Perk1961; 03-16-2018 at 12:27 PM.

  6. #6
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    I also noticed the examples submitted did not include multiple criteria. What I also need is for the sales reps name to be included as one of the criteria. Attached is an updated example. As you can see, I was able to incorporate the iferror function but not the search or wildcard function in the string. Were getting closer!

    Thanks in advance.
    Attached Files Attached Files

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match multiple criteria with wildcard

    Based on the sample that you shared in post #6, try this adjustment to the suggestion from post #2:

    C4 =IFERROR(LOOKUP(2,1/((SEARCH($J$4:$J$9,$B4))*($L$4:$L$9=C$3)),$K$4:$K$9),"")

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match multiple criteria with wildcard

    Whoops, wrong thread. Deleted.

  9. #9
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you for your reply. I have two follow up questions. Is there a way to write this using Index Match instead of Lookup so I can move columns around at a later date? Also, I notice if I remove the word "Us" in cell B6 that the calculation will no longer give the desired result. On the other hand, if I remove the word "Us" in cell J8 the formula works perfectly. In other words, the wildcard/Search function only appears to go one direction.

    Thanks in advance.

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Index Match multiple criteria with wildcard

    Try:

    =IFERROR(IFERROR(INDEX($K$4:$K$9,MATCH(1,INDEX((SEARCH($J$4:$J$9,$B4)>0)*($L$4:$L$9=C$3),0),0)),
    INDEX($K$4:$K$9,MATCH(1,INDEX((SEARCH($B4,$J$4:$J$9)>0)*($L$4:$L$9=C$3),0),0))),"")

  11. #11
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Bingo! This works exactly how I envisioned. Thank you so much!

  12. #12
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Index Match multiple criteria with wildcard

    Another formula with the AGGREGATE function
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you. Can you clarify what the numbers 15 and 6 represent in the string?

  14. #14
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Index Match multiple criteria with wildcard


  15. #15
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you for the link. It is a bit over my head so I will stick with the Index Match function.

  16. #16
    Registered User
    Join Date
    09-03-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Index Match multiple criteria with wildcard

    Excellent formula! Doesn't even use cell formulas!

    I have edited the sheet to use Named Ranges, I find this more useful and other users might as well.

    FYI:

    The 15 and the 6 are inputs to the aggregate formula, which has different functions, so these numbers just indicate the selection by the user, the value themselves are not related to the equation.

    15 - SMALL
    6 - Ignore Hidden Values
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Index Match multiple criteria with wildcard

    Thank you for clarifying. Your added input was very helpful!

+ 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: 16
    Last Post: 01-05-2018, 11:04 PM
  2. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  3. [SOLVED] Index and match using wildcard
    By Eustace07 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-09-2016, 01:30 PM
  4. Index/Match to Match entries on multiple criteria
    By manning457 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2015, 02:32 PM
  5. [SOLVED] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  6. [SOLVED] INDEX - MATCH on two Criteria with wildcard
    By SrDurham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2015, 09:04 AM
  7. Replies: 2
    Last Post: 09-27-2014, 04:34 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