Microsoft KB Archive/212031

= WD2000: How to Transpose Rows and Columns in Word =

Article ID: 212031

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q212031





SUMMARY
Word does not have the ability to transpose cells in a table; that is, you cannot use Word to switch the orientation of columns to rows or vice versa. This article describes how to use Microsoft Excel to provide this functionality.



MORE INFORMATION
To transpose the rows and columns of your table, follow these steps:
 * 1) Open your Word document, select the table, and then click Copy on the Edit menu.
 * 2) Start or switch to Microsoft Excel.
 * 3) On the Edit menu, click Paste Special. Click Paste, click Text, and then click OK.
 * 4) Select the cells that contain the data that you want to transpose.
 * 5) On the Edit menu, click Copy.
 * 6) Select the upper-left cell of the paste area. Choose a blank area of your Excel worksheet.
 * 7) On the Edit menu, click Paste Special.
 * 8) Click to select the Transpose check box, and then click OK.

This action switches the orientation of data when you paste it. For example, data from the top row of the copied area appears in the left column of the paste area; data from the left column appears in the top row.

NOTE: If you receive an error message that indicates the selection is not valid, your paste area contains data. Make sure you select a blank area on your worksheet.
 * 1) Select the cells with the transposed data, and click Copy on the Edit menu.
 * 2) Switch to Word, and place your insertion point where you want to paste the table.
 * 3) On the Edit menu, click Paste Special. Click Paste, select Formatted Text (RTF), and then click OK.

Before you use the Transpose command, consider the following:
 * Word tables are limited to 63 columns in Word. If your original table has more than 63 rows and you transpose the rows with the columns, the pasted table is truncated at 63 columns and no warning message appears.
 * If your original table contains tabs, Excel converts each tab to a new cell. Any text that follows the tab character is moved to the next adjacent cell. To avoid this problem, replace the tabs with another character--such as the tilde (~)character--that doesn't appear in your document. After you transpose and paste the table back into your Word document, replace the tilde character with a tab.

NOTE: Use this method to replace paragraph mark delimiters.
 * If your Word table contains carriage returns, Excel strips the carriage returns and runs your text together with the preceding text.

Additional query words: transpose transposing transposes rotates pivots moves columns rows position

Keywords: kbhowto kbtable KB212031

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.