Excel Help

jassa

New Member
Joined
Feb 7, 2014
Messages
37
Office Version
  1. 365
Hi All,

Hopefully i wont confuse this matter.

I have for example a bus timetable.

[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64, align: right"]2[/TD]
[TD="width: 64, align: right"]3[/TD]
[TD="width: 64, align: right"]4[/TD]
[TD="width: 64, align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]110[/TD]
[TD="align: right"]120[/TD]
[/TR]
</tbody>[/TABLE]

The top row and left column are the bus stops. The double and triple numbers are how long it takes for the bus to make it across as a maximum so should always be within this time.

Is their a formulae i can use to find out if i have the time the bus leave and arrives using the terminals as a reference to how long it should take and if it made it within that time.

Any help would be helpful.

Many thanks.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Excel 2016 (Windows) 32 bit
ABCDEFGH
12345Depart Terminal5
2260708090Depart Time17:00
3370809090Arrive Terminal5
44809090100Arrive Time18:30
5590100110120Target Met?Yes
Sheet1
Cell Formulas
RangeFormula
H5=IF($H$4<=($H$2+TIME(0,INDEX($A$1:$E$5,MATCH($H$1,$A$1:$A$5,0),MATCH($H$3,$A$1:$E$1,0)),0)),"Yes","No")


WBD
 
Upvote 0

Excel 2016 (Windows) 32 bit
ABCDEFGH
12345Depart Terminal5
2260708090Depart Time17:00
3370809090Arrive Terminal5
44809090100Arrive Time18:30
5590100110120Target Met?Yes
Sheet1
Cell Formulas
RangeFormula
H5=IF($H$4<=($H$2+TIME(0,INDEX($A$1:$E$5,MATCH($H$1,$A$1:$A$5,0),MATCH($H$3,$A$1:$E$1,0)),0)),"Yes","No")


WBD
 
Upvote 0
Hi Dixon,

This worked perfectly. Many Thanks :) :) :) :)


Excel 2016 (Windows) 32 bit
ABCDEFGH
Depart Terminal
Depart Time
Arrive Terminal
Arrive Time
Target Met?Yes

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]

[TD="align: right"]5[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]

[TD="align: right"]17:00[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]

[TD="align: right"]5[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"][/TD]

[TD="align: right"]18:30[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]110[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]H5[/TH]
[TD="align: left"]=IF($H$4<=($H$2+TIME(0,INDEX($A$1:$E$5,MATCH($H$1,$A$1:$A$5,0),MATCH($H$3,$A$1:$E$1,0)),0)),"Yes","No")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



WBD
 
Upvote 0
@jassa,

In the future, please at least make an attempt at a meaningful title. "Excel help" covers every question in this section of the forum!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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