Sub topic 5
Resizing, Arranging Columns, and Applying Styles
This chapter assumes you can insert a slicer and select items in it, and that you know where contextual ribbon tabs appear. Here you will change how a slicer looks so it fits a report layout.
Where the formatting controls live
Click a slicer to select it. Excel then shows the Slicer tab on the ribbon (called Slicer Tools > Options in older versions). This tab has four groups:
- Slicer holds the caption and the Slicer Settings button.
- Slicer Styles holds the style gallery.
- Arrange holds Bring Forward, Send Backward, Selection Pane, and Align.
- Buttons holds Columns, Height, and Width for the buttons inside the slicer.
The Size group sets the height and width of the slicer window itself. The Buttons group sets the size of the buttons inside it. These are different settings, and mixing them up is a common source of confusion.
Resizing the slicer
You can resize a slicer in two ways:
- Drag a handle on its edge or corner.
- Type exact values in the Height and Width boxes of the Size group.
Typed values are better when several slicers must match. Select all of them with Ctrl+click, then enter one height and width. Excel applies the values to every selected slicer.
Arranging buttons in columns
A slicer with many items becomes a long vertical list that needs scrolling. The Columns box in the Buttons group spreads the items across several columns.
For example, a slicer for twelve months works well with 4 columns. The buttons then form a 3-row grid with no scrolling. After you change the column count, adjust the slicer width so the button text is not cut off. Use the Height and Width boxes in the Buttons group to control button size.
Applying a style
A style sets the colors of selected, unselected, and no-data buttons. To apply one:
- Select the slicer.
- Open the Slicer Styles gallery.
- Click a style.
The gallery has Light and Dark groups. Each style shows selected items in a strong color and unselected items in a muted one. Pick a style where that difference is easy to see, since the muted state shows which items are filtered out.
To make your own, right-click a style in the gallery and choose Duplicate. In the dialog, choose an element such as Selected Item with Data, click Format, and set the font, border, and fill. Custom styles are saved in the workbook. You can set a style as the default for new slicers in that workbook.
Moving and layering
Slicers float above the grid, so they can cover cells or each other. Use the Arrange group to fix this:
- Align lines up selected slicers by their left, top, or other edges.
- Selection Pane lists every slicer by name, so you can select a hidden one.
- Bring Forward and Send Backward change which slicer sits on top.
If you do not want a slicer to move when you resize rows or columns, open Format Slicer > Properties. Choose Move but don't size with cells or Don't move or size with cells.
Quick reference
| Goal | Control | Location |
|---|---|---|
| Change slicer window size | Height and Width | Size group |
| Spread items across a grid | Columns | Buttons group |
| Change button size | Height and Width | Buttons group |
| Change colors | Style gallery | Slicer Styles group |
| Line up several slicers | Align | Arrange group |
Exercise
A Month slicer shows twelve buttons in one long list, and the text on each button is cut off after you set the Columns box to 3. What two settings should you adjust, and where?
Show answer
Increase the slicer width in the Size group so each column has room, and increase the button Width in the Buttons group if the text is still clipped. Setting the column count changes only the layout, so the sizes must be adjusted separately.