+ Reply to Thread
Results 1 to 4 of 4

Coloring a cell depending of a value in other cell

  1. #1
    Registered User
    Join Date
    02-14-2006
    Posts
    75

    Coloring a cell depending of a value in other cell

    Hi all easy question:

    i have, in cell A1 a value of 50, in B1 i want colorin ghte cell of RED color if the value in A1 is 50, something like this:

    (in B1) = IF(A1=50, colorB1Cell_of_red)


    any advices how to do it?

    thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Coloring a cell depending of a value in other cell

    You would want to use conditional formatting. You didn't update your profile so I don't know what version of Excel you're using and can't tell you how to access conditional formatting.

    The end result would be (in this simplist example)
    Select B1 go to conditional formatting> use formula
    =$A1=50 format as red
    Hope that helps.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-14-2006
    Posts
    75

    Re: Coloring a cell depending of a value in other cell

    Hi thanks for answer, i use Office 2007

    i want coloring a cell witha formula (not formating depnding of a value, it need be manually)..... is possible coloring the cell automatically?


    thanks

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Coloring a cell depending of a value in other cell

    You can do this with conditional formatting.

    Here are the steps if you're using Excel 2007...

    Select cell B1

    Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule>Use a formula to determine which cells to format

    Enter this formula in the box below:

    =A1=50

    Click the Format button
    Select the desired style(s)
    OK out
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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