TechRepublic : A ZDNet Tech Community

Microsoft Office

Host: Susan Harkins
Contact

Use a formula to trigger Excel's Conditional Formatting feature

If you maintain inventory in an Excel worksheet, you probably need to know when stock runs low so you can reorder. Fortunately, you can let Excel warn you when an item is running low by applying a conditional format. You’ll need at least two values: the current inventory and the reorder level.The simple worksheet (below) tracks the current inventory for three items and each item has a reorder amount. There are at least three ways Excel can alert you when inventory is running low for each item:

  • Highlight Current Inventory when it is less than the Reorder Level.
  • Highlight Item when Current Inventory is less than the Reorder Level.
  • Highlight the entire row when Current Inventory is less than the Reorder Level.

january2009blog1fig1.jpg

To highlight Current Inventory, do the following:

  1. Select cell B2 and choose Conditional Formatting from the Format menu. When applying this to your own worksheet, select the first value in the column (not the column’s label text).
  2. In the resulting dialog box, choose Formula Is from the first control’s dropdown list.
  3. Next, enter the following formula, =B2<=C2. In other words, when the value in B2 is less than or equal to the value in C2, apply the format.
  4. Click the Format button and select red from the Patterns tab, and click OK.

    january2009blog1fig2.jpg

  5. Click OK to close the Conditional Formatting dialog box.

    january2009blog1fig3.jpg

  6. With cell B2 still selected, click Format Painter.
  7. Select cells B3..B4 to apply the conditional format to the remaining items.

When the current inventory dips below (or is equal to) the reorder amount, Excel highlights that cell. With a quick glance, you can determine which items to order.

january2009blog1fig4.jpg

To highlight Item instead of Current Inventory, simply select cell A2 in step 1. You can highlight the entire row by selecting the entire row (A2..C2) in step 1. In step 3, enter the formula =$B2<=$C2. Then, in step 9, be sure to select the entire rows (A3..C4) when copying the conditional format.

january2009blog1fig5.jpg

january2009blog1fig6.jpg

Print/View all Posts Comments on this blog

USEFUL TOOL johns@... | 01/06/09
Great tip....in use kgunnIT | 01/07/09
More Conditions for Formats mike.mcburney@... | 01/07/09
helpful kgunnIT | 01/26/09
Conditional formatting plus the IF function mmoran@... | 01/06/09
Streamline your process with "IF" mike.mcburney@... | 01/07/09
Nice! mmoran@... | 01/07/09
Can you expand the logic j.j.lynn@... | 01/07/09
Logic Expanded - More Info Required mike.mcburney@... | 01/07/09
Logic Expanded - More Info j.j.lynn@... | 01/07/09
Answer to Conditional Question mike.mcburney@... | 01/07/09
Very Nice! j.j.lynn@... | 01/07/09
RE: Use a formula to trigger Excel's Conditional Formatting feature eli.spitz@... | 01/07/09
Great tip liljim@... | 01/07/09
What are you trying to do? ssharkins@... | 01/07/09
If Relative Macro - Yes (See Contents) mike.mcburney@... | 01/07/09
RE: Use a formula to trigger Excel's Conditional Formatting feature raymond.mccormick@... | 01/07/09
Excel 2000 - Different Colors for Different Ranges mike.mcburney@... | 01/07/09
Excel 2000 - Different Colors for Different Ranges raymond.mccormick@... | 01/08/09
Conditional Formatting Colors j.j.lynn@... | 01/07/09
RE: Use a formula to trigger Excel's Conditional Formatting feature dba88 | 01/07/09
Excel 2007 Cond Format vincent.mcavoy@... | 01/07/09
RE: Use a formula to trigger Excel's Conditional Formatting feature ray2000t@... | 01/09/09
Clarification Needed mike.mcburney@... | 01/09/09
RE: Use a formula to trigger Excel's Conditional Formatting feature cerVantage | 01/09/09
RE: Use a formula to trigger Excel's Conditional Formatting feature john_r_l@... | 01/20/09
RE: Use a formula to trigger Excel's Conditional Formatting feature Lost4now | 01/24/09
Blinking Text mike.mcburney@... | 02/17/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

SmartPlanet

Click Here