+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting multiple values

  1. #1
    Forum Contributor spinkung's Avatar
    Join Date
    10-27-2006
    Posts
    199

    Conditional Formatting multiple values

    hi all,

    i have a key that has 4 values (MR, PT, CC, HC) each of which have a different colour.

    each of my rows will have one of these values (selected by validation list). what i want is to automatically change the colour based on the selected value to the colour in the key?? is this possible through conditional formatting, i.e. if cell value "MR" then colour (green), if cell value "PT" then colour (blue) etc..

    i'm trying to avoid vba if poss.

    thanks, spin.

  2. #2
    Registered User
    Join Date
    03-16-2009
    Location
    London, UK
    MS-Off Ver
    Excel 16.78 on Mac - Office 365.
    Posts
    80

    Re: Conditional Formatting multiple values

    In Excel 2007 select your row (the area you want to be coloured based on the value of one cell on that row), then go to Home - Conditional formatting. Go to New Rule - Use a formula to determine which cells to format. Then use the formula

    =$A1="MR"
    and set the format to colour green

    This is assuming the value to evaluate is in the first column

    Check that this works, then repeat for your other colours.

  3. #3
    Forum Contributor spinkung's Avatar
    Join Date
    10-27-2006
    Posts
    199

    Re: Conditional Formatting multiple values

    thanks deemo,

    never realised you could have multiple conditions on a single cell

+ 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