Format Cells Dialog
When a change needs several settings at once, the Format Cells dialog combines them for a selected cell range: number display, alignment, font, border, fill and protection in six collapsible sections. The examples use the numeric Revenue, Cost and Profit cells of the sales workbook.
Open the Dialog
Select the cells first, then open the dialog in one of two ways:
- A group launcher on the Home tab. Opened through the launcher of the Number, Font or Alignment group, the dialog opens the matching section.
- The Format Cells command of the cell context menu.
Your changes are a draft until you choose OK. Cancel discards the draft. Open a section to edit it; the previous section closes automatically. The fixed dialog frame keeps its header, actions and Live Preview in place while the active settings scroll. The preview combines the draft appearance with a separate Formatted Value readout.
Important
Mixed Selections. A selection whose cells have different existing settings may show a mixed state. Change the settings you intend to apply rather than assuming that every cell started out identical.
Number: Control the Displayed Value

| Control | What it changes |
|---|---|
| Category | General, numeric, accounting and currency, dates and times, percentages and other supported display families |
| Live Preview and Formatted Value | The selected cell's draft appearance and formatted display |
| Decimal Places | The precision the chosen format displays |
| Currency Symbol | The symbol a currency or accounting format uses |
| Locale (Location) | Locale-sensitive display conventions, or the workbook default |
| Use Thousands Separator | Digit grouping for supported numeric categories |
| Negative Numbers | The available presentations with a sign, parentheses or color |
| Custom | An explicit supported Excel-style number-format code |
For the first sales record, the stored Revenue is 30000. Currency, USD and zero decimal places display $30,000. The underlying value stays numeric and remains usable by SUM. In the same way, Percentage displays 0.15 as 15%. Formatting a text string does not convert it into a typed number or date.
For dates, use the workbook's date system and a suitable date format. A display code such as dd.mm.yyyy changes the presentation; it does not reinterpret every text value as a German date.
Alignment: Position and Fit the Content

Choose Horizontal, Vertical and Indent in Text Alignment. Under Orientation, set Degrees or enable Vertical Text. The right Live Preview shows the resulting alignment and orientation together with the draft font and fill; there is no separate orientation sample. Then decide how long content should fit:
- Wrap Text allows multiple lines.
- Shrink to Fit reduces the displayed text size to fit the available space.
- Orientation settings rotate text or arrange it vertically.
Merging makes one display area from several cells, and the upper-left cell supplies the merged content. For a product description, wrapping is usually preferable to merging the cells of a data table, because the rows and columns keep their independent structure.
Warning
Values in Merged Cells. If the covered cells contain values, review the confirmation before you discard them.
Font: Format All Selected Cell Text

Choose a family and a size, apply emphasis such as bold or italic and set the font color. The preview helps you compare the draft with the existing appearance. These settings apply to the selected cells. To format only part of the text within a cell, use rich-text editing instead.
Font availability comes from the font catalog your application configures. When the output must match, deploy the same permitted faces for browser and PDF rendering.
Border: Describe the Cell Edges

Choose Border Line Style and Border Line Color on the left, then click an edge in the right Live Preview to add or remove that border. The same preview retains the draft text, alignment, orientation, font and fill. None, Outline and Inside provide common edge combinations. A border outlines cells without changing their values or merging them.
For a total row, a top border can separate the total from the detail records. Check inside versus outside edges when you format a whole range: an outside border surrounds the range, while inside borders separate its cells.
Fill: Set the Background and Pattern

Use a fill to identify headers, user-input cells or totals, and choose a suitable contrast with the font color. A base fill remains the cell's direct formatting even if a conditional rule temporarily supplies a different effective appearance.
Choose Pattern Style for diagonal, horizontal, vertical, grid, crosshatch or gray patterns. Pattern Color controls the marks; Background Color controls the color underneath. Choose None to remove the pattern while retaining the background. The Live Preview shows both colors together.
For mixed selections, changing only the pattern style retains each cell's pattern color. Changing only the pattern color retains each existing pattern type. Settings you leave unchanged keep their original values. OK applies the draft in one undoable operation; Cancel discards it.
Table styles and named cell styles can also contribute formatting. When a later edit changes a shared style, cells with direct overrides may retain those overrides. Decide whether a one-off change or a reusable style fits the report better.
Protection: Describe Protected-Cell Behavior

Locked and Hide Formulas describe how the cells behave when worksheet protection is enabled. For example:
- Leave the formula cells locked.
- Unlock the cells intended for input.
- Enable the protection of the worksheet with the commands of the Review tab.
Hidden formulas and encrypted files are different features. Changing this section alone does not enable sheet protection. Review the allowed operations and confirm that the intended data-entry cells remain usable.
Apply and Verify
Choose OK, inspect a representative cell and confirm that the format is appropriate for the whole selection. Use Undo if the result is not what you intended. Check a PDF export when borders, wrapping, fonts or page width affect the finished report.
Next Steps
- Formatting and Number Display: format ranges and number display in code.
- Dates and Locales: combine date values, the date system, format codes and locales.
- Font Handling: keep the fonts of the browser and the PDF output consistent.
- Custom Fonts: deploy extra fonts as licensed application resources.
- Worksheet Protection: protect worksheets and keep the input cells of a form usable.