View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Luke M Luke M is offline
external usenet poster
 
Posts: 2,722
Default How do I... 2 columns to 1 row

First column:
=INDEX(A$1:A$15,2*ROW(E1)-1)
Second column:
=INDEX(B$1:B$15,2*ROW(F1)-1)
Third Column:
=INDEX(B$1:B$15,2*ROW(G1))

Where the array references your original data, and the cell refernce at end
is whatever cell you put the formula in.

Basically, the formula looks up data, skipping every other cell.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Max" wrote:

Hi,
I have 2 columns of data that look like this

CH301 9087
CH301 9021
CH412 9594
CH412 4897

I need them to look like this

CH301 9087 9021
CH412 9594 4897

The number in column "A" can from single to multiple
There are 1,628 rows incl header

Could anybody suggest a good way to do this?

Thanks