Lesson 4 / 1527%

Lesson 4

Cell Formatting

15 min

Number formats, fonts, borders and colors for readable tables.

Definition

Cell formatting refers to all the visual settings applied to a cell or a range of cells in a spreadsheet: number format, font, colors, borders, alignment, width and height. It only changes theappearance of the data, never its content or the value actually stored, and is used to make a table more readable, clearer and more professional.

Why formatting matters

A table of raw data, even a correct one, is often hard to read.Formatting (colors, borders, number formats) makes a table immediately understandable, highlights the important information, and gives your work a professional look. A good habit: think of formatting as a communication tool, not just decoration. Every color or style should help the reader understand faster, never distract them.

Imagine two tables containing exactly the same figures: in the first, everything is displayed haphazardly, with no thousands separator, with different decimals from one row to the next and no distinct header. In the second, the headers are bold, the amounts are aligned with their currency symbol, and the total row clearly stands out. The second one can be read in a few seconds, while the first takes concentration. That effort is precisely what formatting spares you, and everyone who will read your document.

Formatting also plays a role in preventing mistakes: a number displayed with the right number of decimals, a date in the right format or a clearly labeled column reduce misunderstandings and misinterpretations, especially when the file is shared with other people or opened several months later.

Example of a formatted Excel table

Cell format vs real value

An essential point to understand well: the number format never changes the value actually stored in the cell, only its display. A cell containing 0.5 displayed as a percentage will show "50%", but any formula that references it will keep calculating with 0.5, not with 50.

You can always check the real value of a cell by selecting it and looking at theformula bar above the sheet: it shows the exact content, without any formatting. This is a very useful habit when a result looks odd. The same principle applies to rounding: if you display a single decimal, Excel keeps storing and using all the decimals in its calculations. To really round a value, you need to use a function like ROUND, and not a simple display format.

format-vs-value.txt
Value actually stored: 0.5
"Percentage" format applied → display: 50%
Formula =A1*100 → result: 50 (because A1 really equals 0.5, not 50)
display-vs-rounding.txt
Value actually stored: 3.14159
"Number" format with 2 decimals → display: 3.14
Formula =A1*2 → result: 6.28318 (calculated with 3.14159, not with 3.14)
Formula =ROUND(A1,2) → stored value: 3.14 (real rounding)

Predefined number formats

The most common formats are found in the Home tab, "Number" group, either through the dropdown menu or through the shortcut icons. This group also contains buttons to quickly add or remove decimals, apply a percentage style or enable the thousands separator in a single click.

  • General — raw display of the number, with no particular formatting. This is the format applied by default to any new cell.
  • Number — lets you choose the number of decimals and the thousands separator, as well as how negative numbers are displayed.
  • Currency — automatically adds the currency symbol ($, €), placed according to your regional settings.
  • Accounting — a variant of currency that perfectly aligns symbols and decimals in a column, handy for financial tables.
  • Percentage — multiplies the displayed value by 100 and adds the % symbol.
  • Date / Time — several formats available (MM/DD/YYYY, long date, with or without time). Excel actually stores dates as numbers, which makes it possible to calculate durations.
  • Text — forces Excel to treat the content as text, even if it looks like a number. Essential for keeping the leading zeros of a postal code or a phone number.
  • Fraction / Scientific — more specialized formats, useful in engineering or scientific computing.

Font, colors and borders

The Home tab also lets you change the font, its size, its color, the background color of a cell and its borders, applied cell by cell or range by range.

To format several cells at once, start by selecting them: an entire range, a whole column by clicking its letter, or a whole row by clicking its number. Any setting applied afterwards extends to the entire selection, which avoids repeating the same operation cell by cell.

  • Bold / italic / underline — to emphasize headers or totals.
  • Font and size — choose a readable font and keep the same one throughout the table; reserve a slightly larger size for the title.
  • Font and fill color — to visually distinguish categories of data.
  • Borders — to clearly delimit a table or separate sections.
  • Alignment — horizontal (left/center/right) and vertical (top/middle/bottom), very useful for centered table headers.
  • Wrap Text — so that a long text displays on several lines inside a cell rather than overflowing.
  • Merge cells — useful for a title that must span several columns (to be used sparingly, because it can complicate sorting and filtering).

By convention, numbers are right-aligned (so it is easy to compare the units, tens and hundreds from one row to the next) and text is left-aligned. Excel applies this rule automatically: it is better to change it only for a good reason, for example to center a header.

Font, fill, border and alignment tools in the Excel Home tab

The full "Format Cells" window

The Ctrl + 1 shortcut opens the full formatting window, with detailed tabs: Number, Alignment, Font, Border, Fill, Protection. It is the place to know for any fine adjustment that isn't directly available through a ribbon icon.

  • Number — choice of format category, number of decimals, currency symbol and access to custom formats.
  • Alignment — text orientation, indent, wrap text, shrink to fit and merging cells.
  • Font — typeface, style, size, color, underline and effects such as strikethrough, superscript or subscript.
  • Border — line style, thickness and color, with a preview to choose precisely which sides of the cell are drawn.
  • Fill — background color, patterns and gradients.
  • Protection — locking or hiding cells, effective only when the sheet is protected.

