+ Reply to Thread
Results 1 to 4 of 4

formula for auto colouring cell if containing certain word?

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2011
    Posts
    32

    Question formula for auto colouring cell if containing certain word?

    Is it possible to have a cell auto-colour itself if a certain word is present?

    Ex:
    If any B cell="sell", colour cell red, no colour

    My thought:
    =IF(B:B="sell",colour red, no colour)

    Obviously that would not work so I'm wondering if its even possible.
    Has anyone heard of this before?

    Thanks.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: formula for auto colouring cell if containing certain word?

    you are referring to conditional formatting...

    Use Format|Conditional Formatting
    Set the first box to "Cell value is equal to" follow steps.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2011
    Posts
    32

    Question Re: formula for auto colouring cell if containing certain word?

    Ok that worked. Now to expand on that.

    If a word in cell A1="sell", colour (A1,C1,D1) red, no colour
    So this is building a formula in the conditional formatting right?

    My best guess: Highlight column A,C,D
    =(A:A="sell")

    I would like this to work all the way down.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: formula for auto colouring cell if containing certain word?

    yup highlight A,C,D then formula

    =$A1="sell"

    if you you prefer that the word sell will be either the 3 columns A,C,D
    you can use the or

    =OR($A1="sell",$C1="sell",$D1="sell") -> so if the word sell is in C or D it will still highlight the rows A,C,D

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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