Select the product you need help with
How to convert multiple rows and columns to columns and rows in ExcelArticle ID: 214024 - View products that this article applies to. This article was previously published under Q214024 On This PageSummaryWhen you use the Microsoft Excel products listed at the bottom of this article, you can use a worksheet formula to covert data that spans multiple rows and columns to a database format (columnar). More information The following example converts every four rows of data in a
column to four columns of data in a single row (similar to a database field and
record layout). This is a similar scenario as that which you experience when
you open a worksheet or text file that contains data in a mailing label
format. Example
Smith, John 111 Pine St. San Diego, CA (555) 128-549 Jones, Sue 222 Oak Ln. New York, NY (555) 238-1845 Anderson, Tom 333 Cherry Ave. Chicago, IL (555) 581-4914
OFFSET($A$1,(ROW()-f_row)*rows_in_set+INT((COLUMN()-f_col)/col_in_set),
MOD(COLUMN()-f_col,col_in_set))
where:
Properties | Article Translations
|


Back to the top








