Article ID: 214024 - Last Review: February 1, 2012 - Revision: 5.0 How to convert multiple rows and columns to columns and rows in Excel
This article was previously published under Q214024
For a Microsoft Excel 98 version of this article, see 192357
(http://support.microsoft.com/kb/192357/
)
.
For a Microsoft Excel 97 version of this article, see
116289
(http://support.microsoft.com/kb/116289/
)
. On This PageSUMMARY When you use the Microsoft Excel products listed at the
beginning 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:
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
