+ Reply to Thread
Results 1 to 10 of 10

Using SEARCH Function with a List

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Question Using SEARCH Function with a List

    Hi,

    I was wondering if anyone knows how to use the ISNUMBER(SEARCH()) function using a list on a different sheet to search in.

    To put it in context. I have a list of address in column T and am writing a formula to look at that address and search an abbreviated list of addresses in another sheet to identify it as being on the list so that I can review it.

    For example: If in Column T I have "140 High St." and the list I am referencing has "140 High" as an identifier to review.. How do I make it search the full list and identify it as needing to be reviewed? I made the abbreviated list to eliminate any differences between "St." "ST" and "Street" etc; and just toned it back to the street number and beginning of the street name.

    Thank you.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using SEARCH Function with a List

    Try something like

    =IFERROR(LOOKUP(2^15,SEARCH(list, T1),list),"")

    T1 is cell to check
    list cannot contain any blanks.

  3. #3
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: Using SEARCH Function with a List

    What is the 2^15 in reference to?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using SEARCH Function with a List

    2 to the power of 15

    2^15 = 32768

  5. #5
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: Using SEARCH Function with a List

    Right but I'm just not familiar with the use of it in a formula. I am not having any luck so far.. currently my formula looks like this:

    =IF(AND((ISNUMBER(SEARCH('List Reference'!C2:C30,T2))),Z2="OK"),"Review","")

    It returns my both values of "Review" and "", but the addresses do not seem to be consistent with what I am asking it to search.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using SEARCH Function with a List

    Looks like your list is in 'List Reference'!C2:C30

    Try
    =IFERROR(LOOKUP(2^15,SEARCH('List Reference'!C2:C30, T2),'List Reference'!C2:C30),"")


    If any of the values in C2:C30 exist in T2, the formula will return that value. Otherwise it returns ""
    There cannot be any blanks in C2:C30

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using SEARCH Function with a List

    See if I can incorporate that to your AND test with Z2="OK"
    Also proably need to lock down that C2:C30 list range.

    =IF(AND(Z2="OK", ISNUMBER(LOOKUP(2^15,SEARCH('List Reference'!$C$2:$C$30, T2)))),"Review","")

  8. #8
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: Using SEARCH Function with a List

    That did it! Worked perfectly exactly how I had wanted. Thank you so much for your help!!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using SEARCH Function with a List

    You're welcome.

    The significance of 2^15, i.e. 32768
    That number just happens to be 1 larger than the maximum number of characters allowed in a cell (32767)
    So the lookup value 2^15 is guaranteed to be larger than any possible result of the Search funcion.

  10. #10
    Registered User
    Join Date
    11-22-2016
    Location
    United States
    MS-Off Ver
    XL 2010
    Posts
    18

    Re: Using SEARCH Function with a List

    Definitely makes sense. Thank you for the learning point, I did not know that!

+ 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: 11
    Last Post: 02-20-2015, 09:29 AM
  2. [SOLVED] Vlookup with Search function in list
    By newbie4 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-13-2015, 11:40 PM
  3. Need help creating search function of list
    By romeogbs19 in forum Excel General
    Replies: 15
    Last Post: 11-01-2012, 03:49 PM
  4. list alternate cell based off search function results
    By agragg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2012, 05:41 PM
  5. Search function in price list
    By FARGEADX in forum Excel General
    Replies: 4
    Last Post: 07-05-2011, 07:12 AM
  6. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 PM
  7. List Search Time & Then List Next Search Results on Next Available Line
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2009, 09:39 AM

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