Consulting

Results 1 to 2 of 2

Thread: conditonal formatting

  1. #1
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    165
    Location

    conditonal formatting

    Hi

    Is there a way to add a formula to conditional formatting to that the greatest in a cell is in Green and the least value is in red................

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Assuming that you want to get the MAX and MIN value in A1:A100, select A1:A100, and

    Goto Menu Format>Conditional Formatting
    Change Condition 1 to Formula Is
    Add a formula of
    =A1=MAX(A1:A100)
    Click the Format button
    Select the Palette Tab
    Select Red from the Color palette
    OK
    Click the Add>> button
    Change Condition 2 to Formula Is
    Add a formula of
    =A1=MIN(A1:A100)
    Click the Format button
    Select the Palette Tab
    Select Greenfrom the Color palette
    OK
    OK
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •