+ Reply to Thread
Results 1 to 7 of 7

Index/Match to search multiple columns

  1. #1
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    Index/Match to search multiple columns

    I have a workbook with two worksheets in the attached - one is called "With ID", the other is "Without ID."

    I need to pull in column A id's from worksheet 1 into column A on worksheet 2 by searching for last name then first name. The names in worksheet 1 are in different formats and sometimes have up to 30 names in one cell in columns c and d.

    However, in worksheet 2, (without id), each name is in its cell.

    I was trying Index/Match feature but can't get it to work. Can somebody look at the attached and tell me how to do it.

    It would be greatly appreciated.

    A~
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match to search multiple columns

    Hi, welcome to the forum

    Try this...
    =IFERROR(INDEX('With ID'!$A$1:$A$10,IFERROR(IFERROR(IFERROR(MATCH("*"&$B2&"*",'With ID'!C$1:C$10,0),MATCH("*"&$B2&"*",'With ID'!D$1:D$10,0)),MATCH("*"&$B2&"*",'With ID'!E$1:E$10,0)),"")),"Not Found")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match to search multiple columns

    Deleted forum-induced duplicate post

  4. #4
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    Re: Index/Match to search multiple columns

    Thank you - everything is almost working. For some reason though, for only one gang in particular, it is only matching half of the names in the cell. This gang can have up to 30 names in one cell. Why is it only matching half the names? Any ideas?

    Column C (With ID) Column A (Without ID) Column B (Without ID)
    washington, george TTTX0001 WASHINGTON, GEORGE
    nickels, joe NICKELS, JOE
    strait, george t TTTX0001 STRAIT, GEORGE
    Wilkes, mike WILKES, MIKE
    wilkes, bob WILKES, BOB
    gomez, miguel javier GOMEZ, MIGUEL
    smith, samual TTTX0001 SMITH, SAMUAL


    Any insight would be appreciated.

    Thank you.
    A~

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index/Match to search multiple columns

    Please post you example in an excel file, and please add the desired result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    10-01-2007
    Posts
    6

    Re: Index/Match to search multiple columns

    The attachment is below. I would like all of the Gang ID's in'Without ID - column A' filled in by matching the names in column b to one of the names in the 'with id' columns c,d or e.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match to search multiple columns

    I think that no match is being found because that cell is too long, it is 482 chars long, and the max length is 255. If you copy C4 to G4, then in C4 use =LEFT(G4,255) then all the names are found

+ 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 multiple columns
    By mma3824 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2013, 04:02 PM
  2. How to use index match to search for a value from multiple sheets
    By yoyogu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2012, 02:16 AM
  3. [SOLVED] Using Index and Match to search an array that has multiple items in each cell
    By tdlewis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2012, 08:45 PM
  4. Using Index Match to search multiple columns
    By myshadeofglory in forum Excel General
    Replies: 15
    Last Post: 05-30-2012, 11:53 AM
  5. Index and Match-search across mutliple columns
    By satkadeb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2008, 03:20 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