Sub topic 12
Borders, Fill Colors, and Alternating Colors
Assume you can select ranges, enter data, and use the Google Sheets toolbar. This chapter focuses on visual structure. Borders and colors change how a sheet looks; they do not change the stored values or formulas.
Use borders to show structure
A border is a line around or between cells. Select a range, then use the Borders button in the toolbar. Choose an option such as:
- All borders to outline every cell in the range.
- Outer borders to frame the entire range.
- Inner borders to separate cells without adding an outside frame.
- Top, bottom, left, or right border to emphasize one edge.
- Border color and Border style to change the line’s appearance.
For a table, use a heavier bottom border below the header and light inner borders for the body. Applying heavy borders to every cell often makes a large sheet difficult to scan.
Use fill colors to emphasize meaning
A fill color is the background color of a cell. Select the cells, open Fill color, and choose a color. Use fills to distinguish roles, not to decorate every cell.
For example:
- Use a dark fill and light text for a table header.
- Use a pale fill for input cells.
- Use a different pale fill for calculated cells.
- Use one strong color for warnings or totals.
Check contrast before sharing the sheet. Text should remain easy to read, and color should not be the only way to communicate meaning. A label such as “Overdue” is useful for people who cannot distinguish the chosen colors.
Apply alternating colors to a table
Alternating colors, also called banded rows, apply different fills to neighboring rows. They make it easier to follow a row across many columns.
- Select the table range, including its header if it has one.
- Choose Format > Alternating colors.
- In the sidebar, choose a preset or set custom colors.
- Turn Header or Footer options on when they match your table.
- Select Done.
Sheets stores the alternating-color formatting separately from the values. Adding rows inside the formatted range usually keeps the pattern, but rows pasted from another location may bring their own formatting.
| Tool | Best use | Common mistake |
|---|---|---|
| Borders | Showing table edges and totals | Using heavy lines everywhere |
| Fill color | Marking roles or important cells | Giving colors no consistent meaning |
| Alternating colors | Reading wide tables row by row | Applying banding to unrelated areas |
Common errors and corrections
If colors appear inconsistent, inspect whether individual cells have direct formatting that overrides the table style. Select the range and use Format > Clear formatting, then apply the intended style again. Clearing formatting also removes number formats, so verify dates and currencies afterward.
If a banded table does not include new rows, reopen Format > Alternating colors and expand the range. Avoid overlapping alternating-color ranges because their boundaries can be confusing.
Exercise
You have a 20-column sales table. You want the header separated from the data, input cells marked clearly, and rows easy to follow. Which formatting choices should you use?
Show answer
Apply a distinct fill and a heavier bottom border to the header, use a pale consistent fill for input cells, and apply alternating colors to the table body or whole table. Check that the colors have enough contrast.