+ Reply to Thread
Results 1 to 10 of 10

Search multiple values in a cell with multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    5

    Search multiple values in a cell with multiple criteria

    Hi All,
    I am trying to search for multiple values in a cell with Multiple criteria.
    E.g: Please find attached the sample excel data

    I tried using VLOOKUP which is not working as I am having multiple values in column A.
    Any help and suggestions
    Attached Files Attached Files
    Last edited by itsmeddb; 05-22-2009 at 04:02 PM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Search multiple values in a cell with multiple criteria

    Unclear... Can you provide the actual results you expected?

  3. #3
    Registered User
    Join Date
    05-21-2009
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Search multiple values in a cell with multiple criteria

    Domenic, I am trying to display the Column C value in column D if the value in B is present in Column A Cell.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Search multiple values in a cell with multiple criteria

    Try...

    D1, copied down:

    =IF(ISNUMBER(SEARCH(B1,A1)),C1,"")

  5. #5
    Registered User
    Join Date
    05-21-2009
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Search multiple values in a cell with multiple criteria

    i am trying to use a range of value to look for and display the corresponding values.

    i tried the below formula which didnt work..

    =IF(ISNUMBER(SEARCH(B1:B3,A1)),C1:C3,"NA")

    Please let me know if this can be workout someother way.

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Search multiple values in a cell with multiple criteria

    Where's your list of values for which to search? It would help if you provided some examples...

  7. #7
    Registered User
    Join Date
    05-21-2009
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Search multiple values in a cell with multiple criteria

    I apologies for not being clear in explaining what is that i am trying to accomplish.

    I am attaching the sample data.

    I am trying to search for the Name - Column B range in Column A- Description cell: A2 and display the corresponding value from Column C in column D, if found.

    In my sample data :
    Nakkash is present in A2 and A3 so D2 and D3 Should say COG.
    Madassam is present in A4 so D4 should say WIN

    I am trying to perform the same for some 20000 records.
    Attached Files Attached Files
    Last edited by itsmeddb; 05-22-2009 at 10:41 AM.

  8. #8
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Search multiple values in a cell with multiple criteria

    Try...

    D2, copied down:

    =LOOKUP(9.99999999999999E+307,SEARCH(" "&$B$2:$B$4&" "," "&A2&" "),$C$2:$C$4)

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,929

    Re: Search multiple values in a cell with multiple criteria

    Try this,

    D2
    =IF(SUM(--($B$2:$B$100<>"")*ISNUMBER(SEARCH($B$2:$B$100,A2)))=0,"NA",INDEX($C$2:$C$100,MATCH(1,($B$2:$B$100<>"")*ISNUMBER(SEARCH($B$2:$B$100,A2)),0)))
    Press Ctrl+Shift+Enter after input this formula, then copy down.

    Hope this helps,
    windknife

  10. #10
    Registered User
    Join Date
    05-21-2009
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Search multiple values in a cell with multiple criteria

    Domenic... i was able to accomplish my goal using your condition.. Thanks for the timely help..

    Thanks Wind as well..

    Marking as resolved.

+ 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