
Tips.Net > ExcelTips Home > Formatting > Conditional Formatting > Conditional Formatting
Summary: A few ways to use conditional formatting on cells in your Excel worksheet. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
Excel includes a powerful feature that allows you to dynamically change the formatting of individual cells based on the results being displayed in that cell. For instance, you could make the text in the cell larger and red if a result is less than a certain threshold. Likewise, you could color the background of a cell based on the result of a formula.
To take advantage of conditional formatting, follow these steps:
If you are using Excel 95 you don't have access to conditional formatting. You can, however, create your own custom formats for cells so that you can change at least the text color of a result if it falls outside a specific bound. For example, let's say you wanted to have your result appear in red text if it is less than 100. You could do this in the following manner:
You should note that this approach is a quick solution for conditional formatting using custom number formats, and that there is much more to successfully applying such formats. You can find out more by referring to Excel's on-line help system, which does a pretty good job discussing custom number formats. You can also use custom number formats like this not just in Excel 95, but in all subsequent versions of Excel, as well.
It is possible to get very creative with conditional formatting. However, it is not the answer to every formatting need. If you want to be even more creative (you know--bordering on outlandish), you can always develop a macro that will examine all the cells in your sheet or a specific range of cells you select and then change formatting in any way you wish.
Tip #2665 applies to Microsoft Excel versions: 97 2000 2002 2003
Got the Time? If you work with either times or dates in Excel, you really need ExcelTips: Times and Dates. Everything you need to know about slicing, dicing, and generally working with times and dates.
Have thousands of ExcelTips at your fingertips, on your own system. Answer your own questions or help support others. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site