Sub topic 3
Borders, fill colors, and alternating colors
This chapter assumes you can open a Google Sheet, select cells and ranges, and enter values. You should also understand relative references such as B2.
Borders and fill colors
Select a range, then use the Borders button in the toolbar to draw lines around cells. The Fill color button sets the background. Both change appearance only. The stored values stay the same.
Number, date, and currency formats
A number format changes how a value displays. The cell still holds 1234.5. Use Format > Number to pick a currency or date style, or enter a custom format such as this one, which shows 1234.5 as $1,234.50:
$#,##0.00Basic formulas and cell references
A formula starts with an equals sign. A relative reference such as B2 shifts when you copy the formula down. An absolute reference such as $E$1 stays fixed.
=SUM(B2:B10)
=B2*$E$1Highlighting cells with conditional formatting
Conditional formatting applies a fill or font when a rule is true. Choose Format > Conditional formatting, select "Custom formula is", and enter a formula relative to the top-left cell of the range. Applied to A2:C100, this rule highlights each row where column C exceeds 100:
=$C2>100Alternating colors
Format > Alternating colors applies banded row fills automatically. It stays in place as rows are added.
Controlling input with data validation
Data validation restricts what a user can enter. To accept only numbers in B2:B100, use a custom formula:
=ISNUMBER(B2)Dropdown lists and checkboxes are set under Data > Data validation.
Cleaning and reshaping entered data
TRIM removes extra spaces around text, so =TRIM(A2) returns a clean value. SPLIT divides text at a delimiter, so =SPLIT(A2,",") spreads each piece into its own cell across the row. Remove duplicates under Data > Data cleanup.
Exercise
Column C holds sales amounts, and you want to highlight each row in A2:C100 where C is above 100. Which custom formula do you enter in the conditional formatting rule?
Show answer
=$C2>100. The dollar sign before C fixes the column, and the row number stays relative so each row is checked against its own value.