Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 7 of 7

Thread: Macro to highlight highest numbers in a column

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    I hope somebody can help me with this macro.
    I need to highlight the highest numbers (value) in a specific column. I would like the highest numbers to be highlited in red.

    Also not sure whether this is possible but how can I have the highest 3 numbers highlited in red, the next three in blue and lets say the next three ones in green.

    Thanks

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,657
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-11 13:28, ggrund wrote:
    Hi,

    I hope somebody can help me with this macro.
    I need to highlight the highest numbers (value) in a specific column. I would like the highest numbers to be highlited in red.

    Also not sure whether this is possible but how can I have the highest 3 numbers highlited in red, the next three in blue and lets say the next three ones in green.

    Thanks
    You could use condidtional formatting instead.

    Lets say that A9:A17 is the range of interest.

    Select the range.
    Activate Format|Conditional Formatting.
    Choose 'Formula Is' for condition 1.
    Enter in the formula box:

    =OR(A9=LARGE($A$9:$A$17,1),A9=LARGE($A$9:$A$17,2),A9=LARGE($A$9:$A$17,3))

    Activate Format.
    Choose a color for the first set of 3 highest numbers on the Patterns tab.
    Click OK.
    Activate Add.
    Choose 'Formula is' for Condition 2.
    Enter as formula:

    =OR(A9=LARGE($A$9:$A$17,4),A9=LARGE($A$9:$A$17,5),A9=LARGE($A$9:$A$17,6))

    Activate Format.
    Choose a color for the next set of 3 highest numbers on the Patterns tab.
    Click OK.

    Now I leave to you the formatting of the 3rd set of highest numbers.



    [ This Message was edited by: Aladin Akyurek on 2002-03-11 13:56 ]

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    I forgot to say that I'm using Excel v.7 (95). Is the "conditional formating" tool available in this version of Excel? as I'm not able to find it.

    Thanks

  4. #4
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,657
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-11 13:51, ggrund wrote:
    Hi,

    I forgot to say that I'm using Excel v.7 (95). Is the "conditional formating" tool available in this version of Excel? as I'm not able to find it.

    Thanks
    It is under Format.

  5. #5
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-11 13:51, ggrund wrote:
    Hi,

    I forgot to say that I'm using Excel v.7 (95). Is the "conditional formating" tool available in this version of Excel? as I'm not able to find it.

    Thanks
    Conditional formatting was first introduced with Excel 97. If you're using Excel 95 it's not supported.

  6. #6
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,657
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-03-11 14:27, Mark W. wrote:
    On 2002-03-11 13:51, ggrund wrote:
    Hi,

    I forgot to say that I'm using Excel v.7 (95). Is the "conditional formating" tool available in this version of Excel? as I'm not able to find it.

    Thanks
    Conditional formatting was first introduced with Excel 97. If you're using Excel 95 it's not supported.
    Wow. I didn't know that.

    ggrund will need to upgrade or maybe ask for VBA.

  7. #7
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Wow. I didn't know that.

    ggrund will need to upgrade or maybe ask for VBA.
    Yeah, it's in that handy little Help Contents topic, "What's new in Microsoft Excel 97?" which can be found under "Key information" and "If you are upgrading from a previous version of Microsoft Excel".

    [ This Message was edited by: Mark W. on 2002-03-11 14:43 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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