+ Reply to Thread
Results 1 to 5 of 5

IF and SEARCH and OR..what I am doing wrong

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Houston Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    IF and SEARCH and OR..what I am doing wrong

    I am searching 2 columns for "CRS". If one or both columns contain this value, I would like a response of CRS.

    Works great when searching one colum: =IF(ISNUMBER(SEARCH("CRS",C12526)),"CRS","")

    Not so great when trying 2 columns: IF(ISNUMBER(SEARCH("CRS",C12526)) Or (ISNUMBER(SEARCH("CRS",F12526)) ,"CRS","")

    HELP!

    Thanks in advance..
    Last edited by ihinojosajr; 05-27-2014 at 01:04 PM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: IF and SEARCH and OR..what I am doing wrong

    May be this.......

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Houston Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF and SEARCH and OR..what I am doing wrong

    BINGO! That worked! Thank You.

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

    Re: IF and SEARCH and OR..what I am doing wrong

    What is in column D and E ?
    IF CRS will NOT exist in D12526 or E12526, then try

    =IF(COUNTIF(C12526:E12526,"*CRS*"),"CRS","")

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: IF and SEARCH and OR..what I am doing wrong

    You're welcome. Thanks for the feedback.
    If that takes care of your question, please mark your thread as solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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 (sorry if in wrong subforum)
    By meneses in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-19-2012, 11:21 AM
  2. Replies: 1
    Last Post: 04-16-2011, 01:39 AM
  3. Replies: 0
    Last Post: 04-10-2011, 09:47 PM
  4. Search String and mark wrong
    By StryderLlama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2009, 04:10 PM
  5. more than 1 cell as search range: result is wrong
    By astar24 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-09-2009, 12:31 PM

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