horizontal data to vertical data

A

Aloysicus

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
 
M

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
 
C

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top