3

When I paste data from certain applications, it ends up as:

A
B
C
D
E
F
G
H
I
J
K
L

But it's supposed to be:

A B C D
E F G H
I J K L

Is there an easy way to restructure?

zeroimpl
  • 168

2 Answers2

5

In below example, formula in C1:

=INDEX($A$1:$A$12,ROW(A1)*4-4+COLUMN(A1))

enter image description here

Drag down and right...

Basically the same as this answer on SO.

Note: You can change *4-4 to any number of columns you want to transpose into > *n-n

JvdV
  • 2,302
3

You can use this formula:

=OFFSET($A$1,(ROW(A1)-1)*4+COLUMN(A1)-1,)

enter image description here

Lee
  • 3,021