ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   combining two rows of data into one (Not Concatenate) (https://www.excelbanter.com/excel-discussion-misc-queries/163338-combining-two-rows-data-into-one-not-concatenate.html)

Dr Gonzo

combining two rows of data into one (Not Concatenate)
 
Hello,

I tried to search and couldn't come up with anything so here goes...

For example: I have two columns of data A1:A20, and B1:B20.

I would like to copy them to one column simliar to shuffling cards together
so I have C1:C40 in alternating values A1,B1,A2,B2,A3,B3.... I have tried to
simply start a column like that and copy down but it starts jumping by rows
(A1,B1,A2,B2 and then I start to drag down and it continues with
A5,B5,A6,B6,A9,B9).

Any help is appreciated.

Bernie Deitrick

combining two rows of data into one (Not Concatenate)
 
Dr.,

Use this formula in C1

=INDEX($A$1:$B$20,INT((ROW()-1)/2)+1,MOD(ROW()+1,2)+1)

and copy down to C2:C40.

HTH,
Bernie
MS Excel MVP


"Dr Gonzo" <Dr wrote in message
...
Hello,

I tried to search and couldn't come up with anything so here goes...

For example: I have two columns of data A1:A20, and B1:B20.

I would like to copy them to one column simliar to shuffling cards together
so I have C1:C40 in alternating values A1,B1,A2,B2,A3,B3.... I have tried to
simply start a column like that and copy down but it starts jumping by rows
(A1,B1,A2,B2 and then I start to drag down and it continues with
A5,B5,A6,B6,A9,B9).

Any help is appreciated.





All times are GMT +1. The time now is 04:10 AM.

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