
Originally Posted by
ck7
I have 2 tables of data on diff sheets:
Mining Location
shift_start location_description
1/01/2006 Close ROM
1/01/2006 Close ROM
2/01/2006 Ramp 3 South, Strip 14
2/01/2006 Ramp 3 South, Strip 14
2/01/2006 Ramp 5 West, Strip 6 Seam 4
3/01/2006 Ramp 5 West, Strip 6 Seam 4
3/01/2006 Ramp 3 North, Strip 14
3/01/2006 Ramp 5 West, Strip 6 Seam 4
4/01/2006 Ramp 3 North, Strip 14
4/01/2006 Wash Plant Stockpile
4/01/2006 Ramp 5 West, Strip 6 Seam 4
4/01/2006 Wash Plant Stockpile
4/01/2006 Ramp 5 West, Strip 6 Seam 4
4/01/2006 Ramp 3 North, Strip 14
5/01/2006 Ramp 3 North, Strip 14
5/01/2006 Ramp 3 North, Strip 14
5/01/2006 Wash Plant Stockpile
5/01/2006 Far ROM
5/01/2006 Wash Plant Stockpile
5/01/2006 Ramp 5 West, Strip 6 Seam 4
etc, etc
Train Data
train_number. Date Loaded
00000001 1/01/06
00000002 2/01/06
00000003 3/01/06
00000004 4/01/06
00000005 5/01/06
etc, etc
obviously there is a load of data (1400 rows for the locations table and 1000 for the train data).
Question 1: Given that there can be up to 6 locations/shift, I would like to line up the data such that the resulting table on a seperate sheet is like this:
train_number. shift_start location_description
00000001 1/01/2006 Close ROM
________ ________ Close ROM
00000002 2/01/2006 Ramp 3 South, Strip 14
________ ________ Ramp 3 South, Strip 14
________ ________ Ramp 5 West, Strip 6 Seam 4
00000003 3/01/2006 Ramp 5 West, Strip 6 Seam 4
________ ________ Ramp 3 North, Strip 14
________ ________ Ramp 5 West, Strip 6 Seam
etc, etc
**Underscores are denoting blank cells**
There is a third sheet of data:
ship_number. train_number
____ABC1 00000001
________ 00000002
________ 00000003
________ 00000004
________ 00000005
etc,etc
Then question 2: Can it be consolidated into this?
ship_number. train_number location_description
____ABC1 00000001 Close ROM
________ ________ Close ROM
________ 00000002 Ramp 3 South, Strip 14
________ ________ Ramp 3 South, Strip 14
________ ________ Ramp 5 West, Strip 6 Seam 4
________ 00000003 Ramp 5 West, Strip 6 Seam 4
________ ________ Ramp 3 North, Strip 14
________ ________ Ramp 5 West, Strip 6 Seam
Bookmarks