Solved

Spreading the data in the Excel sheet

Posted on 2011-09-07
2
195 Views
Last Modified: 2012-05-12
Hi,

Pls refer attached sample data sheet. I have about 30 Locations(Have shown only 3) and 4 shifts(A1-A4). I want them laid out in the format shown below. I did that by copy pasting the 3 sample locations shown, but  I didnt want to copy paste for all 30 locations and wanted to know if there was an easier way out.

Thanks,

 sampledata.xlsx
0
Comment
Question by:j1981
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 250 total points
ID: 36499927
You might try copying across the following formulas for cells B11:B13:
=INDEX($A$4:$A$33,1+(COLUMN()-COLUMN($B$11))/4)
=INDEX($C$1:$F$1,MOD(COLUMN()-COLUMN($B$12),4)+1)
=INDEX($C$4:$G$33,1+(COLUMN()-COLUMN($B$13))/4,MOD(COLUMN()-COLUMN($B$13),4)+1)

These formulas are designed to be used wherever you decide to put the table--just update the cell references.
0
 
LVL 10

Assisted Solution

by:SANTABABY
SANTABABY earned 250 total points
ID: 36500378
Attached is another solution attempted using VBA.
You can enter any number of locations and any number of shifts under the specified column and generate the matrix in your way.
I've added another sheet with sample data and code.
sampledata.xlsm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now