[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
cucubura
General User

Joined: 04 Jun 2011
Posts: 7

 Posted: Tue Jun 19, 2012 11:34 am    Post subject: [Solved]How to Copy Multiple Data Columns to a single colmn Suppose i have a data like this 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 into this 1 2 3 4 5 6 7 8 9 10 and so on. Thanks for your answers.Last edited by cucubura on Wed Jun 20, 2012 8:30 am; edited 1 time in total
JohnV

Joined: 07 Mar 2003
Posts: 8976
Location: Lexinton, Kentucky, USA

 Posted: Tue Jun 19, 2012 12:22 pm    Post subject: Select all the numbers in a row and copy. Click into a vacant column then Edit > Paste Special and check Transpose.
ken johnson
Super User

Joined: 23 Apr 2009
Posts: 1844
Location: Sydney, Australia

 Posted: Tue Jun 19, 2012 4:49 pm    Post subject: Attached doc (Transpose variable columns of data.ods) shows one way using a formula in column M that refers to three helper formulae in columns J, K and L. The helper formula in column J has a zero included in the cell above. If the data includes text (see 2nd sheet) then the SUMPRODUCT formula replaces the COUNT formula. http://www.mediafire.com/view/?saf6osr8nbsgkam Ken Johnson_________________If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).Last edited by ken johnson on Sun Sep 23, 2012 3:12 am; edited 1 time in total
cucubura
General User

Joined: 04 Jun 2011
Posts: 7

 Posted: Wed Jun 20, 2012 4:09 am    Post subject: It will take too much time if i had so many coloumn I want all the columns and rows to be transposed into a single column
cucubura
General User

Joined: 04 Jun 2011
Posts: 7

Posted: Wed Jun 20, 2012 4:12 am    Post subject: I already know this

 JohnV wrote: Select all the numbers in a row and copy. Click into a vacant column then Edit > Paste Special and check Transpose.

I already know this. What i wanted is to automatically copy all the columns into a single columns instead of manually copying each rows and then transposing
cucubura
General User

Joined: 04 Jun 2011
Posts: 7

Posted: Wed Jun 20, 2012 4:24 am    Post subject:

 ken johnson wrote: Attached doc shows one way using a formula in column M that refers to three helper formulae in columns J, K and L. The helper formula in column J has a zero included in the cell above. If the data includes text (see 2nd sheet) then the SUMPRODUCT formula replaces the COUNT formula. http://www.4shared.com/file/n4BcHz6b/Transpose_variable_columns_of_.html Ken Johnson

Hi, your solution worked like a wonder. I am using text and number sheet. But what should i do to increase the columns? I have more than 121 columns...
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10065
Location: Germany

 Posted: Wed Jun 20, 2012 4:59 am    Post subject: InputRange = name of the incoming cell range Other sheet: A1: 1 A2: =\$A1+(\$B2=\$C2) B2: =COUNTIF(\$A\$1:\$A1;\$A1) C2: =COUNT(INDEX(InputRange;\$A1)) D1: 1 D2: =IF(\$A2=\$A1;\$D1+1;1) E1: =INDEX(InputRange;\$A1;\$D1) Copy E1 to E2 Copy down the formulas in row #2 until you get errors in E._________________Rest in peace, oooforum.org Get help on http://forum.openoffice.org
ken johnson
Super User

Joined: 23 Apr 2009
Posts: 1844
Location: Sydney, Australia

 Posted: Wed Jun 20, 2012 5:20 am    Post subject: Maybe have the formulae on another sheet. See attached (Transpose many columns of data.ods)... http://www.mediafire.com/view/?pxylrjq4pyxxtqe Formulae on other sheet can handle data in up to column EZ (column 156) and down to row 500 on the Text and Numbers sheet. If you have more than 500 rows you will need to change the 500s in the formula in 'Transposed Columns'.B2 to a greater number of rows... IF(ROW(B2)-ROW(B\$2)>=SUMPRODUCT('Text and Numbers'.\$A\$2:\$EZ\$500<>"");"";MATCH(ROW(B2)-ROW(B\$2);\$A\$1:\$A\$500)) [SUMPRODUCT, being an array formula, is very slow when given a large range of cells to process] Ken Johnson_________________If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).Last edited by ken johnson on Sun Sep 23, 2012 3:08 am; edited 1 time in total
cucubura
General User

Joined: 04 Jun 2011
Posts: 7

Posted: Wed Jun 20, 2012 8:19 am    Post subject:

 ken johnson wrote: Maybe have the formulae on another sheet. See attached http://www.4shared.com/file/iI1eHZ5H/Transpose_many_columns_of_data.html Formulae on other sheet can handle data in up to column EZ (column 156) and down to row 500 on the Text and Numbers sheet. If you have more than 500 rows you will need to change the 500s in the formula in 'Transposed Columns'.B2 to a greater number of rows... IF(ROW(B2)-ROW(B\$2)>=SUMPRODUCT('Text and Numbers'.\$A\$2:\$EZ\$500<>"");"";MATCH(ROW(B2)-ROW(B\$2);\$A\$1:\$A\$500)) [SUMPRODUCT, being an array formula, is very slow when given a large range of cells to process] Ken Johnson

Thanks for your kind help aussie. I appreciate your help and also willing to help other forum users in the future.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum