+ Reply to Thread
Results 1 to 10 of 10

Searching if any word within a cell within the master list from a table array of values

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Searching if any word within a cell within the master list from a table array of values

    I have a master list which I would like to search against using a list of search queries, i.e. does the master list contain any of the values in my table array.

    If "Coke AG" is in the master list, I would like "Coke", in the table array to trigger the search results.

    More data:

    Master list Results Table Array
    Coachingleaders Confirmed Coach
    Coaches Confirmed Coke
    Tablet N/A Nike
    Coke AG Confirmed
    Nike New York Confirmed

    Do you know of any function that would solve for this? I'm thinking some "IF" functionality contained within a vlookup?

    Thank you for any help.

    Alex

  2. #2
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching if any word within a cell within the master list from a table array of value

    Not sure why the format on the data looks so funky. There are supposed to be three columns showing the desired results there
    Last edited by arosier; 09-13-2013 at 02:18 PM. Reason: bad format

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Searching if any word within a cell within the master list from a table array of value

    upload a excel file would help

  4. #4
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching if any word within a cell within the master list from a table array of value

    searchcontainstemplate.xlsx Here is a template of what I am trying to accomplish.

  5. #5
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: Searching if any word within a cell within the master list from a table array of value

    How many search terms in the Lookup Table are we looking at? If it is only a few then it still can be accomplish using a formula. Otherwise, it is much easier with VBA.

  6. #6
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching if any word within a cell within the master list from a table array of value

    There are thousands in the list. Do you happen to know the vba code?

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Searching if any word within a cell within the master list from a table array of value

    Try this in C2, then copy down.

    =IF(COUNT(LOOKUP(40000,SEARCH(E$2:E$7,A2))),A2,"")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  8. #8
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching if any word within a cell within the master list from a table array of value

    That is exactly what I am looking for! Thank you so much for your help. If you wouldn't mind, what is the meaning behind the "40000" in the formula? Is it just the code for look within?

    Thank you again, I have been trying to solve this all week. This is a huge relief!

  9. #9
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Searching if any word within a cell within the master list from a table array of value

    Total number of characters that a cell can contain is 32,767 characters so, SEARCH will look for E$2:E$7 words in A2 & give its position where all the words 'CONTAINS' in A2, so this will be <=32767. If any of the word couldn't found in E$2:E$7 will give an error. So if we use 40000 LOOKUP always look for <=lookup_value, which is 40000.

    Hope this helps you.

  10. #10
    Registered User
    Join Date
    09-13-2013
    Location
    Ma
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching if any word within a cell within the master list from a table array of value

    Makes sense. Thanks again!

+ 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: 2
    Last Post: 12-14-2012, 01:17 PM
  2. Copy/Paste Cells from old list to new master list by matching values
    By rfsmith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 05:32 PM
  3. Replies: 9
    Last Post: 04-18-2012, 08:50 AM
  4. Macro - Create smaller word tables from master excel table
    By VBA_n00b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2011, 10:12 PM
  5. Build List using Array of Unique Cell Values
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2011, 06:59 PM

Tags for this Thread

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