Autoformatting, themes, and conditional formatting
Autoformatting cells and sheets
You can use the AutoFormat feature to quickly apply a set of cell formats to a sheet or a selected cell range.
- Select the cells, including the column and row headers, that you want to format.
- Choose Format > AutoFormat.
- To select which properties (number format, font, alignment, borders, pattern, autofit width and height) to include in an AutoFormat, click More. Select or deselect the required options.
- Click OK.
If you do not see any change in color of the cell contents, choose View > Value Highlighting from the menu bar.
Defining a new AutoFormat
You can define a new AutoFormat that is available to all spreadsheets.
- Format a sheet.
- Choose Edit > Select All.
- Choose Format > AutoFormat. The Add button is now active.
- Click Add.
- In the Name box of the Add AutoFormat dialog, type a meaningful name for the new format.
- Click OK to save. The new format is now available in the Format list in the AutoFormat dialog.
Formatting spreadsheets using themes
Calc comes with a predefined set of formatting themes that you can apply to your spreadsheets.
It is not possible to add themes to Calc, and they cannot be modified. However, you can modify their styles after you apply them to a spreadsheet.
To apply a theme to a spreadsheet:
- Click the Choose Themes icon in the Tools toolbar. If this toolbar is not visible, you can show it using View > Toolbars > Tools. The Theme Selection dialog appears. This dialog lists the available themes for the whole spreadsheet, and the Styles and Formatting window lists the custom styles for specific cells.
- In the Theme Selection dialog, select the theme that you want to apply to the spreadsheet. As soon as you select a theme, some of the properties of the custom styles are applied to the open spreadsheet and are immediately visible.
- Click OK. If you wish, you can now go to the Styles and Formatting window to modify specific styles. These modifications do not change the theme; they only change the appearance of this specific spreadsheet document.
Using conditional formatting
You can set up cell formats to change depending on conditions that you specify. For example, in a table of numbers, you can show all the values above the average in green and all those below the average in red.
|To apply conditional formatting, AutoCalculate must be enabled. Choose Tools > Cell Contents > AutoCalculate.|
Conditional formatting depends upon the use of styles. If you are not familiar with styles, please refer to Chapter 4. An easy way to set up the required styles is to format a cell the way you want it and click the New Style from Selection icon in the Styles and Formatting window.
After the styles are set up, here is how to use them.
- In your spreadsheet, select the cells to which you want to apply conditional formatting.
- Choose Format > Conditional Formatting from the menu bar.
- On the Conditional Formatting dialog, enter the conditions. Click OK to save. The selected cells are now formatted in the relevant style.
Cell value is / Formula is
Specifies whether conditional formatting is dependent on a cell value or on a formula. If you select cell value is, the Cell Value Condition box is displayed, as shown in the example. Here you can choose from conditions including less than, greater than, between, and others.
Enter a reference, value, or formula in the parameter field, or in both parameter fields if you have selected a condition that requires two parameters. You can also enter formulas containing relative references.
Choose the cell style to be applied if the specified condition matches. The style must have been defined previously.
See the Help for more information and examples of use.
To apply the same conditional formatting later to other cells:
- Select one of the cells that has been assigned conditional formatting.
- Copy the cell to the clipboard.
- Select the cells that are to receive this same formatting.
- Choose Edit > Paste Special.
- On the Paste Special dialog, in the Selection area, select only the Formats option. Make sure all other options are not selected. Click OK.
|Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).|