Spreadsheet 123 Excel 2003/XP/2000/97: Highlight highest and lowest

Excel: Automatically highlight highest and lowest values in a range of
cells in Excel 2003/XP/2000/97


Question:  In Excel 2003/XP/2000/97, is there a way to shade one cell green if it is the highest value in a range of cells, and to shade another cell red if it is the lowest number in a range of cells?


Answer:  Yes, you can use conditional formatting to highlight the highest and lowest values in a range of cells.


First highlight the range of cells. In this example, we've selected cells A1 through A5.
Under the Format menu, select Conditional Formatting.




When the Conditional Formatting window appears, select "equal to" in the second drop down. Then enter the following formula:



=Max($A$1:$A$5)



Then click on the Format button.




When the Format Cells window appears, select the Patterns tab. Then select the color that you'd like to see for the highest value in the range. In this example, we've selected light green. Then click on the OK button.




When you return to the Conditional Formatting window, you should see the following. Next, click on the Add button.




For Condition2, select "equal to" in the second drop down. Then enter the following formula:



=Min($A$1:$A$5)



Then click on the Format button.



When the Format Cells window appears, select the Patterns tab. Then select the color that you'd like to see for the lowest value in the range. In this example, we've selected red. Then click on the OK button.




Your Conditional Formatting window should now look like this:




Click on the OK button.


Now when you return to the spreadsheet, the conditional formatting will be applied.


As you can see, the -3 value appears in a red cell while the 200 value appears in a light green cell.


Suggested Reading

Spreadsheet News



Forum


Meet advanced users of MS Excel and Spreadsheet and do not be shy to ask your question.


Book Shop


Visit our busy book shop, were you can find latest books for beginners as well as advanced users of excel and similar programs.



Software Library




Excel & Spreadsheet Online Tutorials




Spreadsheet123
Home | About Us | Our Services | Software | Spreadsheets Library | Excel Tutorials | Useful Links | Site Map | Contact Us
Streamline.Net The home of good value web hosting
Home
About Us

Book Shop

Excel
Excel Tutorials
Financial Modeling
Excel Templates

Excel Tutorials

Excel Basic Tutorial
Excel Tech on Net
MS Excel Tutorials and Projects
MS Excel Spreadsheet Tutorial
How to Decide What Chart Type to Use
How To Merge Cells in Excel
Excel - Printing Effectively from Excel
Using Excel Functions and Creating Formulas

Spreadsheets Library

Corporate finance spreadsheets
Valuation Inputs Spreadsheets
Big-picture valuation spreadsheets
Focused valuation spreadsheets
Financial Service firms
Troubled firms
Private companies
Young and high-growth firms
Multiples
Valuation in Acquisitions
Valuation of other assets
Value Enhancement Spreadsheets
Basic option pricing models
Real option models in corporate finance
Real option models in valuation
Hotel & Restaurant Management Spreadsheets
Real Estate & Mortgage Excel Spreadsheets
Excel Personal Budget Spreadsheets
More Spreadsheets

Software Library

Accounting Software
Small Business Software
Tax Calculating Software
Auditing Software
Excel Add-Ins
Property Management Software
Payroll Software
Spreadsheet Software

Contact Us
Useful Links
Our Services
Site Map