Formatting and Highlighting Data in a Workbook

Defining Table Format Rules

Objective

After completing this lesson, you will be able to define table formatting rules in the SAP Analytics Cloud, add-in for Microsoft Excel, by configuring cell styles, scope, and default formatting settings to maintain consistent visual styling as the table refreshes or changes its structure.

Why Table Formatting Matters

When you present data in a workbook, visual consistency is important. A well-formatted table makes figures easier to read and helps your audience focus on the right information. The SAP Analytics Cloud, add-in for Microsoft Excel, provides dedicated tools to control how your table looks - and how it behaves when you refresh your data or navigate a hierarchy.

A table format rule lets you apply a consistent visual style to a specific part of your table - for example, the header of a dimension, the member cells of a dimension, or the data cells associated with a specific member.

Unlike manual Microsoft Excel formatting, format rules created in the add-in are managed dynamically. They update automatically when the structure of your table changes, such as when you expand a hierarchy node or apply a new filter.

Note

This lesson focuses on table format rules. The SAP Analytics Cloud, add-in for Microsoft Excel, also provides Conditional Formatting, which dynamically highlights data based on value thresholds and conditions. You will explore this feature later in this course.

Adding the Table Format Rule

To create a table format rule, start by selecting a cell in your table. Once a cell is selected, choose Add Format in the Table Formatting section of the Styling tab.

The Apply Default Format checkbox is selected in the SAP Analytics Cloud table formatting panel.

Configuring the Table Formatting

The Add Format panel provides the following settings to configure a table format rule.

Styling tab is selected, with Table Formatting expanded and Add Format highlighted.

Complete the following fields:

  • Name

    Enter a unique name for the rule.

  • Cell Style

    Define the visual appearance of the cells.

  • Scope

    Finally, set the Scope to define exactly which cells the rule applies to. The Scope options depend on the type of cell you selected before opening the format rule dialog. When you select a dimension header cell, the following Scope options are available:

    • Dimension Header

      Formats only the selected header cell.

    • Dimension Header and Members

      Formats the selected header cell and all its member cells.

    • Dimension Members

      Formats only the member cells of that dimension.

    When you select a dimension member cell, the following Scope options are available:

    • Member

      Formats only the selected member cell.

    • Member Area

      Formats the selected member and the subordinated members of other dimensions on the same axis.

    • Member Area and Data

      Formats the selected member, the subordinated members on the same axis, and the associated data cells.

    • Data

      Formats only the data cells associated with the selected member.

Customizing Cell Styles in Microsoft Excel

The visual appearance of a cell style - its colors, font, and borders - is defined in Excel through Home→Styles. On the Excel desktop version, right-click any style in the gallery and choose Modify to change its definition. This option is not available in Excel for the web. If you need to customize cell styles, use the Excel desktop version to modify them, save the workbook, and then reopen it in the browser.

Excel Cell Styles options map to the SAP Analytics Cloud Add Format pane's required Cell Style dropdown.

Controlling the Default Format

When you insert a table in your workbook, the add-in automatically applies its built-in default format. This default format ensures that your numeric values display consistently and that the number format settings you define in the Number Format tab of the Designer panel remain active.

You can turn off this behavior using the Apply Default Format setting.

Apply Default Format checkbox is selected in the SAP Analytics Cloud table formatting panel

When you deselect this option:

  • The Number Format tab is no longer active for that table. You cannot define number formats there.

  • You can apply standard Microsoft Excel formatting directly to the table cells, including custom background colors, fonts, and borders.

  • Your Microsoft Excel formatting persists after a data refresh, as long as the structure of the table does not change.

  • If the structure of the table changes - for example, because you expand a hierarchy node or apply a new filter - the Microsoft Excel formatting may not be reapplied automatically to newly added rows or columns.

To restore the default format, select Apply Default Format again. The add-in reapplies its built-in formatting.

Disabling Apply Default Format is particularly useful when you build static reports or presentations where precise visual control over every cell is more important than dynamic navigation. For workbooks that are frequently refreshed or navigated, keeping the default format enabled ensures consistent formatting across all data states.

Preserving Cell Dimensions After Refresh

When you refresh a table, the add-in may reset your column widths and row heights to their default values. This can disrupt a carefully formatted layout - especially if you have manually adjusted cell dimensions to match your report design.

To prevent this, enable the Keep Cells Height/Width setting. When this option is active, the add-in preserves your column widths and row heights after each data refresh.

Summary

Let's summarize what you've learned:

  • Use table format rules to apply consistent styling that adapts to refreshed or expanded tables.

  • Select a table cell before adding a rule; the cell type determines available scope options.

  • Define rule appearance with Excel Cell Styles, which you can customize in Excel desktop.

  • Use Apply Default Format to control SAP default styling versus direct Microsoft Excel formatting.

  • Enable Keep Cells Height/Width to preserve column widths and row heights after refresh.