Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing color of max or min value in a column

Status
Not open for further replies.

utoyo

Technical User
Mar 5, 2005
123
US
I'm not sure if there is an easier way than in VB to do this so please point me in the direction if VB isn't necessary.

I'd like to change the color (or highlight) the max value and/or the minimum value in a column in excel. For example, if you have a column with test results in it, the max value (score) might have the font color changed to green and the min value changed to red. How would I go about doing this?

Thank you in advance.
 
No need for VBA. Have a look at Conditional Formatting in Excel's help file.

Let's say that your totals are in A. Then the formula to find the MAX would simply be:
[tab]=Max(A:A)
And to fine the MIN,
[tab]=Min(A:A)

Good luck and g'night! (nearly 2AM here)

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top