+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting Based on Another Cell's Text

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditional Formatting Based on Another Cell's Text

    Hi everyone,

    I am trying to italicize a cell (B7) based on if the letter S is anywhere in C7.

    I have already tried the formula $C$7="*S*", but this doesn't work.

    Does anyone know how to do this?

    Thanks!

  2. #2
    Registered User
    Join Date
    06-14-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Excel 2013
    Posts
    48

    Re: Conditional Formatting Based on Another Cell's Text

    Try this:

    Please Login or Register  to view this content.
    <--- Please click the star to say thank you

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Conditional Formatting Based on Another Cell's Text

    no need to put the entire IF condition:

    =isnumber(find("s",$c$7))

    would do it...
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    06-14-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Excel 2013
    Posts
    48

    Re: Conditional Formatting Based on Another Cell's Text

    Yes that's much neater, however it won't work for a capital "S". If that's an issue then...

    =ISNUMBER(FIND("s",LOWER($C$7))

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

    Re: Conditional Formatting Based on Another Cell's Text

    if you want the search not to be case sensitive, use SEARCH()

    =isnumber(search("s",$c$7))
    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.

  6. #6
    Registered User
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Conditional Formatting Based on Another Cell's Text

    Thanks everyone! All of your formulas worked!

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

    Re: Conditional Formatting Based on Another Cell's Text

    if you want the search not to be case sensitive, use SEARCH()

    =isnumber(search("s",$c$7))

+ 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