+ Reply to Thread
Results 1 to 6 of 6

Change conditional format (color) of a cell based on another celll (Excel 2010)

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    VA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Change conditional format (color) of a cell based on another celll (Excel 2010)

    My spreadsheet contains 3 columns. A - Number, B - Number, C - User Input (either left blank or "X"). I can conditionally format column B based on if B>20 (fills it red). I want to change the color to green if there is an X in the C cell next to it.

    Example:

    A B C
    1 12-0011212 21
    2 12-0015212 30 X
    3 12-0015881 15


    In the example, B1 would be filled Red
    B2 would be filled Green
    B3 would be no fill

    Thanks!

    Richard

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Change conditional format (color) of a cell based on another celll (Excel 2010)

    you need two conditions, the first one is the one you have, which i am guessing looks something like this
    =IF($B1>20,"TRUE","FALSE") and copied down for all of the cells that you are looking at.

    Then you need to check the box next to that condition that says stop if true

    Then create a new condition that says this
    =IF($C1="X","TRUE","FALSE") and you can copy the conditional formatting to all cells that you need it on
    Regards,
    amotto

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Change conditional format (color) of a cell based on another celll (Excel 2010)

    Here is a sample spreadsheet that i have created for you, i have the formatting going down to B20 but you can do whatever you want in the manage formatting menu.
    Attached Files Attached Files

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Change conditional format (color) of a cell based on another celll (Excel 2010)

    Hi ffnptown

    The number in B, is it number in this form: 12-0011212 21
    If so what part are you referring to being >20

    If it is the left part you can conditional format using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If it is the right part you can conditional format using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or is is it the middle part!

    For column C:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    VA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Change conditional format (color) of a cell based on another celll (Excel 2010)

    Thanks for all the help. Amoto11's formula did the trick. I was going about it the wrong way, actually making it harder than it was. Kevin, my example was all scrambled up, but A was the 12-##### and B was the 2 digit numbers beside it. Next time all just attach a sample worksheet Thanks again for all the answers.

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

    Re: Change conditional format (color) of a cell based on another celll (Excel 2010)

    @ffnptown just a reminder.

    You can mark your thread "Solved" if ever you are satisfied with a given solution.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    *****You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    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

+ 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