Excel icon

Another take on Data Validation

To validate data entry and show error messages to your users in Excel, you can do a couple of things.

  1. Use traditional Data Validation (go to Data » Validation).
  2. Use event handlers in VBA.

Continue Reading: Another take on Data Validation »

Excel icon

A simple formula trick to visualize your errors

Here's a neat trick I use to make spotting worksheet errors very simple.

Wrap your formula in an IF statement that returns the letter "J" if True, or the letter "L" if False, and change the cell's font to Wingdings.

Continue Reading: A simple formula trick to visualize your errors »

Excel icon

Monitoring a range for changes

A co-worker of mine has a workbook with an inventory list in column D. He wants a way to highlight low inventory quantities, when the inventory for any particular item falls below a certain amount. At first I thought about conditional formatting, for example:

Continue Reading: Monitoring a range for changes »

Excel iconVBA icon

Quickly Clear Conditional Formatting

Here is a simple sub that deletes conditional formatting from a selection. The code does some prelim checking to see that it is actually acting on a range, and it mimics Excel's usual behavior (like a good VBA procedure should, if I may say so) by acting on the entire worksheet if you only select a single cell. However I recommend just selecting the range before you run the code.

Continue Reading: Quickly Clear Conditional Formatting »

Site last updated: February 9, 2012