+ Reply to Thread
Results 1 to 6 of 6

multiple ISNUMBER search

  1. #1
    Registered User
    Join Date
    10-04-2005
    Posts
    73

    multiple ISNUMBER search

    Hello all

    I am using the formula =IF(ISNUMBER(SEARCH("Eating",B7)),"Eat",B7) and would like to combine it with something similar to this =IF(ISNUMBER(SEARCH("Drinking",B7)),"Drink",B7)

    Can anyone help me with this?

    Thank you

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: multiple ISNUMBER search

    Hi,

    Are there only two items to search, or do you require more than that? For 2 a simple nested IF will suffice:

    =IF(ISNUMBER(SEARCH("Eating",B7)),"Eat",IF(ISNUMBER(SEARCH("Drinking",B7)),"Drink",B7))

    but this will become quite unwieldy with multiple searches.

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

    Re: multiple ISNUMBER search

    If you require more than just 2, you can create a lookup table in say E2:F5 or whatever.
    E2:E5 would be the words to search for, i.e. Eating Drinking
    F2:F5 would be the values you want returned based on finding those words, i.e. Eat Drink

    Then you can use

    =IFERROR(LOOKUP(2^15,SEARCH($E$2:$E$5,B7),$F$2:$F$5),B7)

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: multiple ISNUMBER search

    Try this ...

    =IFERROR(LOOKUP(2,1/SEARCH({"Eating","Drinking"},B7),{"Eat","Drink"}),B7)

  5. #5
    Registered User
    Join Date
    10-04-2005
    Posts
    73

    Re: multiple ISNUMBER search

    Hi All

    Thanks for the response. All suggestions worked great!

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

    Re: multiple ISNUMBER search

    You're welcome.

+ 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. Multiple IF ISNUMBER SEARCH
    By kalivc in forum Excel General
    Replies: 0
    Last Post: 01-21-2015, 08:23 PM
  2. [SOLVED] Multiple IF(ISNUMBER(SEARCH...), need sum
    By Imtall62 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2014, 11:41 AM
  3. Combined IF ISNUMBER SEARCH for multiple words
    By caffegelato in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-16-2013, 08:57 AM
  4. Help with multiple If(Isnumber(Search( function
    By khk410 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 09:07 AM
  5. [SOLVED] how to have multiple ISNUMBER search function in SUMPRODUCT
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2012, 09:34 PM
  6. Multiple ISNUMBER(SEARCH()) functions
    By Bassteban in forum Excel General
    Replies: 1
    Last Post: 08-17-2011, 01:55 PM
  7. Multiple IF ISNUMBER SEARCH
    By bibach in forum Excel General
    Replies: 5
    Last Post: 07-13-2011, 04:41 AM

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