+ Reply to Thread
Results 1 to 11 of 11

If/IsNumber multiple search criteria. Does syntax accept "OR"?

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Hi All:

    I have a formula that I am working to tweak to search for multiple text.
    • I want to look in a table for specific texts. Example: "Pol", "Occl", "Hap", and "Div"
    • If the texts are found anywhere in the searched cells, I want the entire cell data returned.


    This is the formula that is working for me for just 1 search criteria. For example:

    Please Login or Register  to view this content.
    I have tried putting "OR" after the iferror and dropping in the different specific texts...it bombs.

    Any help would be appreciated!

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Try this in B2:

    =INDEX(C2:I2,MIN(IF(ISNUMBER(SEARCH({"Pol";"Occl";"Hap";"Div"},C2:I2)),COLUMN(C2:I2)-2)))&"" Ctrl Shift Enter


    Edit: Never mind, worked by coincidence. Working on a solution.
    Last edited by 63falcondude; 07-30-2018 at 11:44 AM.

  3. #3
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Ok, thanks! I was puzzled because it was returning my data, but some strange results as well.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Try this in B2:

    =IFERROR(INDEX(C2:I2,SMALL(IF(ISNUMBER(SEARCH({"Pol";"Occl";"Hap";"Div"},C2:I2)),COLUMN(C2:I2)-2),1)),"") Ctrl Shift Enter

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Hi 63falcondude:

    Thanks so much, it's close! In the test data I attached, it works. But in my working spreadsheet, the column with the latest formula you provided returns "0"s for the records that should have the string returned. Any ideas what went wrong?

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Hmm, not off the top of my head.

    If you upload a more representative sample showing the issue, we can take a look.

  7. #7
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Here's a scrubbed sample of what I am dealing with. Tried to maintain the error, hope it makes sense.
    Attached Files Attached Files

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Change -2 to -6. This number corresponds to the column where the data starts.

    Notice that in this sample, the data starts farther to the right than in the first sample.

  9. #9
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    This worked! Thanks so much! I had a suspicion it was the offset, but was kinda foggy on how to troubleshoot. Thank you again for your kind help!

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    Happy to help. Thanks for the rep!

  11. #11
    Registered User
    Join Date
    07-11-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Re: If/IsNumber multiple search criteria. Does syntax accept "OR"?

    I need following formula :-----------

    1. If the cell in coumn Q contains CEMEX, put the value of “CEMEX Reuqest” in the new column cell

    2. If the cell in column Q contains Customer, put the value of “customer Request” in the new column cell

+ 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 search terms: (ISNUMBER(SEARCH(". VALUES",1:1))),FALSE)
    By Schultze in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2018, 06:40 AM
  2. [SOLVED] Formula: =IF((ISNUMBER(SEARCH("172.29.90.",$A3)))*(ISNUMBER(SEARCH("00-00-85",$F3))),"MF
    By dude6571 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-04-2017, 07:36 AM
  3. Replies: 12
    Last Post: 11-03-2017, 11:22 AM
  4. [SOLVED] Syntax for an "IF AND ISNUMBER SEARCH" function
    By EFD in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2017, 09:29 AM
  5. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  6. 7 nested IF statements with a SEARCH added IF(ISNUMBER(SEARCH({"INSUR","AP REFUND"}
    By michaelproctor001 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2013, 02:13 PM
  7. Replies: 6
    Last Post: 02-25-2013, 03:16 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