Tuesday 4 September 2018

Word - Adding Table Columns to Columns with Merged Cells


Steve has a table in which the top cells of two adjacent columns are merged. Word dutifully adds a column if he positions the insertion point within a cell of the first of the adjacent columns (but not in the merged cells) and then inserts a column to the right of the insertion point. Unfortunately, Word also adds a blank cell at the right of the merged cells.
This behavior is normal for Word. Let's say that your table consists of three columns, which we'll call A, B, and C. If you merge the first row's cells in columns A and B, you now have two cells (one large and one small) in the first row and three cells in each of the other rows. Position the insertion point into a column A cell that is not the first, merged row and insert a column to the right and you discover that Word adds a new column B and pushes the other columns (old B and old C) to the right. This means that Word has to add a cell to the right of the merged cells (in new column C), else the first row would be incorrect. What you end up with after the insertion is a first row with three cells (one large and two small) and the other rows with four cells—just as you should.
The supposed problem comes in when your table has all the cells in the first row merged. For instance, you may have a table that has two columns and the two cells in the first row are merged into a single cell. When you insert a column to the right of the first column, Word also adds a cell to the right of the first, merged cell. What you might expect, however, is that Word would insert the column without affecting the merged cell, such that the single merged cell would now span three columns instead of the old two.
There is no way to do this when doing a simple column insert. There are a couple of things you can try, however. One method is to split the merged cells in the top row, insert the desired column, and then merge the three cells into one.
You could also go ahead and insert the columns as already described. Then select the old merged cell and the new added cell in the first row and merge them again.
Another method is to separate the merged row from the rest of the table by splitting the table. You can then insert the columns as desired and recombine the previously split tables. Of course, you will then need to expand the width of your merged cell so that it fully covers the three columns below it.
Finally, you can insert cells instead of inserting columns. Assuming that your two-column table has ten rows, follow these steps:
  1. Select the cells in the second column that are in rows two through ten. (You aren't selecting the merged cells in the top row at all.)
  2. Display the Layout tab of the ribbon.
  3. Click the small icon at the bottom-right corner of the Rows & Columns group. Word displays the Insert Cells dialog box. (See Figure 1.) 
  4. Figure 1. The Insert Cells dialog box.
  5. Make sure the Shift Cells Right option button is selected.
  6. Click OK.
Word shifts the selected cells to the right and inserts blank cells. The top row remains unchanged, with the merged cells still spanning the first and second columns. If you want the merged cells to span all three columns, you'll need to drag the cell border so it is the desired width.

No comments:

Post a Comment