[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

excel question

Posted on 2013-06-18
3
Medium Priority
?
298 Views
Last Modified: 2013-06-21
I have a 1 column Excel file with logical groupings of 5 records per group.  I want to "rotate" the data, 5 records at a time, and end up with 5 column Excel file.

If there an easy Excel way to do this?   I think SQL has a way to rotate data.
0
Comment
Question by:HLRosenberger
3 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 39257112
If your data starts in cell A1 then enter this formula in C1

=INDEX($A:$A,ROW($A$1)-1+COLUMN()-COLUMN($C$1)+1+5*(ROW()-ROW($C$1)),1)

and copy it down and across
0
 
LVL 24

Expert Comment

by:Steve
ID: 39257127
If the data is in a data table you can use a CROSSTAB query to restructure your result.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 39266237
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question