Reproducing a data table differently

Cyberbeing

New Member
Joined
Apr 3, 2013
Messages
5
Hello

Can someone please help with this?

I make a Manpower Plan like this.


MANPOWER PLAN
NAME1-Apr2-Apr3-Apr4-Apr5-Apr6-Apr7-Apr
NAME1AMPMNIGHTOFFAMPMNIGHT
NAME2OFFAMPMNIGHTOFFAMPM
NAME3NIGHTOFFAMPMNIGHTOFFAM
NAME4PMNIGHTOFFAMPMNIGHTOFF
NAME5AMPMNIGHTOFFAMPMNIGHT
NAME6OFFAMPMNIGHTOFFAMPM
NAME7NIGHTOFFAMPMNIGHTOFFAM
NAME8PMNIGHTOFFAMPMNIGHTOFF

<tbody>
</tbody>

I like to convert it automatically to this.

SCHEDULE
1-Apr2-Apr3-Apr4-Apr5-Apr6-Apr7-Apr
AM
NAME1NAME2NAME3NAME4NAME1NAME2NAME3
NAME5NAME6NAME7NAME8NAME5NAME6NAME7
PM
NAME4NAME1NAME2NAME3NAME4NAME1NAME2
NAME8NAME5NAME6NAME7NAME8NAME5NAME6
NIGHT
NAME3NAME4NAME1NAME2NAME3NAME4NAME1
NAME7NAME8NAME5NAME6NAME7NAME8NAME5
OFF
NAME2NAME3NAME4NAME1NAME2NAME3NAME4
NAME6NAME7NAME8NAME5NAME6NAME7NAME8

<tbody>
</tbody>

Could you tell me how to do it.
I am thankful for all help.
Regards
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Use the macro here to convert your data to first normal form:

http://spreadsheetpage.com/downloads/xl/makedatabasetable.txt

Then you can use Excel's built-in data analysis features, like AutoFilter and Pivot Tables.


Thank you Andrew for replying. The filter function is not ideal in my case because the 2nd table need to help create the daily deployment of about 50 crew members interchangeable serving about 5 posts. So the person doing should only see the members scheduled for that shift. Here is the sample of the table. With many thanks.

DAILY DEPLOYMENT
1-Apr2-Apr3-Apr
Post 1Post 2Post 1Post 2Post 1Post 2
AMAMAM
NAME1NAME5NAME2NAME6NAME3NAME7
PMPMPM
NAME4NAME8NAME1NAME5NAME2NAME6
NIGHTNIGHTNIGHT
NAME3NAME7NAME4NAME8NAME1NAME5

<colgroup><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
Can't you sort your data to get the output you want? here's what I created by filtering out OFF and using a Custom List to sort:


Excel 2010
JKL
1NameDateShift
2NAME101-AprAM
3NAME501-AprAM
4NAME401-AprPM
5NAME801-AprPM
6NAME301-AprNIGHT
7NAME701-AprNIGHT
10NAME202-AprAM
11NAME602-AprAM
12NAME102-AprPM
13NAME502-AprPM
14NAME402-AprNIGHT
15NAME802-AprNIGHT
Sheet1
 
Upvote 0
Thanks, I am going to try your method on the full list for about 50 members over a full month. Could you tell me how you work the Customs Lists. Regards
 
Upvote 0
Sorry for late reply Andrew, was night this side of the world. I use Excel 2010.

If I may clarify, the worksheets are to ensure that the Supervisor doing the Daily Deployment does not

[1] Enter a name that is not on the list or

[2] repeat the same name for 2 shifts or different locations
[e.g. Joe should not appear on AM and PM shift for the same day, and/or for Site 1 and Site 2]

[3] enter a name that is not scheduled for the shift.

I have solved for [1] by using Data Validation and [2] by using Conditional Formatting.
I need to solve for [3] by for example allowing person the Supervisor see only names of crew that are scheduled for the date and the shift.

We are working with about 50 crew members per shift and serve 5 sites so that is about 150 names per day.
Also the Manpower Plan [we call it the Monthly Roster] is updated 4 weeks in advance so crew members know their work schedule well in advance.

I am grateful for your involvement. I will be away from the computer for about +12 hours so apologize in advance for late response.
With Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top