In this chapter
Creating In-Cell Bar Charts with Data Bars 155
Creating Heat Maps with Color Scales 158
Using Stop if True to Improve All Conditional Formatting 164
Using the Top/Bottom Rules 166
Using the Highlight Cells Rules 168
Tweaking Rules with Advanced Formatting 174
Clearing Conditional Formats 186
Extending the Reach of Conditional Formats 187
Special Considerations for Tables 187
Special Considerations for Pivot Tables 188
Many people feel their eyes glaze over when they encounter a screen full of numbers. Fortunately, Microsoft has added terrific new data visualization features to Excel 2007 that make those screens full of numbers a little easier on the eyes.
Excel has had a weak conditional formatting feature for a decade. It was limited and tricky to use. Excel tipsters often showed the incredibly hard way to make conditional formatting just a bit more powerful.
In Excel 2007, Microsoft has made data visualization easy to use. You are just a few clicks away from features that would have required a Ph.D. in past versions of Excel. The following are some of the new possibilities in data visualization:
The following are some of the improved data visualization features in Excel 2007:
When you use conditional formatting in a defined table, you have the option of highlighting the entire row if a cell in the row meets the condition.
Although it is very easy to set up basic conditional formatting, you need to know a few tricks, which I tell you about later in this chapter, for creating better conditional formatting than most people will figure out on their own.
A data bar is a semitransparent swath of color that starts at the left edge of a cell. The smallest numbers in a formatted range have just a tiny bit of color in the cell. The largest numbers in the formatted range are 90% filled with color. This creates a visual effect that enables you to visually pick out the larger and smaller values.
Creating data bars requires just a few clicks. You follow these steps:
The result is a swath of color in each cell in the selection, as shown in Figure 9.1.
The data bar demonstrates a significant improvement over conditional formatting in Excel 2003. In prior versions, conditional formatting would assign a color based on a simple true/false test. In Excel 2007, the conditional formatting is a comparison between a set of cells.
By default, Excel assigns the largest data bar to the cell with the largest value and the smallest data bar to the cell with the smallest value. You can customize this behavior by following these steps:
There are two Type drop-downs: Shortest Bar and Longest Bar. These drop-downs offer choices for Lowest Value and Highest Value, Number, Percent, Formula, or Percentile. These are completely explained below.
Sometimes, your data might have a few outliers. This happens with any dataset. Say that 99% of your customers are over $1,000 in sales, but a couple stray accounts have sales of just a few dollars. Microsoft gives you explicit control over the cell value that gets the smallest bar.
For example, consider Column A in Figure 9.4. The values are basically in the 1000 to 2000 range. However, one outlier value of 10 forces Excel to assign a medium-sized data bar to the 1000 value in Cell A1.
For the numbers in Column D, the steps in the preceding section were used to edit the rule. In this case, you can set the Shortest Bar Type drop-down to 1000. Excel then treats any value of 1000 as the value with the shortest bar. Any value less than 1000 is given the same size bar as the 1000 bar.
Here are the rules for each of the Type options:
The one frustrating feature with data bars is that you cannot reverse the size of the data bars. Although in some scenarios such as top 100 rankings the lowest score might deserve the largest bar, there is no way to make this happen with a data bar. If you need to do this, you should consider using color scales instead.
Color scales are similar to data bars. Instead of a variable-size bar in each cell, however, the color scale uses gradients of two or three different colors to communicate the relative size of each cell. Here’s how you apply color scales:
In a default color scale with a three-color scale, the smallest cells are assigned a value of red. The middle values are assigned a value of yellow. The largest cells are assigned a value of green. Even within the green values, the larger numbers are more green than the other numbers.
In Figure 9.5, values from 50 through 80 are various shades of green. Values such as 50 are a light yellow-green, and values of 80 are dark green.
As you can see from the black-and-white screen images in this book, color scales with three colors do not look that good when printed on a monochromatic printer. When you know you’ll be printing in black and white, one option is to convert the color scale to a monochromatic scale that will vary from white to a dark color. To do so, you follow these steps:
Excel 2007 considers a three-color scale and a two-color scale to be completely different visualizations. This leads to some erratic behavior when you attempt to change the color scale pattern by using the Color Scale icon on the Conditional Formatting drop-down.
Say that you use the icon to apply a three-color red-yellow-green visualization. You decide to go back to the icon and instead apply a three-color blue-yellow-red visualization. Excel 2007 is smart enough to convert the red-yellow-green pattern to blue-yellow-red. This behavior is logical enough.
However, say that you decide to choose a visualization from the second row of color scales—perhaps the green-to-yellow visualization. Even though this is accessed on the same fly-out menu, Excel 2007 considers the two-color scale to be a different visualization. Instead of replacing the visualization, Excel adds a second rule. This can lead to muting of the colors from both rules.
To avoid this problem, when switching from two-color to three-color scales, be sure to use the Manage Rules choice at the bottom of the Conditional Formatting menu in order to convert from a three-color to a two-color scale.
The final type of new conditional formatting is called an icon set. Icon sets were popular with expensive management reporting software in the late 1990s. They’ve now been added to Excel. An icon set might include green, yellow, and red traffic lights, or another set of icons to show positive, neutral, and negative meanings. Excel can automatically apply an icon to a cell based on the relative size of the value in the cell compared to other values in the range.
Initially, icon sets look like they will be cool. However, there are a few limitations that will make them annoying in Excel 2007. I suspect that the implementation of icon sets will improve greatly in future versions of Excel.
Excel 2007 ships with icon sets that contain either three, four, or five different icons. The icons are always left-justified in the cell. Excel applies rules to add an icon to every cell in the range:
Samples of the 16 available icon sets are shown in Figure 9.8.
Given that icon sets are in their first Excel incarnation, they require a bit more thought than the other data visualization offerings. Before you use icon sets, you should consider whether they will be printed in monochrome or displayed in color on the screen. Several of the 16 icon sets rely on color for differentiation and will look horrible in a black-and-white report.
After creating several reports with icon sets, I have started to favor the power bar indicators made popular by cell phones. They look good in both color and black and white. These icons are available in either four-icon or five-icon sets. To set up an icon set, you follow these steps:
In Figure 9.10, the icon set has been applied to a rectangular range of data. The icons are always left-justified. There is no way to center them. And there is no way to have an icon appear to the right of the value. This was an oversight on the part of the Excel team. In Figure 9.10, the icons for Column I appear to apply to the numbers in Column H.
One way to mitigate this problem is to center all the numbers in the range. This at least puts the value and the icon closer together. Rows 12 through 16 of Figure 9.10 show this solution.
Choosing left-justified is unsatisfactory. The numbers are completely hidden by the icon set, as shown in Rows 20 through 24 of Figure 9.10.
A better solution is to left-justify the numbers and then click the increase indent button twice. Rows 28 through 32 show this solution.
In Figure 9.11, the values in the cells track reject rates for several manufacturing lines. The icon set offers green check marks, yellow exclamation points, and red X icons.
In the default view of the data, Excel always assumes that higher numbers are better. This is not the case in this situation, where higher reject rates are bad.
Unlike with color scales or data bars, with icon sets, you can reverse the order. To do so, you follow these steps:
The icon order is reversed, as shown in Figure 9.12.
The data visualizations described so far in this chapter cause every cell in the range to receive color, icons, or data bars. This is somewhat limiting. What if you just want an icon on the really bad cells? What if you only want a color scale on the top 20% of records? How can you do this? The process is unintuitive, but it is easy to set up. Basically, you apply the icon set or color scale to the entire range. Then, you add a new conditional format—a very boring format—to all the cells that you don’t want to have the icon. For example, you might tell Excel to use a white background on all cells with values less than 5. The final important step is to manage the rules and tell Excel to stop processing more rules if the first rule is met. This requires a bit of cleverness. If you want to apply icons to cells with values over 10, you first tell Excel to make all the cells under 10 look like every other cell in Excel. Turning on Stop if True is the key to getting Excel to not apply icons to cells with values under 10.
Figure 9.13 shows a useful visualization in which only reject rates of 10% or above receive a red icon. All the other cells have no icons.
In Figure 9.13, the goal is to have a red X appear on any cell that contains a value of 10 or above. You can use the following steps to create an analysis similar to this:
Although this seems like an intimidating set of instructions, the Conditional Formatting Rules Manager dialog and the Edit Formatting Rule dialog are intuitive to navigate, and you can complete this process quickly.
The top/bottom rules are a mix of the old- and new-style conditional formatting. They are similar to the old conditional formatting because you must select one formatting scheme to apply to all the cells that meet the rule. However, they are new because rather than specifying a particular number limit, you can ask for any of these conditions:
To set up any of these conditional formatting rules, you follow these steps:
The dialog for above/below average does not require you to select a threshold value, but for the other four rule types, Excel asks you to enter the value for N. As you change the spin button, the Live Preview feature keeps updating the selection with the appropriate number of highlighted cells.
Excel adds the rule to the list of rules. By default, rules added most recently are applied first.
The traditional conditional formatting rules appear in the Highlight Cells Rules menu item of the Conditional Formatting drop-down, along with several new rules. The traditional rules include Greater Than, Less Than, Between, and Equal To. Note that slightly obscure rules such as Greater Than or Equal To are hidden behind the More Rules option. The following are the new rules:
The options for Highlight Cell Rules are shown in Figure 9.16.
You might think that Greater Than and the similar rules for Less Than, Equal To, or Not Equal To are some of the less powerful conditional formatting rules. In fact, these are the first rules described in this chapter that you can use to base the conditional format threshold on a particular cell or cells. This allows you to build some fairly complex rules without having to resort to the formula option of conditional formatting.
To set up a rule to highlight values greater than a threshold, you follow these steps:
By way of example, let’s look at several options for filling in the threshold value in the Greater Than dialog box. Figure 9.17 shows the conditional formatting rule for all cells greater than 700. This is a simple threshold value.
If you use the reference icon at the right side of the threshold box, you can select a particular cell. In Figure 9.18, Cell B2 was selected using the reference box. Note that Excel filled in the correct format of =$B$2
.
The fact that Excel used an equals sign is a good indication that you can fill in any formula in the Greater Than box. Furthermore, you can achieve some interesting effects by using cell references that are not absolute references.
The trick here is to pay attention to which cell is the active cell in the name box. To select the range B2:C22, you might click in C22 and drag up to B2. This would leave the active cell as C22. Or, you might click in B2 and drag down to C22. This would leave the active cell as B2. Conditional formatting formulas should always be built assuming that the top-left cell of the selection is the active cell.
You can use the following steps to create a conditional formatting rule to highlight any cell in Column C where the value is greater than 110% of the corresponding value in Column B:
=$B$2
.=$B2
. This allows Excel to compare each cell to the value in B, but it allows the row to change for each cell. The key point here is that your active cell is in Row 2 of Column C, so the cell referred to must also be in Row 2.=$B2
. Notice that in the lower-left corner of your screen, the indicator says Point. This is a very frustrating state. If you start to type and make a mistake, using any arrow key will insert new cell addresses instead of backspacing. Before you start typing the rest of the formula, press the F2 key until the status changes from Point to Edit.*1.1
, as shown in Figure 9.19.
Excel highlights all the cells in Column C that are 110% of Column B or greater.
The greater-than concepts discussed here apply equally well to the Less Than, Equal to, and Between rules. If you need to access other rules, such as Greater Than or Equal To, you can follow these steps:
The date feature is new in Excel 2007. If you are familiar with the reporting engine in Quicken or QuickBooks, the list of available dates will seem similar. A nice feature is that Excel understands the dates conceptually. If you define a feature to highlight dates from last week, the rule automatically updates based on the system clock. If you open the workbook a month from now, new dates are formatted, based on the conditional formatting.
Some of the date selections are self-explanatory, such as Yesterday, Today, and Tomorrow. Other items need some explanation:
Figure 9.21 shows the various formatting options, with a system date of May 14, 2007.
The date formatting option would be particularly good for highlighting the items in a to-do list that are due, overdue, or about to be due. You can follow these steps to set up a conditional format for maintenance due dates:
This set of rules highlights items due today in green. Anything that is past due in the past 6 days is highlighted in red. Future items from this week are highlighted in yellow.
Conditional formatting can mark either duplicate or unique values in a list of values. It seems that Microsoft missed an opportunity to include a different version of unique values than the one that it included. It would be very useful if they had included an option to mark only the first occurrence of each unique item.
In Column A of Figure 9.22, Excel has marked the duplicate values. Both Adam and Bill appear twice in the list, and Excel has marked both occurrences of the values. You might be tempted to sort by color to bring the red-fonted cells to the top, but you will still have to carefully go through to delete one of each pair.
In Column C of Figure 9.22, Excel has applied a conditional format to the unique values in the list. In Excel parlance, this means that Excel marks the items that appear only once in a list. If you would keep just the marked cells as a list of the unique names in the list, you would effectively miss any name that was duplicated.
In a perfect world, this feature would have the logic to include one of each name in the conditional format. You would end up with C3, C4, C5, and C8 highlighted. In the current implementation, you have to write a complex COUNTIF
equation to mark the unique values.
The Text That Contains formatting rule is designed to search text cells for cells that contain a certain value.
Figure 9.23 contains a column of cells. Each cell in the column contains a complete address, with street, city, state, and zip. It would normally be fairly difficult to find all the records for a particular state. However, this is easy to do with conditional formatting. You simply follow these steps:
As with the Find dialog box, you are allowed to use wildcard characters. You can use an asterisk (*
) to indicate any number of characters, and you can use a question mark (?
) to indicate a single character.
All the formats available from icons on the Conditional Formatting group are referred to as quick formatting. According to legend, the Excel team bought a number of Excel books, and if the author spent a page trying to explain a convoluted way to format something using formulas in conditional formatting, then that option became a quick formatting icon.
Every quick formatting item has an option at the bottom called More Rules. When you click this option and get to the New Formatting Rule dialog, you find that there are options available that didn’t make it as quick formatting icons.
The next section of this chapter discusses using the formula option for conditional formatting. Almost anything is possible by using the formula option, but it is harder to use than the quick formatting icons. If Excel offers a built-in, advanced option, you should certainly use it instead of trying to build a formula to do the same thing.
The lists shown in Tables 9.1 and 9.2 are organized to show all the options for specific rule types. The six rule types are in the top of the New Formatting Rule dialog. Items listed in the right column are advanced options that are only available by clicking More Rules.
Excel has three dozen quick conditional formatting rules and twice as many advanced conditional formatting rules. What if you need to build a conditional format that is not covered in the quick or advanced rules? As long as you can build a logical formula to describe the condition, you can build your own conditional formatting rule based on a formula.
Some basic tips can help you successfully use formulas in conditional formatting rules. When you understand these rules, you can build just about any rule you can imagine.
One new feature in Excel 2007 is that a formula is allowed to refer to cells on another worksheet. This allows you to compare cells on one worksheet to a worksheet from a previous month or to use a VLOOKUP
table on another worksheet.
To set up a conditional format based on a rule, you follow these steps:
The following section give you some tips for building a successful formula.
Following are the key concepts involved in writing a successful formula:
TRUE
or FALSE
. The numeric equivalents of 1
and 0
are also acceptable results.The following sections describe several useful conditional formatting rules. This list only scratches the surface of the possible rules you can build. It is designed to generate ideas of what you can accomplish by using conditional formatting.
The quick formatting feature offers to highlight yesterday or today or tomorrow, but what if you need to find any cells that are either yesterday, today, or tomorrow?
There are a couple ways to approach this formula. Each way uses the TODAY()
function, which returns the date from the system clock.
The first formula is to write several tests to see if the selected cell is equal to various values, as follows:
=TODAY()=B4
highlights values from today.=B4=(TODAY()-1)
highlights values from yesterday.=B4=(TODAY()+1)
highlights values from tomorrow.To write a formula that highlights cells that have any of these three, you have to combine the three things in the OR()
function, like this:
=OR(TODAY()=B4, B4=(TODAY()-1), B4=(TODAY()+1))
Instead of using this formula, you could instead write a formula that subtracts the cell from the TODAY()
function. In the preceding three scenarios, the result of TODAY()-B4
would be either -1
, 0
, or 1
.
To simplify the formula, you could use the ABS()
absolute value function to convert the result to a positive number and then see if the result is less than two.
In Figure 9.25, the formula =ABS(TODAY()-B4)<2
highlights the dates that are within one day of today. Note in this figure that the active cell is B4; hence, the use of B4 in the formula. You can generalize this formula by changing the 2. If you used 8 instead of 2, you would highlight everything within plus or minus one week of today.
In the A Date Occurring dialog, there is an option to display the last seven days. There is no corresponding feature to display the next seven days.
In Figure 9.26, the active cell is D4. The following would be the formula to find everything in the next seven days:
=D4-TODAY()<=7
However, this would highlight everything in the past as well as items in the next week. To limit the rule to only items that are after today, you would use the following:
=D4>TODAY()
To combine these two rules into a single formula, you would use this:
=AND(D4>TODAY(),(D4-TODAY())<=7)
To generalize this formula, you could change the 7
to any number of days.
The Excel quick formatting option offers to highlight this month or last month. However, highlighting this month or last month can mean a number of vastly different things. Highlighting this month on the second of the month shows a lot of the future and only 1 day of the past. The same rule on the 29th of the month highlights a lot of the past and only a few days of the future. It would be more predictable to write a rule that shows the past 30 days.
You create this rule similarly to the way you created the Next Seven Days rule in the preceding section. You first compare the date in the cell by using TODAY()
to make sure the date in the cell is less than today. Because the active cell in Figure 9.27 is F4, you use the following formula:
=F4<TODAY()
You then can subtract F4 from TODAY()
to see if it is less than or equal to 30
. This portion of the formula is as follows:
=(TODAY()-F4)<=30)
To combine these into a single formula, you use the AND()
function:
=AND(F4<TODAY(),(TODAY()-F4)<=30)
To generalize this formula for other periods, such as the past 15 days or the past 45 days, you change the 30
to a different number.
The WEEKDAY()
function converts a date to a number from 1 through 7. When used without any additional arguments, the value of WEEKDAY(
date
)
for a Sunday is 0
and Saturday is 7
.
In Figure 9.28, the active cell is H4. If you needed to highlight all the Wednesdays, you could check to see if WEEKDAY(H4)=4
. To find all the Fridays, you would check to see if WEEKDAY(H4)=6
. To find either date, you would use =OR(WEEKDAY(H4)=4,WEEKDAY(H4)=6)
.
WEEKDAY()
. This formula is a bit complex to highlight dates that are either Wednesday or Friday.To generalize this formula, you could substitute any number from 1 through 7 to highlight Sundays, Mondays, and so on.
Excel offers two quick conditions for highlighting either duplicates or unique items. However, neither of them do what you really need. Ideally, you would want a rule that highlights the first unique item in a list. Then, all the highlighted items would make up the unique items in the list. Or, you might want a rule that highlights the second, third, and fourth instance of a duplicated item but not the first item.
You can use the COUNTIF
function coupled with a very strange range argument to solve this problem: =COUNTIF(A2:A10,A2)
counts how many times A2 occurs in the range A2:A10. You want Excel to count the occurrence of each cell in all the cells above and including the current cell. In Cell A10, this formula would be =COUNTIF(A$2:A10,A10)
. If the value is 1
, then you know this is the first occurrence of the value in A10. If the value is greater than 1
, then this value is a duplicate of a value already in the list.
It is easier to picture the formula for the 10th row of the range than for the 1st row of the range. However, the formula remains relatively the same.
In Figure 9.29, the active cell is A2. To highlight the first unique value and not highlight the duplicates, the formula in the conditional formatting formula needs to be =COUNTIF(A$2:A2,A2)=1
. The really important element of this formula is the one single dollar sign before one portion of A2 in the first argument of the formula.
The Excel quick conditional formatting rule for duplicates highlights all cells that are duplicated. This is great if you need to manually inspect each pair of duplicates and decide which record to keep. However, if you just want to blindly keep the first occurrence from each duplicate, you need a way to highlight the second and subsequent duplicates in the range.
This example is nearly identical to the previous example: You can edit that formula to check whether COUNTIF
is greater than 1
instead of equal to 1
.
In Figure 9.30, the active cell is A2. The conditional formatting formula needs to be =COUNTIF(A$2:A2,A2)>1
.
If you use the new table feature in Excel 2007, highlighting an entire row is simple: The Edit Rule dialog offers an option to highlight the entire row.
However, if you do not want to use the table feature in Excel, you can still highlight the entire row, based on the value in one column of the row.
In Figure 9.31, cell A2 is the active cell. You need to select the entire range of A2:G14. Your goal is to write a rule for all of those cells that will look at Column D for the same row as the cell. In this case and in any case in which you want to highlight the entire row based on one column, you use the mixed reference with a dollar sign before the column letter. You want to see if =$D2
is equal to the largest value in the range.
To find the largest value in Column D, you use an absolute reference to D2:D14—that is, =MAX($D$2:$D$14)
. The conditional formatting formula for this specific case is =$D2=MAX($D$2:$D$14)
.
To change this rule to highlight the smallest value in Column D, you change MAX
to MIN
.
To base the test on another column, you simply change D
to the other column in three places in the formula.
Clearly, using the Excel 2007 table feature and the Format Entire Row check box is easier than using the formula. The formula is shown here for cases in which you are prevented from using or don’t want to use the table feature.
You might find yourself using the Format as Table feature only to add alternating bands of color to a table. If you don’t need the other table features, using a conditional format can achieve the same effect.
Do you remember when you were first learning to do division? You would express the quotient as an integer and then a remainder. For example, 9 divided by 2 is 4 with a remainder of 1, sometimes written as 4R1.
The trick to formatting every other row is to check the remainder of the row number after dividing by 2. Excel has functions that make this easy. First, =ROW(A2)
returns the row number of the given cell. Next, =MOD(ROW(A2),2)
divides the row number by 2 and tells you the remainder. The task is then simply to highlight the rows where the remainder is equal to 1.
In Figure 9.32, the active cell is A2. The formula to achieve the banding effect is =MOD(ROW(A2),2)=0
.
To generalize this formula for your particular dataset, you could change A2 to be the active cell’s address.
The Excel 2007 table formatting allows you to create alternate formatting where every other two rows are formatted. To duplicate this with conditional formatting, you have to divide the row number by 4 and examine the remainder. There are four possible remainders; 0, 1, 2, and 3. You can either look for results greater than 1 or less than 2 to be formatted. To do this, you change the preceding formula to =MOD(ROW(A2),4)<2
, as shown in Figure 9.33.
MOD
function, you can create different banding effects.A major improvement in conditional formatting in Excel 2007 is the ability to have multiple conditions evaluate to TRUE
. In prior versions of Excel, when a condition was met, Excel quit evaluating additional conditions. For each rule in Excel 2007, you can decide whether Excel should stop evaluating additional rules or whether Excel can continue evaluating rules.
For example, one rule might set the font color to blue. Another rule might set the font style to bold. Cells meeting both rules can be formatted in blue bold. Cells meeting one rule can be either blue or bold. Cells meeting neither rule will be in normal font style.
If two rules attempt to create conflicting formatting, Excel uses the first rule in the list. For example, if Rule 1 turns the font red and Rule 7 turns the font blue, the font is red.
There are 10 types of formatting that can be changed in each cell. Naturally, each type conflicts with others of the same type. Only the first rule that evaluates to TRUE
can change the fill color.
Very few formatting styles conflict with each other. Only the cell fill and the color scale are mutually exclusive. Otherwise, you can have up to nine rules evaluate to true for any given cell. Table 9.3 illustrates the interplay between the 10 formatting styles.
There are a number of ways to clear conditional formats. A few quick options are available from the ribbon:
Note
Deleting columns or deleting rows deletes the rules associated with those columns or rows. Using the Delete key on the keyboard or selecting Home, Editing, Clear, All or Home, Editing, Clear, Formats removes the rules.
If you have multiple rules assigned to a range and you need to delete just a portion of those rules, you can use Home, Styles, Conditional Formatting, Manage Rules. In the Conditional Formatting Rules Manager dialog, you should use the top drop-down to display rules in the current selection, this worksheet, or any other worksheet. You can then highlight a specific rule and click the Delete Rule button.
In every example in this chapter, you have been advised to highlight the entire range before setting up the conditional format. It is also possible to assign a conditional format to one cell and then extend the rule to other cells. There are two ways to copy a conditional format:
When you are using conditional formats that compare one cell to the entire range, using the second method is safer to ensure that Excel understands your intention.
The next three chapters discuss pivot tables in detail. This section talks about the special conditional formatting options that are available for pivot tables.
A typical pivot table contains two or more levels of summary data. In the pivot table in Figure 9.34, for example, Cells G4:I22 contain sales data. However, data in Column I contains the sum of sales for two different products. If you tried to create a data bar for this entire range, the values in Column I would make the data bars in the G:H range look too small. Similarly, the totals in Rows 4, 10, 16, and 22 would cause the data bars in the detail rows to appear too small.
To set up a data bar for the detail items in a pivot table, you follow these steps:
• Selected Cells—You can apply the rule to just the one cell. This is not what you want in this case.
• All cells showing “Sum of Sales” values—You can apply the rule to cells including the total column, grand total row, and all the subtotal rows. Remember that the size of the grand total causes all the detail items to have data bars that are too small.
• All cells showing “Sum of Sales” values for “Customer” and “Product”—This is the option you use most of the time. The meaning of this option is dependent on careful selection of a detail cell in step 1. If you selected a subtotal row instead, this option would apply the data bars only to the subtotal rows.
Your actual words in the second and third options vary, depending on the fields displayed in your pivot table. For successful pivot table formatting, choose the third option.
For more details about pivot tables, see Chapters 10, “Using Pivot Tables to Analyze Data,” through 12, “Using Pivot Tables in Practice.”
3.149.25.163