ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   copying multiple rows to columns (https://www.excelbanter.com/excel-discussion-misc-queries/217672-copying-multiple-rows-columns.html)

Calvin

copying multiple rows to columns
 
i need to copy every 4th row and put it in its own column while using the
first row in each new column as its name. eg.

pepole fruit
boy apple
girl pear
man mango
fruit
apple
pear
mango

smartin

copying multiple rows to columns
 
calvin wrote:
i need to copy every 4th row and put it in its own column while using the
first row in each new column as its name. eg.

pepole fruit
boy apple
girl pear
man mango
fruit
apple
pear
mango


This might work for you: If the "master list" is in A1:Ax and you want
to bump 4 rows at a time into B1:B4, C1:C4, etc., try one of these
formulae in B1:B4 and fill right as needed:

=INDEX($A$1:$A$x,4*(COLUMN()-1)+ROW()) [fix $A$x to suit your range]

=OFFSET($A$1,4*(COLUMN()-1)+ROW()-1,) [no adjustment required]


All times are GMT +1. The time now is 08:14 PM.

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