G
Guest
Hi,
I have a list of data comprising movement events and their starting and
ending locations that looks like this (its much longer):
ID TRAIN Start Finish ORIG DEST 1ST CONNECT
1 A4589 1 2/11/07 0:01 2/11/07 3:25 MARKIL BATCRK 18
2 H5306 1 2/11/07 0:01 2/11/07 2:31 EFLINT PTHURO
3 H5316 1 2/11/07 0:01 2/11/07 2:16 PTHURO EFLINT
4 Q1957 1 2/11/07 0:02 2/12/07 7:00 NEWORL CHIINT
5 A4108 1 2/11/07 0:05 2/11/07 7:30 WISRAP FONLAC
6 M3437 1 2/11/07 0:30 2/11/07 21:00 JACKMS SYMING
7 A4038 1 2/11/07 1:00 2/11/07 8:55 STEPOI SITASC
8 A4198 1 2/11/07 1:00 2/11/07 4:40 FONLAC GREBAY
9 A4329 1 2/11/07 1:15 2/12/07 11:20 DECATU MEMPHI
10 M3017 1 2/11/07 1:15 2/11/07 20:50 BATROU MEMPHI
11 A4158 1 2/11/07 1:15 2/11/07 6:30 GREBAY STEPOI
12 A4317 1 2/11/07 1:30 2/12/07 10:55 MEMPHI DECATU
13 A4379 1 2/11/07 2:30 2/11/07 6:25 CHAMPA MARKIL
14 A4426 1 2/11/07 3:30 2/11/07 6:30 PONTIA FLAROC
15 A4887 1 2/11/07 4:00 2/11/07 14:00 JACKMS MOBILE
16 M3207 1 2/11/07 4:30 2/11/07 23:59 MEMPHI GEISMA
17 E2516 1 2/11/07 4:50 2/11/07 19:15 DETROI GIBSON
18 A4566 1 2/11/07 5:00 2/11/07 14:00 BATCRK PONTIA
I am trying to figure out how to create a formula that evaluates subsequent
events (IDs) in the list and returns the ID of the first subsequent event
who's departure location matches the arrival location of the event being
evaluated, and the start time of the subsequent event is >= of the finish
time of the event being evaluated. as in the example, the solution for line
1 would be 18.
The actual spreadsheet I am working on contains 14 days of scheduled events
(about 1600 lines) - I have been able to generate about 3 days of data using
a 240 x 240 table, but I run out memory and end up with a 50 meg spreadsheet
that doesn't open when I try to expand the table to multiple spreadsheets in
a workbook...I'm hoping someone with VBA knowledge can offer some advice?
Thanks in advance,
JDA
I have a list of data comprising movement events and their starting and
ending locations that looks like this (its much longer):
ID TRAIN Start Finish ORIG DEST 1ST CONNECT
1 A4589 1 2/11/07 0:01 2/11/07 3:25 MARKIL BATCRK 18
2 H5306 1 2/11/07 0:01 2/11/07 2:31 EFLINT PTHURO
3 H5316 1 2/11/07 0:01 2/11/07 2:16 PTHURO EFLINT
4 Q1957 1 2/11/07 0:02 2/12/07 7:00 NEWORL CHIINT
5 A4108 1 2/11/07 0:05 2/11/07 7:30 WISRAP FONLAC
6 M3437 1 2/11/07 0:30 2/11/07 21:00 JACKMS SYMING
7 A4038 1 2/11/07 1:00 2/11/07 8:55 STEPOI SITASC
8 A4198 1 2/11/07 1:00 2/11/07 4:40 FONLAC GREBAY
9 A4329 1 2/11/07 1:15 2/12/07 11:20 DECATU MEMPHI
10 M3017 1 2/11/07 1:15 2/11/07 20:50 BATROU MEMPHI
11 A4158 1 2/11/07 1:15 2/11/07 6:30 GREBAY STEPOI
12 A4317 1 2/11/07 1:30 2/12/07 10:55 MEMPHI DECATU
13 A4379 1 2/11/07 2:30 2/11/07 6:25 CHAMPA MARKIL
14 A4426 1 2/11/07 3:30 2/11/07 6:30 PONTIA FLAROC
15 A4887 1 2/11/07 4:00 2/11/07 14:00 JACKMS MOBILE
16 M3207 1 2/11/07 4:30 2/11/07 23:59 MEMPHI GEISMA
17 E2516 1 2/11/07 4:50 2/11/07 19:15 DETROI GIBSON
18 A4566 1 2/11/07 5:00 2/11/07 14:00 BATCRK PONTIA
I am trying to figure out how to create a formula that evaluates subsequent
events (IDs) in the list and returns the ID of the first subsequent event
who's departure location matches the arrival location of the event being
evaluated, and the start time of the subsequent event is >= of the finish
time of the event being evaluated. as in the example, the solution for line
1 would be 18.
The actual spreadsheet I am working on contains 14 days of scheduled events
(about 1600 lines) - I have been able to generate about 3 days of data using
a 240 x 240 table, but I run out memory and end up with a 50 meg spreadsheet
that doesn't open when I try to expand the table to multiple spreadsheets in
a workbook...I'm hoping someone with VBA knowledge can offer some advice?
Thanks in advance,
JDA