MSBA-170 · Lesson 7 of 12 · 22 min
Creating and modifying tables
▶ Video coming soon A video version of this lesson is on the way.
Every Maple & Pine proposal ends with a pricing table: one row per service, columns for description, quantity, unit price and amount, and a total at the bottom. The seating plan in the run sheet is a table, the vendor contact page is a table, and so is the timeline in every conference brief. On the seventh Thursday Teo learned that "tables" is a single objective group on the exam but carries almost a quarter of the marks together with lists, and that nearly every task in it maps to one button on the table's Layout tab.
Creating tables
There are several ways to create a table, and the exam objective "create tables by specifying rows and columns" names the most precise one. Insert > Table shows a grid; drag across it to choose up to 10 columns and 8 rows. Insert Table in the same menu opens a dialog where you type the number of columns and number of rows and choose an AutoFit behavior: fixed column width, AutoFit to contents, or AutoFit to window. Draw Table lets you draw cell boundaries with the mouse. Quick Tables inserts formatted ready-made tables such as calendars and tabular lists. Excel Spreadsheet embeds a worksheet, which is a different object altogether.
Once the insertion point is in a table, two contextual tabs appear: Table Design and Layout. Table Design holds Table Style Options (Header Row, Total Row, Banded Rows, First Column, Last Column, Banded Columns), the Table Styles gallery, Shading, and the Borders group with border styles, the Border Painter and Borders and Shading. Layout holds everything about structure: Select, View Gridlines, Properties, Draw and Eraser, Delete, Insert Above, Below, Left and Right, Merge Cells, Split Cells, Split Table, AutoFit, Height and Width, Distribute Rows and Columns, Alignment, Text Direction, Cell Margins, Sort, Repeat Header Rows, Convert to Text and Formula.
| Objective | Where on the table Layout tab |
|---|---|
| Convert tables to text | Data group > Convert to Text |
| Sort table data | Data group > Sort |
| Configure cell margins and spacing | Alignment group > Cell Margins |
| Merge and split cells | Merge group > Merge Cells, Split Cells |
| Resize tables, rows and columns | Cell Size group: Height, Width, AutoFit, Distribute; Properties |
| Split tables | Merge group > Split Table |
| Configure a repeating row header | Data group > Repeat Header Rows |
Converting text to a table and back
Teo's vendor contacts had been typed as lines of text with a tab between name, company, phone and email. To turn them into a table he selected the lines and chose Insert > Table > Convert Text to Table. The dialog suggested four columns, because each line contained three tabs, and asked how the text was separated: paragraphs, commas, tabs or another character. Choosing Tabs produced a clean four-column table. The reverse, Layout > Convert to Text, asks which character should separate the former columns; a tab is the usual choice. These two commands are exactly the exam objectives "convert text to tables" and "convert tables to text".
Worked problem
Converting a comma-separated list
A caterer emails its menu as lines like "Canapés, 24, 3.50". Teo pastes 18 lines into the proposal. How does he turn them into a three-column table?
Show solution
- Select the 18 lines.
- Choose Insert > Table > Convert Text to Table.
- Under Separate text at, choose Commas. The number of columns changes to 3.
- Choose AutoFit to contents, then OK.
- With the table selected, use Insert Above to add a header row: Item, Quantity, Price.
Answer: Convert Text to Table with Commas as the separator gives a three-column table; a header row inserted above makes it readable.
Rows, columns and cells
To add a row at the end of a table, click in the last cell and press Tab. To add rows or columns elsewhere, use Insert Above, Insert Below, Insert Left or Insert Right, or hover at the edge of the table until a plus sign appears between rows or columns. Delete removes cells, columns, rows or the whole table; pressing the Delete key on a selection only clears the contents. To select, use the Select menu (cell, column, row, table), or click just outside the left edge of a row, just above a column, or the move handle for the whole table.
Merge Cells joins selected cells into one, which Teo used for the "Total" label spanning the first three columns of the pricing table. Split Cells divides a cell into a given number of columns and rows. Split Table divides the table into two above the current row, inserting an empty paragraph between them; it is the clean way to separate one long seating table into "Head table" and "Guest tables". To join two tables back together, delete the paragraph between them.
Resizing
You can resize by dragging column borders or the table's resize handle, but exam tasks that give values need precise tools. The Cell Size group sets Height and Width for the selected rows or columns, Distribute Rows and Distribute Columns make them equal, and AutoFit offers AutoFit Contents, AutoFit Window and Fixed Column Width. The Table Properties dialog (Layout > Properties) has tabs for Table (preferred width, alignment, text wrapping around the table), Row (specified height, "Allow row to break across pages", "Repeat as header row at the top of each page"), Column (preferred width), Cell (width and vertical alignment) and Alt Text (title and description).
Cell margins and spacing
Cell Margins on the Layout tab opens Table Options, where you set the default top, bottom, left and right cell margins for the whole table (the space between the cell border and its text) and the spacing between cells. Cell margins make dense tables easier to read; Teo added a little top and bottom margin to the pricing table so each row breathed. Spacing between cells separates the cells visually, a style that suits a form-like layout more than a pricing table. Margins for a single cell are set in Table Properties > Cell > Options.
Alignment and text direction
The Alignment group on the Layout tab has nine buttons combining top, center or bottom with left, center or right, and Text Direction for rotating text in narrow header cells. Numbers in a price column are easiest to read aligned right; text aligned left. To center the whole table between the margins, use Table Properties > Table > Alignment: Center, or select the table and use Home > Center. Note that centering the table and centering the text in its cells are different things.
Sorting
Sort in the Data group sorts table rows. The dialog allows up to three keys: sort by Column 3 (Amount), then by Column 1 (Service), for instance, each Ascending or Descending, and as Text, Number or Date. The vital setting is My list has: Header row, which keeps the header in place and lets you choose columns by name. If it is set to No header row, the header gets sorted into the data, a mistake that is easy to spot and annoying to fix. Rosalind sorts every pricing table by amount, descending, so the biggest item is first.
Repeating header rows
A table that runs over several pages, like the 300-guest seating plan, is hard to read if the column headings appear only on the first page. Select the header row (or rows) and choose Layout > Repeat Header Rows. Word repeats them at the top of each page automatically; they are not copies, so changing the original updates every repeat. The header rows must be at the top of the table and the table must break naturally across pages; a manual page break inside the table stops the repeat. Screen readers also use the repeated header row to announce column names, so the setting improves accessibility as well as print.
Styling tables
The Table Styles gallery on Table Design applies borders, shading and fonts together, and the Table Style Options check boxes tell the style which parts to emphasize: a header row, a total row, banded rows for readability, a bold first column. Table styles use theme colors, so they change with the document theme. For individual changes, the Borders drop-down applies borders to selected cells, and Shading colors their background. The Border Painter works like Format Painter for border lines.
Formulas in Word tables (Layout > Formula) can sum a column, using fields such as =SUM(ABOVE). They do not recalculate automatically; you update them with F9. Rosalind keeps prices in Excel and pastes the final figures, a choice many offices make. The Associate exam does not test formulas, but it is useful to know they exist and that they need updating.
Accessible tables
A table is accessible when it has a single header row marked as a header (Header Row in Table Style Options and Repeat Header Rows), no merged or split cells that confuse reading order where it can be avoided, and alternative text describing its purpose (Table Properties > Alt Text, or right-click > View Alt Text in newer versions). Tables should not be used for page layout. The Accessibility Checker flags tables without a header row and tables used for layout. Teo added alt text to the pricing table: "Pricing for the Garden Gold package by service, with total."
Tables that span pages
Long tables need a little care at page breaks. In Table Properties > Row, the option Allow row to break across pages controls whether a tall row can split between pages; turning it off keeps each guest's details together on one page. To keep a short table together with the paragraph before it, apply Keep with next to that paragraph and to each table row except the last. These settings, combined with Repeat Header Rows, make the difference between a seating plan that the venue manager can read and one that needs a highlighter.
Width also matters. A table set to AutoFit Window stretches to the margins, so it adjusts if margins or orientation change, which is useful in a landscape section. A table with fixed column widths keeps its exact layout but may overflow a narrower page. When Teo moved the seating plan into its landscape section, he chose AutoFit Window first and then adjusted individual columns, so the table filled the wider page neatly.
Borders, shading and the Border Painter
Table styles handle most formatting, but some tasks need individual borders: a thicker line above the total row, or no borders at all on a layout table in a letterhead. The Borders drop-down on Table Design applies borders to the selected cells: All Borders, Outside Borders, Inside Horizontal, No Border and others. Border Styles chooses a style, weight and color, and the Border Painter then applies it by clicking or dragging along cell edges. Shading on the same tab fills selected cells, which is useful for highlighting a column such as "Confirmed".
Worked problem
Fixing a messy pasted table
A venue sends a capacity table copied from its website. In the proposal it has odd fonts, uneven column widths, a missing header row and cell spacing that makes it look like a grid of buttons. How does Teo tidy it?
Show solution
- Select the table with the move handle and press Ctrl+Space to clear character formatting.
- On Table Design, choose a simple table style and select Header Row in Table Style Options.
- On Layout, choose Cell Margins and clear Allow spacing between cells.
- Choose AutoFit > AutoFit Window, then Distribute Columns if the columns should be equal.
- Select the first row and choose Repeat Header Rows, then add alt text in Table Properties.
Answer: Clear direct formatting, apply a table style with a header row, remove cell spacing, fix widths and add alt text. Each step is a single button.
Tables and keyboard movement
Moving inside a table has its own keys. Tab moves to the next cell and Shift+Tab to the previous one, so to insert a real tab character inside a cell you press Ctrl+Tab. Alt+Home and Alt+End move to the first and last cells of a row, and Alt+Page Up and Alt+Page Down to the top and bottom of a column. Pressing Enter in a cell starts a new paragraph inside the same cell rather than leaving the table. To add a paragraph before a table at the very top of a document, put the insertion point in the first cell and press Enter at the start of its text; Word inserts an empty paragraph above the table.
These keys make data entry quicker. Teo typed a 40-row vendor table without touching the mouse, pressing Tab at the end of each row to create the next.
Common mistakes
MistakePressing Delete to remove a selected row.
InsteadUse Layout > Delete > Delete Rows; the Delete key only clears contents.
MistakeSorting a table with No header row selected.
InsteadChoose My list has: Header row so the heading stays on top.
MistakeCopying the header row onto each page by hand.
InsteadUse Repeat Header Rows so it repeats automatically and stays in sync.
MistakeCentering the table by centering its text.
InsteadCenter the table itself in Table Properties > Table > Alignment.
MistakeUsing tables to lay out a page.
InsteadUse tables for data; use columns, sections and text boxes for layout.
Summary and key terms
- Create tables from the Insert > Table grid, the Insert Table dialog (rows and columns), Draw Table or Convert Text to Table.
- Table Design holds styles, style options and borders; the table Layout tab holds structure, size, alignment and data commands.
- Merge Cells, Split Cells and Split Table change structure; Height, Width, AutoFit and Distribute control size.
- Cell Margins opens Table Options for margins and spacing between cells; Sort needs Header row set correctly.
- Repeat Header Rows repeats headings on each page and helps screen readers; add alt text to tables.
- Header row
- The top row of a table, holding column headings.
- Merge Cells
- Combines selected cells into a single cell.
- Split Table
- Divides a table into two tables above the current row.
- Cell margins
- The space between a cell's border and its contents.
- AutoFit
- Automatic sizing of columns to contents or to the window.
- Repeat Header Rows
- A setting that reprints header rows at the top of each page of a table.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which separator would you choose to convert lines with tabs between fields into a table?
Show answer
Tabs.
Where do you set spacing between cells?
Show answer
Layout > Cell Margins, in the Table Options dialog.
What happens between two tables after Split Table?
Show answer
An empty paragraph separates them.
Name two conditions for Repeat Header Rows to work.
Show answer
The header rows are at the top of the table, and the table breaks across pages naturally rather than with a manual page break.
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.