+ Reply to Thread
Results 1 to 4 of 4

conditional formatting question

  1. #1
    Registered User
    Join Date
    08-30-2006
    Posts
    12

    Exclamation conditional formatting question

    Is there a way to get conditional formatting to recognize more than 3 criterias (ex. =A then Blue, =b then green, =c then red, =d then yellow)

  2. #2
    Registered User
    Join Date
    08-25-2006
    Posts
    3

    You can have four conditions if done correctly.

    See Below


    This article was adapted from MrExcel.com. Visit the MrExcel.com Web site for more tips and information.


    Conditional formatting in Excel allows for three conditions. However, by setting up conditions correctly — from least to most restrictive — you can really allow for four conditions, when the default formatting of the cell is considered. For example, say you want to add color to your data like so:

    If cell value is Fill with
    Less than or equal to -25 Red
    Between 0 and -25 Yellow
    Between 0 and 25 Green
    Over 25 Black

    This can be achieved by doing the following:

    Select your range of cells.
    Click Conditional Formatting on the Format menu.
    Under Condition 1, in the first two boxes, choose Cell Value Is and less than or equal to. Then type the value -25 in the third box.
    Now click the Format button, choose a red fill color from the Patterns tab, and then click OK.
    Click Add. Under Condition 2, choose between in the second box, type the values to 0 and -25 in the third and fourth boxes, and then choose a yellow fill format.
    Click Add again. Under Condition 3, choose between in the second box, type the values to 0 and 25 in the third and fourth boxes, and then choose a green fill format.
    Click OK to close the Conditional Formatting dialog box.
    Finally, while your range is still highlighted, choose a black fill from the color palette.
    Your range is now pseudo-conditionally formatted to cover all four cases.

    See Also
    Add, change, or remove conditional formats

    Find cells that have conditional formats

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by rwethington
    Is there a way to get conditional formatting to recognize more than 3 criterias (ex. =A then Blue, =b then green, =c then red, =d then yellow)
    select the range you want to apply conditional formating on and colout it Blue
    then apply conditional formating for three conditions i-e if =B then green, =C then red, =D then yellow.

    Regards.

  4. #4
    Registered User
    Join Date
    08-30-2006
    Posts
    12

    Thumbs up thanks...but

    what if there is five conditions to color say grass(left white),foundation(blue), framing(yellow),drywall(orange) and sod(green)

+ 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