+ Reply to Thread
Results 1 to 3 of 3

Wildcard text match using INDEX and MATCH

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Wildcard text match using INDEX and MATCH

    I received this wonderful script last week and I now have a new requirement put on me.

    Is there a way to make a wildcard search for a single word against another cell with multiple words work in the following formula?

    Formula in the Tracks!G3 cell:

    =IF(DutyPositions!$O$3="","",INDEX(DutyPositions!O$3:$O1000,MATCH(1,INDEX((DutyPositions!$K$3:$K$1000=H78)*(DutyPositions!$L$3:$L$1000=I3),0),0),1))

    I need to have the red highlight be able to pull data based upon the cells in DutyPositions!L3:L1000 which has 3 words per cell pull the data against a single word that matches one word from the Tracks!I3 cell.

    DutyPositions!L3:L1000 has three words: Aerospace Education Officer
    Tracks!I3 will have only Aerospace in it.
    Need to have the formula match th Aerospace (I3) match the Aerospace Education Officer (L3:L1000)

    Thank you.

    Michael

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Wildcard text match using INDEX and MATCH

    Try:

    =IF(DutyPositions!$O$3="","",INDEX(DutyPositions!O$3:$O1000,MATCH(1,INDEX((DutyPositions!$K$3:$K$1000=H78)*(ISNUMBER(SEARCH(I3,DutyPositions!$L$3:$L$1000))),0),0),1))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Wildcard text match using INDEX and MATCH

    NBVC,

    Your recommend change works perfect!

    Thank you,

    Michael

+ 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