+ Reply to Thread
Results 1 to 2 of 2

Search multiple cells and return text from corresponding match

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    Hull, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Search multiple cells and return text from corresponding match

    Help please. To keep it simple I have a spreasheet as follows:

    A B C D
    1 John E E L
    2 James E N N
    3 Helen N L E
    4 Jo L E L
    5 Emma L LD E
    6 Katie LD L LD

    On another spreadsheet I want to lookup cells containing the code "E" or "LD" for each column (B-D) and return the names of the individuals in column A where that criteria is met. I have tried a mixture of the index, if, row and small functions but can't seem to get this to work.

    Many thanks in anticipation of your help.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Search multiple cells and return text from corresponding match

    Insert a row at the beginning of your source data to start in row 2, then use the following formula in E2 and copy down.

    =OR(OR(B2="E",C2="E",D2="E"),OR(B2="LD",C2="LD",D2="LD"))*(MAX($E$1:E1)+1)

    Now you can use a normal Index function in your second sheet to get the names.

    Regards

+ 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