+ Reply to Thread
Results 1 to 5 of 5

Nested IF(SEARCH)

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    Carthage, MO
    Posts
    3

    Nested IF(SEARCH)

    I need a formula to accomplish the following:

    Column A contains an alphanumeric string up to 50 characters in length. I need a formula to search the string in Column A for the word "Appeal" and place that word in Column B when found. Likewise for the words "Grievance" and "Complaint". If none of the three words are found in Column A, the contents of Column B should be blank.

    Here's the formula I've played around with (it works on the first line but returns #VALUE! on following lines):

    =IF(SEARCH("Appeal",A1),"Appeal",IF(SEARCH("Grievance",A1),"Grievance",IF(SEARCH("Complaint",A1),"Complaint","")))

    I've tried entering it as an array, but that also fails.

    This seems like a pretty simple problem ,but I've spent several hours trying to make the formula work so I'm obviously doing something wrong. I'd appreciate any guidance you can provide.
    Last edited by scmllc; 12-19-2008 at 12:45 AM. Reason: unexpected space within word that was copied/pasted

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671
    I've uses the following formula:
    Please Login or Register  to view this content.
    See the attached file

    I like the following formula
    Please Login or Register  to view this content.
    as it searches within an array of full of #VALUES and and lookup has a lookup vector (range) and a result range that are connected via an OFFSET only.
    Attached Files Attached Files
    Last edited by rwgrietveld; 12-17-2008 at 03:46 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    Carthage, MO
    Posts
    3
    Since the list of search words is so short, I was hoping for a formula that contains the words instead of creating another column to hold them, but that approach certainly gets me where I need to go. Thanks for your help!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Does a cell contain text from a list?

    Maybe something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    12-17-2008
    Location
    Carthage, MO
    Posts
    3
    That works perfectly - thank you!

+ 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