+ Reply to Thread
Results 1 to 5 of 5

How do I search for a character in column 1 and display another character in column 2

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    66

    How do I search for a character in column 1 and display another character in column 2

    How do I search for a character in column 1 and display another character in column 2?

    For example, let's say the cells in column 1 have these entries...
    A1: blue, green, red
    A2: red, yellow green,
    A3: this is cool
    A4: green eyes
    A5: blue skies
    etc...

    I want a formula in column 2 that is something along these lines:
    If cell A1 contains 'blue' then display 'awesome'

    Thanks
    Last edited by anon; 12-23-2010 at 11:46 PM.

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

    Re: How do I search for a character in column 1 and display another character in colu

    Try:

    =IF(Isnumber(search("blue",A1)),"awesome","")
    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
    12-23-2010
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: How do I search for a character in column 1 and display another character in colu

    thanks so much!

  4. #4
    Registered User
    Join Date
    12-23-2010
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: How do I search for a character in column 1 and display another character in colu

    ok, new question.

    using the same example, how do i do something like this:

    if A1 has 'blue' display 'awesome', if A1 has 'green' display 'sweet', if A1 has 'blue' and 'green' display fantastic

    all in one cell?

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

    Re: How do I search for a character in column 1 and display another character in colu

    Try:

    Please Login or Register  to view this content.

+ 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