Macro to highlight highest numbers in a column

ggrund

New Member
Joined
Mar 10, 2002
Messages
2
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
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,521
Messages
6,114,109
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top