Solved

Spreading the data in the Excel sheet

Posted on 2011-09-07
2
193 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 80

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

743 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

9 Experts available now in Live!

Get 1:1 Help Now