[Solved] Transposing GROUPS of cells

Discuss the spreadsheet application
Post Reply
meldor
Posts: 10
Joined: Tue Jun 25, 2013 2:09 am

[Solved] Transposing GROUPS of cells

Post by meldor »

hello i am currently trying to transpose groups of cells to another worksheet. Example here : http://stackoverflow.com/questions/1728 ... ffice-calc . how do i achieve this?how can i delimit groups of cells?
Thank you for your patience.
Last edited by meldor on Wed Jun 26, 2013 1:49 pm, edited 1 time in total.
OpenOffice 3.3 on Windows 7
ken johnson
Volunteer
Posts: 918
Joined: Sun May 31, 2009 1:35 am
Location: Sydney, Australia

Re: Transposing GROUPS of cells

Post by ken johnson »

Maybe the INDEX function with row parameter determined by the MOD function and column parameter determined by the INT function...

Code: Select all

=IF(INDEX($Sheet1.$A$1:$AMJ$65536;MOD(ROW(A1)-ROW(A$1);5)+1;INT((ROW(A1)-ROW(A$1))/5)*3+COLUMN(A1)-COLUMN($A1)+1)="";"";INDEX($Sheet1.$A$1:$AMJ$65536;MOD(ROW(A1)-ROW(A$1);5)+1;INT((ROW(A1)-ROW(A$1))/5)*3+COLUMN(A1)-COLUMN($A1)+1))
3 Row 2 Column groups into 2 Columns.ods
(8.66 KiB) Downloaded 145 times
Ken Johnson
AOO 4.1.3 on Ms Windows 10
Help improve this forum by clicking the EDIT button on your first post then adding "[Solved]" to its heading once a solution to your problem has been provided.
meldor
Posts: 10
Joined: Tue Jun 25, 2013 2:09 am

Re: Transposing GROUPS of cells

Post by meldor »

Thanks it seems to work just fine... One more thing: assuming all rows for each clump are non-void how could i do this for variable rows?
OpenOffice 3.3 on Windows 7
ken johnson
Volunteer
Posts: 918
Joined: Sun May 31, 2009 1:35 am
Location: Sydney, Australia

Re: Transposing GROUPS of cells

Post by ken johnson »

If you mean that each two column group could be any number of rows deep instead of each being three rows deep then I'm fairly sure you will need to use a Helper column that the INDEX function's row and column parameters can use to determine the correct values to use.
See if the formulae on Sheet 4 acting on the data in Sheet3 are behaving the way you are wanting...
Variable Row 2 Column groups into 2 Columns.ods
(11.8 KiB) Downloaded 149 times
Ken Johnson
AOO 4.1.3 on Ms Windows 10
Help improve this forum by clicking the EDIT button on your first post then adding "[Solved]" to its heading once a solution to your problem has been provided.
meldor
Posts: 10
Joined: Tue Jun 25, 2013 2:09 am

Re: Transposing GROUPS of cells

Post by meldor »

You are quite the ruler thanks.
OpenOffice 3.3 on Windows 7
Post Reply