ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   horizontal data to vertical data (https://www.excelbanter.com/new-users-excel/21335-horizontal-data-vertical-data.html)

Aloysicus

horizontal data to vertical data
 
I have a set of data list in the horizontal manner. Is there a macro that
can send this data vertically instead of manually doing it?

Thanks in advance.
Aloysicus



Max

One way ..

Assume source data is in Sheet1, A1:E1

In Sheet2

Put in A1:
=OFFSET(Sheet1!$A$1,COLUMNS($A$1:A1)-1,ROWS($A$1:A1)-1)

Copy A1 down by as many rows as there are columns in Sheet1, i.e. down to A5

A1:A5 will return whats in A1:E1 in Sheet1

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Aloysicus" wrote in message
...
I have a set of data list in the horizontal manner. Is there a macro that
can send this data vertically instead of manually doing it?

Thanks in advance.
Aloysicus





cycling-rod


From Excel Help:
Switch rows of cells to columns or columns to rows
Data from the top row of the copy area appears in the left column of
the paste area, and data from the left column appears in the top row.
1 Select the cells that you want to switch.
2 Click Copy .
3 Select the upper-left cell of the paste area.
The paste area must be outside the copy area.
4 On the Edit menu, click Paste Special.
Show me
5 Select the Transpose check box.


--
cycling-rod


All times are GMT +1. The time now is 03:29 PM.

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