Extract the number if it falls with in the time frame

aliaslamy2k

Active Member
Joined
Sep 15, 2009
Messages
416
Office Version
  1. 2019
Platform
  1. Windows
Dear Experts,

I am working on a project where i want to know if we can connect passengers within 45 min ( in a seperate cell to change the minutes as require) from schedule time of arrival (STA) and actual time of arrival ( ATA ) and connecting to another train with schedule time of departure (STD ) and actual time of departure keeping in mind of date change as well.

i.e : Arrival is 10 Jan 2015 23:59 and departure on 11 June 00:15.


ABCDEFGHIJKLM
Inboundin dateIn SectorSchedule time of Arrival (STA)Actual Time of Arrival (ATA)OutBoundOut DateOut SectorSchedule time of Departure (STD)Actual Time of Arrival (ATD)Result with STAResult with STDTotal passengers
Train110-Jan-15AAA23:500:15Train411-Jan-15EEE00:5500:57 8
Train211-Jan-15BBB0:100:45Train511-Jan-15FFF00:5501:03 10
Train311-Jan-15CCC5:000:59Train611-Jan-15GGG05:4505:45 1
Train41-Jan-15DDD6:1506:31Train71-Jan-15HHH07:0007:11 20

<colgroup><col><col><col><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Dear Experts,

Need your help to solve this problem.

Kind regards,
AB
 
Upvote 0

Forum statistics

Threads
1,215,113
Messages
6,123,165
Members
449,099
Latest member
bes000

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