The Format Painter

The Format Painter (the paintbrush icon in the Home tab) copies only the formatting of one cell to another, without copying its content. It is very handy for quickly applying the same style to several areas of the table. Double-clicking the painter keeps it active so you can apply the style to several ranges in a row, without having to click it again each time.

The procedure is simple: select the cell that has the formatting you want, click the painter, then select the cell or cells to modify. To turn off the painter after a double-click, press theEsc key or click its icon again.

Predefined cell styles

Rather than manually setting each property, Excel offers ready-to-usecell styles (Home > Cell Styles): "Good", "Bad", "Neutral", "Heading 1", "Total"... Applying a style guarantees immediate visual consistency across the whole workbook, and updates globally if you modify the style itself later.

You can also create your own styles: set up a cell exactly as you want it, then use "New Cell Style" to save it under a name. This approach is particularly effective in long documents or ones shared by a team, because it enforces a common visual identity without having to reproduce the settings by hand.

Custom number formats

For more specific needs, Excel lets you create a custom number format via "Format Cells > Custom". The syntax uses special symbols to represent each part of the number.

The 0 symbol forces a digit to be displayed at that position, even if it is a zero, whereas# only displays a digit if one exists. The semicolon; separates the sections of the format: first positive numbers, then negative ones, then zeros. A format can thus display each case differently.

custom-formats.txt
#,##0 €            → displays 12000 as "12,000 €"
0.0%               → displays 0.256 as "25.6%"
0000               → displays 42 as "0042"
dd/mm/yyyy         → displays a date as 05/09/2026 (day/month/year)
#,##0;[Red]-#,##0  → displays negative numbers in red
+0;-0;0            → displays a "+" in front of positive numbers

As with any number format, a custom format doesn't change the stored value: it only changes how it is presented. So you can experiment freely: the original data stays intact and you just need to go back to the "General" format to get it back exactly as it was.

Custom number formats in the Excel Format Cells window

Adjusting column width and row height

Double-clicking the right border of a column header automatically adjusts its width to the longest content. To set several columns to an identical width at once, select them all then right-click > "Column Width" to enter a precise value.

The same principle works for rows: double-clicking the bottom border of a row number adjusts its height to the content, which is particularly useful when automatic text wrapping is on. If you see a series of##### signs in a cell, it simply means the column is too narrow to display the number: widen it and the value reappears.

Common mistakes to avoid

A few pitfalls come up very often with beginners. Knowing them in advance will save you a lot of time.

  • Typing the symbol by hand — typing "$12" directly in a cell may work if the symbol matches your regional settings, but with another symbol or a spelled-out currency like "USD 12" the value often becomes text. Enter 12 instead and let the currency format add the symbol.
  • Confusing display and value — a number rounded on screen is not rounded in memory, which can give totals that look off by a cent.
  • Merging too many cells — merged cells block some sorts, filters and copies. For a simple title, prefer the "Center Across Selection" alignment in the Format Cells window.
  • Using too many colors — beyond three or four shades, the reader no longer knows what each one means.
  • Forgetting to select the whole range — formatting applied to a single cell creates visible inconsistencies in the column.

If a formatting no longer suits you, you can clear everything at once via Home > Clear > "Clear Formats": the content of the cells is kept, only their appearance returns to the original state. This is the fastest way to start over from a clean base before reapplying a consistent style.

Going further: conditional formatting

Conditional formatting (Home > Conditional Formatting) automatically applies a style to a cell depending on its value: for example, coloring negative amounts red, highlighting the 10 largest values, or displaying proportional data bars. Unlike manual formatting, it updates by itself when the data changes. We will come back to it in detail in a dedicated lesson.

Best practice

Keep it simple: two or three consistent colors, bold headers on a lightly colored background, and thin borders are generally enough to make a table very readable. Too many different colors hurt clarity rather than improve it. A professional table is often recognized more by its restraint than by its visual richness.

Also think about consistency: use the same format for all the values in a given column, the same color for the same category of information, and favor cell styles over repeated manual settings. Finally, remember that a black-and-white printout or a color-blind reader doesn't perceive colors the way you do: never rely on color alone to convey important information.

Practical exercise

Take your table from the previous lesson. Make the column headers bold with a colored background, apply a currency format to the "Price" column, and add borders around the whole table. Then, center the headers, automatically adjust the width of all the columns, and check in the formula bar that the real values of the "Price" column haven't been changed by the format.

Going further

Create a custom number format that automatically displays the € symbol after the number, with a thousands separator, without using the predefined "Currency" format. Then apply the predefined "Total" cell style to your last summary row, and use the Format Painter to copy the formatting of your headers to a second table. Finally, save your favorite formatting as a new custom cell style.