+ Reply to Thread
Results 1 to 17 of 17

Change cell color with different drop down values

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Change cell color with different drop down values

    I would like to have the cell color changed according to what value is chosen from a drop down menu. I guess you need to make some kind of rule with conditional formatting, but I haven't figured it out...

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    You quess correctly.

    One rule per eatch value.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Cool. So now I know it theory How would one go about doing this in practice?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    The theory is 90%. So now for the rest you have 2 options.

    1) Try in conditional formatting rules like that.

    =a1= "value1" >>color a

    =a1="value2"| >>color 2 etc....

    2)upload a small sample workbook..

  5. #5
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Thanks!

    So in the new formatting rule box I chose 'format only cells that contain' and I chose 'specific text' and then format the color. The thing is that the drop down menu pulls the values from a different sheet and when I chose different values it doesn't appear to take into account the formatting rule that has been made. And don't want to format each drop down menu because I'll be having a lot of them.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    .....and when I chose different values it doesn't appear ....
    Different values?...?

    Pls upload a small sample workbook. This will helps us to understand your query.

  7. #7
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Yes, here's the workbook.

    Two columns and I want the colors of the values in the left column to be shown when you choose a value from the drop-down menu.

    Appreciate the help.
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    Like this?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Thanks fotis!

    But it's not really what I'm looking for.

    Because in the real document you won't be able to see the value column as it will be in a different sheet and I want the cell within the drop down menu to take on the same color as I assign to the value.

    So When I choose A in the drop down menu I want that to become purple, for instance.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    What the meaning of showing to us a sample workbook that is something different than you real workbook is?

  11. #11
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Yes, this was an error on my part I realize now and the mistake is acknowledged for future reference.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Change cell color with different drop down values

    So Jonathan, if you still need help on this, pls upload a sample workbook that looks like exactly as your original, explaining the expected results.

  13. #13
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Alright, here's the 2nd try
    Attached Files Attached Files

  14. #14
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Change cell color with different drop down values

    In CF, just change the 'applies to' field to $B$2:$B$7 for all rules. See attached
    Attached Files Attached Files
    Last edited by Ace_XL; 06-17-2013 at 04:05 AM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  15. #15
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Change cell color with different drop down values

    CF down with new example
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  16. #16
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Change cell color with different drop down values

    Thanks very much for the help!

    Just wanted to clarify on thing then we can close this thread

    Where do I add the "applies to" cells?

    In sheet 2 we have the values the drop down pulls from - I'll highlight those cells and then select the cells in the drop down from sheet 1? Because that doesn't really work.

    When I select cells in a different sheet in the "applies to" the sheet 1 just disappear...

  17. #17
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Change cell color with different drop down values

    See attached. Hope this helps
    Attached Images Attached Images

+ 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