+ Reply to Thread
Results 1 to 3 of 3

Nested IF and Search Statement Help

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Nested IF and Search Statement Help

    Hi I have 3 statements that i need nested into 1 formula. Hope someone can help. Or can someone help me with a better formula to search for any of these 3 words in a text field (Wrong or Missing or Damage) and return the same (Wrong or Missing or Damage) in another cell in case it finds any of these 3 words.

    =IF(ISNUMBER(SEARCH("Wrong",C2)),"Wrong","Not an OFQ")
    =IF(ISNUMBER(SEARCH("Missing",C2)),"Missing","Not an OFQ")
    =IF(ISNUMBER(SEARCH("Damage",C2)),"Damage","Not an OFQ")

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested IF and Search Statement Help

    You can nest:

    =IF(ISNUMBER(SEARCH("Wrong",C2)),"Wrong",IF(ISNUMBER(SEARCH("Missing",C2)),"Missing",IF(ISNUMBER(SEARCH("Damage",C2)),"Damage","Not an OFQ"))))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-20-2011
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Nested IF and Search Statement Help

    Thanks NBVC it worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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