ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Vertical into Horizontal (https://www.excelbanter.com/excel-programming/354010-vertical-into-horizontal.html)

dthmtlgod

Vertical into Horizontal
 
I have a list of records in this format

Name 1
Address 1
City 1
State 1

Name 2
Address 2
City 2
State 2

Name 3
Address 3
City 3
State 3

I would like to put these on a row for each record, i.e.

Name 1 Address 1 City 1 State 1
Name 2 Address 2 City 2 State 2

Any help is much appreciated.




Gary''s Student

Vertical into Horizontal
 
Use the INDIRECT() function:

Assuming your data starts in A1, in B1 thru E1 enter:

=INDIRECT("A" & ROW()*5-4)
=INDIRECT("A" & ROW()*5-3)
=INDIRECT("A" & ROW()*5-2)
=INDIRECT("A" & ROW()*5-1)

and then just copy down
--
Gary''s Student


"dthmtlgod" wrote:

I have a list of records in this format

Name 1
Address 1
City 1
State 1

Name 2
Address 2
City 2
State 2

Name 3
Address 3
City 3
State 3

I would like to put these on a row for each record, i.e.

Name 1 Address 1 City 1 State 1
Name 2 Address 2 City 2 State 2

Any help is much appreciated.






All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com