XL: Converting Multiple Rows/Columns to Columns/RowsLast reviewed: February 16, 1998Article ID: Q116289 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, you can use a worksheet formula to covert data that spans multiple rows and columns to a database format (columnar).
MORE INFORMATIONThe following example converts every three rows of data in a column to three columns of data in a single row (similar to a database field and record layout). This scenario is similar to what you would do when you open a worksheet or text file containing data in a mailing label format.
ExampleTo see an example that converts data, follow these steps:
OFFSET($A$1,(ROW()-f_row)*rows_in_set+INT((COLUMN()- f_col)/col_in_set), MOD(COLUMN()-f_col,col_in_set))where:
f_row = row number of this offset formula f_col = column number of this offset formula rows_in_set = number of rows which make one record of data col_in_set = number of columns of data |
Additional query words: mailing labels convert data formula transpose
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |