+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Mutiple conditional formatting based on a drop down menu

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Mutiple conditional formatting based on a drop down menu

    Hi there,

    I am no expert in Excel and there must be a really simple solution to my problem.

    Basically, I have a drop down menu with 2 options. Depending on which option is selected I need a set of conditional formatting rules to apply to a separate cell.
    So in this separate cell I will have a numerical value which needs to be assigned a colour based not only on its numerical value but also which option is selected in the drop down menu.

    I hope that makes sense
    Last edited by lolweb; 02-11-2011 at 08:42 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mutiple conditional formatting based on a drop down menu

    Select Use a formula to determine which cells to format and then use a formula like:

    =AND($A1=choice,$B1=your_numeric_condition)

    where A1 contains the drop down and choice represents the option picked... and B1 is the cell you are colouring with the number and your_numeric_condition is the condition to apply to that number.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-09-2011
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mutiple conditional formatting based on a drop down menu

    Thank you for responding so quickly!

    So if I want the numerical value in B1 to appear green if it is below 600 and blue if it is above 600...what would the formula be?

    =AND($A1=choice,$B1=???)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mutiple conditional formatting based on a drop down menu

    You need to split that into 2 conditions.

    For Green:

    =AND($A1="choice",$B1>600)

    notice that if the choice made in A1 is a text string you need to put it in quotes...

    then you add new rule and use formula

    =AND($A1="choice",$B1<600) and choose Blue.

    Note: What if B1 is equal to 600... you can change either of the above to include 600 by adding an equal to the > or < , e.g $B1>=600 or $B1<=600

  5. #5
    Registered User
    Join Date
    02-09-2011
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mutiple conditional formatting based on a drop down menu

    Works perfectly! Thank you so much

+ 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