Chapter 4
IN THIS CHAPTER
Creating and formatting tables
Decorating a table with table styles, colors, and borders
Doing math calculations in a Word table
Discovering an assortment of table tricks
The best way to present a bunch of data at one time in Word is to do it in a table. Viewers can compare and contrast the data. They can compare Elvis sightings in different cities or income from different businesses. They can contrast the number of socks lost in different washing machine brands. A table is a great way to plead your case or defend your position. Readers can see right away whether the numbers back you up. They can refer to your table to get the information they need.
As everyone who has worked on tables knows, however, tables are a chore. Getting all the columns to fit, making columns and rows the right width and height, and editing the text in a table isn’t easy. This chapter explains how to create tables, enter text in tables, change the number and size of columns and rows, lay out tables, format tables, and do the math in tables. You’ll also discover a few tricks — including using a picture for the background — that only magicians know. And to start you on the right foot, I begin by explaining table jargon.
As with much else in Computerland, tables have their own jargon. Figure 4-1 describes this jargon. Sorry, but you need to catch up on these terms to construct the perfect table:
Starting on the Insert tab, Word offers several ways to create a table:
To delete a table, go to the (Table Tools) Layout tab, click the Delete button, and choose Delete Table on the drop-down list.
After you’ve created the table, you can start entering text and numbers. All you have to do is click in a cell and start typing. Select your table and take advantage of these techniques to make the onerous task of entering table data a little easier:
Quickly changing a table’s size: Drag the bottom or side of a table to change its overall size. To make the table stretch from page margin to page margin, go to the (Table Tools) Layout tab, click the AutoFit button, and choose AutoFit Window.
Here are some shortcuts for moving the cursor in a table:
Press |
Moves the Cursor to |
Tab |
Next column in row |
Shift+Tab |
Previous column in row |
↓ |
Row below |
↑ |
Row above |
Alt+Home |
Start of row |
Alt+End |
End of row |
Alt+Page Up |
Top of column |
Alt+Page Down |
Bottom of column |
It almost goes without saying, but before you can reformat, alter, or diddle with table cells, rows, or columns, you have to select them:
Very likely, you created too many or too few columns or rows for your table. Some columns are probably too wide and others too narrow. If that’s the case, you have to change the table layout by deleting, inserting, and changing the size of columns and rows, not to mention changing the size of the table itself. In other words, you have to modify the table layout. (Later in this chapter, “Decorating your table with borders and colors” shows how to put borders around tables and embellish them in other ways.)
The fastest way to adjust the width of columns, the height of rows, and the size of a table itself is to “eyeball” it and drag the mouse:
Column or row: Move the pointer onto a gridline or border, and when the pointer changes into a double-headed arrow, start dragging. Tug and pull, tug and pull until the column or row is the right size.
You can also go to the (Table Tools) Layout tab and enter measurements in the Height and Width text boxes to change the width of a column or the height of a row. The measurements affect entire columns or rows, not individual cells.
Resizing columns and rows can be problematic in Word. For that reason, Word offers special commands on the (Table Tools) Layout tab for adjusting the width and height of rows and columns:
You can also click the AutoFit button on the (Table Tools) Layout tab, and take advantage of these commands on the drop-down list for handling columns and rows:
Word offers many, many ways to insert columns and rows. Too many ways, if you ask me.
Go to the (Table Tools) Layout tab and follow these instructions to insert and delete columns and rows:
Follow these steps to insert columns or rows by right-clicking:
Right-click to display the minitoolbar.
Figure 4-3 shows the minitoolbar you see when you right-click a table.
To insert one row or one column, click a One-Click button. The One-Click Column button appears when you move the pointer between columns at the top of a table; the One-Click Row button appears when you move the pointer between rows on the left side of a table. Click a One-Click button to insert one column or one row.
Go to the (Table Tools) Layout tab and use these techniques to delete columns and rows:
Because there is no elegant way to move a column or row, you should move only one at a time. If you try to move several simultaneously, you open a can of worms that is best left unopened. To move a column or row:
Select the column or row you want to move.
Earlier in this chapter, “Selecting Different Parts of a Table” explains how to select columns and rows.
Right-click in the selection and choose Cut on the shortcut menu.
The column or row is moved to the Clipboard.
Insert a new column or row where you want the column or row to be.
Earlier in this chapter, “Inserting columns and rows” explains how.
Aligning text in columns and rows is a matter of choosing how you want the text to line up vertically and how you want it to line up horizontally. Follow these steps to align text in a table:
Figure 4-4 shows where the Align buttons are on the (Table Tools) Layout tab and how these options align text in a table.
Merge and split cells to make your tables a little more elegant than run-of-the-mill tables. Merge cells to break down the barriers between cells and join them into one cell; split cells to divide a single cell into several cells (or several cells into several more cells). In the table shown in Figure 4-5, cells in rows and columns have been split or merged to create a curious-looking little table.
Select the cells you want to merge or split, go to the (Table Tools) Layout tab, and follow these instructions to merge or split cells:
Another way to merge and split cells is to click the Draw Table or Eraser button on the (Table Tools) Layout tab. Click the Draw Table button and then draw lines through cells to split them. Click the Eraser button and drag over or click the boundary between cells to merge cells. Press Esc when you finish drawing or erasing table cell boundaries.
Need to split a table? Place the cursor in what you want to be the first row of the new table, go to the (Table Tools) Layout tab, and click the Split Table button.
On the (Table Tools) Layout tab, click the Repeat Header Rows button. (Depending on the size of your screen, you may have to click the Data button first.)
Header rows appear only in Print Layout view, so don't worry if you can’t see them in Draft view.
After you enter text in the table, lay out the columns and rows, and make them the right size, the fun begins. Now you can dress up your table and make it look snazzy. You can choose colors for columns and rows. You can play with the borders that divide the columns and rows and shade columns, rows, and cells by filling them with gray shades or a black background. Read on to find out how to do these tricks.
Click anywhere in your table and follow these steps to choose a table style:
Select a table style.
To remove a table style, open the Table Styles gallery and choose Clear.
On the (Table Tools) Design tab, Word offers Table Style Options check boxes for calling attention to different rows or columns (refer to Figure 4-6). For example, you can make the first row in the table, called the header row, stand out by selecting the Header Row check box. If your table presents numerical data with total figures in the last row, you can call attention to the last row by selecting the Total Row check box. Select or deselect these check boxes on the (Table Tools) Design tab to make your table easier to read and understand:
Besides relying on a table style, you can play interior decorator on your own. You can slap color on the columns and rows of your table, draw borders around columns and rows, and choose a look for borders. The (Table Tools) Design tab offers many commands that pertain to table decoration. Use these commands to shade table columns and rows and draw table borders.
Follow these steps to fashion a border for your table or a part of your table:
Select the part of your table that needs a new border.
To select the entire table, go to the (Table Tools) Layout tab, click the Select button, and choose Select Table.
Create a look for the table borders you will apply or draw.
Use all or some of these techniques to devise a border:
Border style: Open the drop-down list on the Border Styles button and choose the border style that most resembles the one you want.
If a table on the page you’re looking at already has the border you like, you can “sample” the border. Open the drop-down list on the Border Styles button and choose Border Sampler. The pointer changes to an eyedropper. Click the border you want to select its style, weight, and color settings.
You can also change borders by clicking the Borders group button and making selections in the Borders and Shading dialog box, as shown in Figure 4-7.
Follow these steps to paint columns, rows, or your table a new color:
Later in this chapter, “Using a picture as the table background” explains how to use a picture as the background in a table.
No, you don’t have to add the figures in columns and rows yourself; Word gladly does that for you. Word can perform other mathematical calculations as well. Follow these steps to perform mathematical calculations and tell Word how to format sums and products:
On the (Table Tools) Layout tab, click the Formula button.
Depending on the size of your screen, you may have to click the Data button first. The Formula dialog box appears, as shown in Figure 4-8. In its wisdom, Word makes an educated guess about what you want the formula to do and places a formula in the Formula box.
If this isn’t the formula you want, delete everything except the equal sign in the Formula box, open the Paste Function drop-down list, and choose another function for the formula.
For example, choose PRODUCT to multiply figures. You may have to type left, right, above, or below in the parentheses to tell Word where to find the figures you want to compute.
The rest of this chapter details a handful of neat table tricks to make your tables stand out in a crowd. Why should all tables look alike? Read on to discover how to make text in the header row stand on its ear, wrap text around a table, put a picture behind a table, draw diagonal border lines, draw on top of a table, and wrap text around a table.
In a top-heavy table in which the cells in the first row contain text and the cells below contain numbers, consider changing the direction of the text in the first row to make the table easier to read. Changing text direction in the first row is also a good way to squeeze more columns into a table. Consider how wide the table shown in Figure 4-9 would be if the words in the first row were displayed horizontally.
Follow these steps to change the direction of text on a table.
Select the row that needs a change of text direction.
Usually, that’s the first row in a table.
Keep clicking the Text Direction button until text lands where you want it to land.
You may have to click the Alignment button before you can see the Text Direction button.
Change the height of the row to make the vertical text fit.
As “Changing the size of a table, columns, and rows” explains, earlier in this chapter, you can change the height of a row by going to the (Table Tools) Layout tab and entering a measurement in the Height box.
Nothing is sadder than a forlorn little table all alone on a page. To keep tables from being lonely, you can wrap text around them, as shown in Figure 4-10.
To wrap text around a table, drag it into the text (drag the selection handle in the upper-left corner of the table). Nine times out of ten, that’s all there is to it, but if the text doesn’t wrap correctly, follow these steps to wrap your table:
On the (Table Tools) Layout tab, click the Cell Size group button.
The Table Properties dialog box opens.
Click the Positioning button.
The Table Positioning dialog box appears.
Select the Move with Text check box and click OK.
By selecting Move with Text, you make sure that the table stays with the surrounding text when you insert or delete text.
As Figure 4-11 demonstrates, a picture used as the background in a table looks mighty nice. To make it work, however, you need a graphic that serves well as the background. For Figure 4-11, I got around this problem by recoloring my graphic. (Book 8, Chapter 3 explains how to recolor a graphic.) You also need to think about font colors. Readers must be able to read the table text, and that usually means choosing a white or light font color for text so that the text can be read over the graphic. For Figure 4-11, I selected a white font color.
Placing a graphic behind a table requires a fair bit of work, but the results are well worth the effort. First you insert the graphic and perhaps recolor it. Then you create the table. Lastly, you make the table fit squarely on top of the graphic and perhaps group the objects together.
Follow these steps to place a graphic behind a table:
Insert the graphic, resize it, and format the graphic.
Book 8, Chapter 3 explains how to insert and resize graphics. To insert a graphic, go to the Insert tab and click the Pictures or Online Pictures button. To resize it, drag a selection handle; make the graphic as big as you want your table to be. To recolor a graphic similar to the job done to the graphic in Figure 4-12, select the (Picture Tools) Format tab, click the Color button, and choose an option.
Click the Layout Options button (located to the right of the picture) and choose Behind Text on the drop-down list.
Choosing Behind Text tells Word to put the graphic behind the text. You can also go to the (Picture Tools) Format tab, click the Wrap Text button, and choose Behind Text.
Insert the table and make it roughly the same size as the graphic.
These tasks are explained earlier in this chapter. To change the size of a table, drag a selection handle on its corner or side. Place the table nearby the graphic, but not right on top of it.
On the (Table Tools) Design tab, open the Table Styles gallery and choose Clear.
With the table styles out of the way, you can see the graphic clearly through your table.
Enter the data in the table, select a font and font color, select a border and border color, and align the text.
These tasks (except for selecting fonts) are described throughout this chapter. The easiest way to choose a font and font color for a table is to select the table, go to the Home tab, and select a font and font size.
Here are two tricks that are worth knowing when you’re handling a graphic and table:
Draw diagonal lines across table cells to cancel out those cells or otherwise make cells look different. In Figure 4-12, diagonal lines are drawn on cells to show that information that would otherwise be in the cells is either not available or not relevant.
To draw diagonal lines across cells, select the cells that need diagonal lines, and on the (Table Tools) Design tab, open the drop-down list on the Borders button and choose Diagonal Down Border or Diagonal Up Border.
To remove diagonal lines, open the drop-down list on the Borders button and choose Diagonal Down Border or Diagonal Up Border again.
When you want to call attention to data in one part of a table, draw a circle around the data. By “draw,” I mean make an Oval shape and place it over the data you want to highlight, as shown in Figure 4-13. Book 8, Chapter 4 explains the drawing tools in detail. To spare you the trouble of turning to that chapter, here are shorthand instructions for drawing on a table:
Drag the oval over the data on your table that you want to highlight.
If the oval is obscured by the table, go to the (Drawing Tools) Format tab and click the Bring Forward button. (Click the Arrange button, if necessary, to see this button.) While you’re at it, consider rotating the oval a little to make it appear as though it were drawn manually on the table.