MSBA-171 · Lesson 4 of 12 · 21 min
Formatting cells and ranges
▶ Video coming soon A video version of this lesson is on the way.
On the fourth Tuesday Rosalind brought in the quote sheet she sent to every new client. It worked, but it looked like a tax form: amounts with six decimals, a title squeezed into one narrow cell, dates in three different styles and a total in the same plain text as everything else. "Make it look like us," she said, and left. Dagny and Teo spent the session on two exam objectives that go together: manipulating data in worksheets and formatting cells and ranges.
Inserting and deleting cells, rows and columns
Before formatting, the quote sheet needed a new row for a service charge and a column for quantities. Right-click a row number and choose Insert to add a row above it, or a column letter to add a column to its left. Select several rows or columns first and Insert adds that many: select rows 8 to 10 and you get three new rows. Delete removes the selected rows or columns, and everything below or to the right moves up or left. The same commands are on the Home tab in the Cells group.
Inserting or deleting cells is different from inserting rows. Select a range such as C5:C7 and choose Insert > Insert Cells (or right-click > Insert). A dialog asks whether to Shift cells right or Shift cells down, or to insert an entire row or column. Delete offers Shift cells left and Shift cells up. Shifting only some cells can misalign a list, so it is rarely the right choice in real work, but the exam tests that you know the options.
Paste Special
Ordinary paste copies everything about the source: value, formula, formatting, comments and validation. Paste Special (Home > Paste arrow > Paste Special, or Ctrl+Alt+V) lets you choose. The Paste menu shows the common options as icons; the dialog has all of them:
| Option | What it pastes | Typical use |
|---|---|---|
| Values | Results only, no formulas | Freezing calculated prices so they no longer change |
| Formulas | Formulas, without formatting | Copying a calculation into a differently formatted sheet |
| Formats | Formatting only | Copying a look to another range |
| Column widths | Widths only | Matching a layout |
| Transpose | Rows become columns and columns rows | Turning a vertical list into headings |
| Operation: Add, Subtract, Multiply, Divide | Combines the copied value with the destination | Raising every price by the same amount |
| Skip blanks | Does not overwrite with empty source cells | Merging partial updates |
| Paste Link | A formula that refers to the source | Keeping a summary in step with a source cell |
Worked problem
Raising every rental price by five percent with Paste Special
The rental price list in D4:D30 holds typed values. Rosalind wants every price increased by five percent without adding a helper column.
Show solution
- Type 1.05 in an empty cell, such as G1, and copy it.
- Select D4:D30.
- Open Paste Special, choose Values under Paste and Multiply under Operation, and select OK.
- Delete G1.
Answer: Each price is multiplied by 1.05 in place. Choosing Values keeps the prices' existing formatting; choosing All would paste G1's formatting too.
Filling cells with Auto Fill
The fill handle is the small square at the lower right of a selected cell. Drag it to fill neighbouring cells, and Excel either copies the value or continues a pattern:
| Start with | Drag the fill handle and get |
|---|---|
| Monday | Tuesday, Wednesday, Thursday and so on |
| Jan | Feb, Mar, Apr |
| Week 1 | Week 2, Week 3 |
| 1 and 2 in two cells, both selected | 3, 4, 5 |
| A date such as 2026-09-01 | The following days |
| A formula | The formula copied with relative references adjusted (lesson 8) |
| A single number such as 100 | 100 copied; hold Ctrl while dragging to count 101, 102 instead |
When you release the handle, the Auto Fill Options button appears with choices such as Copy Cells, Fill Series, Fill Formatting Only, Fill Without Formatting and, for dates, Fill Weekdays, Fill Months and Fill Years. Double-clicking the fill handle fills down as far as the data in the next column extends, which is the fastest way to copy a formula down a long list. For exact control, Home > Editing > Fill > Series sets the step value, stop value and type (linear, growth, date) in a dialog. Teo used Fill Weekdays to build a list of planning days that skipped weekends.
Flash Fill (Data > Flash Fill, or Ctrl+E) is related: type one or two examples of a pattern next to your data, such as the first names taken from a full-name column, and Excel fills the rest by recognizing the pattern. The result is typed values, not formulas, so it does not update if the source changes.
Generating numbers: RANDBETWEEN and SEQUENCE
The exam lists two functions under manipulating data. RANDBETWEEN(bottom, top) returns a random whole number between two values and recalculates every time the sheet changes, so copy and Paste Values if you need the numbers to stay. SEQUENCE(rows, [columns], [start], [step]) returns a whole array of numbers that spills into neighbouring cells. Lesson 9 covers dynamic arrays more fully; for now, the two functions in action:
=RANDBETWEEN(1,40) a whole number from 1 to 40, new each recalculation
=SEQUENCE(10) 1 to 10 down one column
=SEQUENCE(4,3) 1 to 12 in four rows and three columns
=SEQUENCE(12,1,100,5) 100, 105, 110 ... twelve numbers down a columnDagny used RANDBETWEEN to make up practice guest counts for a training copy of the bookings sheet, then pasted them as values so they stopped changing. Teo used SEQUENCE to number the line items on the quote sheet automatically.
Alignment, orientation and indentation
The Alignment group on the Home tab controls where content sits in a cell. Horizontal alignment is Left, Center or Right; vertical alignment is Top, Middle or Bottom. Text is left-aligned and numbers are right-aligned by default, which is a useful clue when a number has come in as text. Increase Indent and Decrease Indent move content away from the cell edge, which Teo used to indent the sub-items under each package on the quote. Orientation rotates text: Angle Counterclockwise, Angle Clockwise, Vertical Text, Rotate Text Up, Rotate Text Down, and Format Cell Alignment for an exact angle. Narrow columns with long headings, such as the yes/no columns on a vendor checklist, read better with headings rotated up.
Wrap Text makes long text flow onto several lines within the cell and increases the row height to fit. To start a new line at a particular point inside a cell, press Alt+Enter while typing. Wrap Text is usually better than widening a column until a sentence fits.
Merging cells
The quote sheet's title, Maple & Pine Events Quotation, was in A1 but spilled across to F1. The Merge & Center menu has four commands:
| Command | Result |
|---|---|
| Merge & Center | Joins the selected cells into one and centres the content |
| Merge Across | Merges each row of the selection separately |
| Merge Cells | Joins the cells without changing alignment |
| Unmerge Cells | Splits a merged cell back into its original cells |
When you merge, only the upper-left cell's content is kept; Excel warns you if other cells hold data. Merged cells cause problems later: you cannot sort a range that contains merged cells of different sizes, selecting columns becomes awkward, and screen readers read them poorly. Dagny's preference for titles was Center Across Selection, found in Format Cells > Alignment > Horizontal. It looks the same as Merge & Center but leaves the cells separate. For the exam, use exactly what the task names; in your own workbooks, prefer Center Across Selection.
Number formats
A number format changes how a value looks, never the value itself. The Number group on the Home tab has a drop-down of the main formats and buttons for Accounting, Percent Style, Comma Style and Increase or Decrease Decimal. The formula bar always shows the stored value.
| Format | What it looks like | Notes |
|---|---|---|
| General | As typed | The default; no fixed decimals |
| Number | Fixed decimals, optional thousands separator | Choose how negatives appear |
| Currency | Symbol right next to the number | Good for single prices |
| Accounting | Symbol at the left edge of the cell, decimals lined up, zero shown as a dash | Good for columns of amounts and totals |
| Short Date and Long Date | Dates in the regional style, or spelled out | Dates are stored as serial numbers |
| Time | Hours and minutes | Times are stored as fractions of a day |
| Percentage | The value multiplied by 100 with a percent sign | Type 0.15 or 15 with the sign |
| Fraction, Scientific | Fractions or exponent notation | Rare in business sheets |
| Text | Exactly as typed, left aligned | For codes; numbers stored as text do not calculate |
The Format Cells dialog (Ctrl+1, or the Number group's launcher) holds every format with its options, and its Custom category lets you write a format code. MO-210 does not require custom formats, but recognizing a few codes helps you read other people's workbooks:
#,##0.00 1234.5 shows as 1,234.50
0.0% 0.125 shows as 12.5%
yyyy-mm-dd a date shows as 2026-11-17
ddd, mmm d a date shows as Tue, Nov 17
0000 42 shows as 0042
#,##0;(#,##0) -250 shows as (250)The Format Cells dialog has five other tabs. Alignment holds horizontal and vertical alignment, indent, orientation by degrees, Wrap text, Shrink to fit and Merge cells. Font holds font, style, size, underline styles, colour and effects such as strikethrough, superscript and subscript. Border draws lines on any edge or inside a range, with style and colour. Fill sets background colour or a pattern. Protection holds the Locked and Hidden settings, which take effect only when the sheet is protected.
For the quote sheet, Teo applied Accounting with two decimals to the amount column, a Long Date to the event date, and the Text format to the quote number column before typing codes such as 0042 so the leading zeros stayed. He used Percent Style for the deposit rate cell and Increase Decimal once so it showed one decimal place.
Cell styles
A cell style is a named combination of number format, font, alignment, border, fill and protection, like a paragraph style in Word. Home > Styles > Cell Styles shows the gallery: Good, Bad and Neutral; Data and Model (Calculation, Check Cell, Input, Output, Note, Warning Text and others); Titles and Headings (Title, Heading 1 to 4, Total); Themed cell styles (Accent1 to Accent6 at various tints); and Number Format styles (Comma, Currency, Percent and their variants). Point to a style to preview it and click to apply it.
Styles use the workbook's theme colours and fonts (Page Layout > Themes), so changing the theme changes every styled cell at once. To change a style everywhere, right-click it in the gallery and choose Modify. New Cell Style creates your own. Rosalind's brand colours were a deep green and a warm gold, so Dagny set the theme colours to match and applied Title to the heading, Heading 4 to the column headings, Input to the cells a client could change and Total to the final row. The quote finally looked like Maple & Pine.
Format Painter and clearing formats
Format Painter (Home > Clipboard) copies formatting from one place to another. Select the formatted cell, click Format Painter, then click or drag over the target. Double-click Format Painter to keep it on for several targets, and press Esc to turn it off. It copies number formats, fonts, fills, borders, alignment and conditional formatting.
To remove formatting, use Home > Editing > Clear. The menu distinguishes Clear All (contents, formats, comments and notes), Clear Formats, Clear Contents (the Delete key does this), Clear Comments and Notes and Clear Hyperlinks. Clear Formats returns cells to the Normal style and General number format, which is why a date can turn into a number such as 46343 after clearing: the value was always a serial number.
Formatting several sheets at once
Lesson 2 introduced grouping. With sheets grouped, every formatting command in this lesson applies to all of them. The supplier sheets in the vendor workbook all received Accounting format in column F and the Heading 4 style in row 1 in one pass. Remember to ungroup afterwards.
Borders and fills for printed quotes
The exam objectives mention the Format Cells dialog by name, and its Border tab is where most people meet it first. Choose a line Style and Color, then click Outline, Inside or the individual edge buttons in the preview. The Home tab's Borders button has quick choices such as Bottom Border, All Borders, Thick Outside Borders and Top and Double Bottom Border, the traditional underline for a grand total. Teo used Top and Double Bottom Border on the quote's total row and a thin bottom border under the column headings, and removed the old grid of boxes around every cell, which had made the quote look like a form. The Fill tab sets a background colour, a pattern or a gradient; theme colours keep fills consistent with the cell styles and change with the theme.
A last formatting check before printing is to switch to Page Layout view and look at the quote as a client would. Fills that look gentle on screen can print darker, thin borders can disappear on some printers, and a column that fits on screen can wrap onto a second page. Lesson 2's scaling and print settings finish the job.
Common mistakes
MistakeChoosing Currency when a task says Accounting.
InsteadThey look similar but differ: Accounting aligns symbols at the cell edge and shows zero as a dash.
MistakeTyping over a formula to round a displayed number.
InsteadUse Decrease Decimal or a number format; the stored value and the formula stay intact.
MistakeMerging cells across a table you will later sort.
InsteadUse Center Across Selection for titles and keep data ranges unmerged.
MistakePasting normally when you need results that no longer change.
InsteadUse Paste Special > Values.
MistakeExpecting Delete to remove formatting.
InsteadDelete clears contents only; use Clear Formats or Clear All.
Summary and key terms
- Insert and Delete work on rows, columns or shifted cells; Paste Special chooses what is pasted and can add or multiply.
- The fill handle continues patterns; Fill Series, Flash Fill, RANDBETWEEN and SEQUENCE generate data.
- Alignment, orientation, indent, wrap and merge are in the Home tab's Alignment group.
- Number formats change appearance only; Format Cells (Ctrl+1) holds every format option.
- Cell styles apply theme-based formatting by name; Format Painter copies formatting; Clear removes it selectively.
- Paste Special
- A paste that chooses which parts of the copied cells to paste or combines values arithmetically.
- Fill handle
- The square at the lower right of a selection, dragged to copy or continue a series.
- Spill
- A dynamic array formula returning several values into neighbouring cells.
- Number format
- A display setting that changes how a value looks without changing it.
- Accounting format
- A currency format with symbols aligned at the cell edge and zeros shown as dashes.
- Cell style
- A named, theme-based set of formatting applied from the Cell Styles gallery.
- Center Across Selection
- An alignment that centres text over several cells without merging them.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which Paste Special option turns formulas into their current results?
Show answer
Values.
What does double-clicking the fill handle do?
Show answer
Fills down as far as the data in the adjacent column goes.
Which shortcut opens Format Cells?
Show answer
Ctrl+1.
Where is Wrap Text?
Show answer
Home > Alignment.
What happens to the data in other cells when you merge a range?
Show answer
Only the upper-left cell's content is kept.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.