Active excel

humaila

New Member
Joined
Jul 20, 2013
Messages
7
Hi guys and girls and please help.
I am trying to make an "active excel sheet".
To be specific, imagine there is a boat travelling by a schedule and I want to show in a cell the actual port/status, next port/status name, time until next location, time until arrival/departure.
I have the schedule, but don't know where/how to start.
The reference point is now(date&time).
The schedule is like this, 1st 10 days of July. The fact is that if I reffer to DAY, I have missing days, like 07/02/2019, when the boat sails all 2nd of July. Same story with 4th, 10th etc.
Thanks and sorry if there is something simillar but had no idea what to search for.
Regards!

[TABLE="width: 364"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]ARRIVAL[/TD]
[TD]Location[/TD]
[TD]DEPARTURE[/TD]
[/TR]
[TR]
[TD]07/01/2019 7:00:00[/TD]
[TD]Bruges[/TD]
[TD]07/01/2019 14:59:59[/TD]
[/TR]
[TR]
[TD]07/01/2019 15:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/03/2019 6:59:59[/TD]
[/TR]
[TR]
[TD]07/03/2019 7:00:00[/TD]
[TD]Copenhagen[/TD]
[TD]07/03/2019 16:59:59[/TD]
[/TR]
[TR]
[TD]07/03/2019 17:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/05/2019 8:59:59[/TD]
[/TR]
[TR]
[TD]07/05/2019 9:00:00[/TD]
[TD]Stockholm[/TD]
[TD]07/05/2019 18:59:59[/TD]
[/TR]
[TR]
[TD]07/05/2019 19:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/06/2019 6:59:59[/TD]
[/TR]
[TR]
[TD]07/06/2019 7:00:00[/TD]
[TD]Visby[/TD]
[TD]07/06/2019 16:59:59[/TD]
[/TR]
[TR]
[TD]07/06/2019 17:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/07/2019 8:59:59[/TD]
[/TR]
[TR]
[TD]07/07/2019 9:00:00[/TD]
[TD]Tallinn[/TD]
[TD]07/07/2019 17:59:59[/TD]
[/TR]
[TR]
[TD]07/07/2019 18:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/08/2019 6:59:59[/TD]
[/TR]
[TR]
[TD]07/08/2019 7:00:00[/TD]
[TD]St Petersburg[/TD]
[TD]07/09/2019 17:59:59[/TD]
[/TR]
[TR]
[TD]07/09/2019 18:00:00[/TD]
[TD]At Sea[/TD]
[TD]07/11/2019 8:59:59[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
This should get you started


Book1
ABCDEF
1ARRIVALLocationDEPARTURE
207/01/2019 07:00Bruges07/01/2019 14:59CurrentAt Sea
307/01/2019 15:00At Sea07/03/2019 06:59NextStockholm
403/07/2019 07:00Copenhagen03/07/2019 16:59Due05/07/2019 09:00
503/07/2019 17:00At Sea05/07/2019 08:59
605/07/2019 09:00Stockholm05/07/2019 18:59
707/05/2019 19:00At Sea07/06/2019 06:59
807/06/2019 07:00Visby07/06/2019 16:59
907/06/2019 17:00At Sea07/07/2019 08:59
1007/07/2019 09:00Tallinn07/07/2019 17:59
1107/07/2019 18:00At Sea07/08/2019 06:59
1207/08/2019 07:00St Petersburg07/09/2019 17:59
1307/09/2019 18:00At Sea07/11/2019 08:59
Summary
Cell Formulas
RangeFormula
F2{=INDEX($B$2:$B$13,MATCH(1,($A$2:$A$13<=NOW())*($C$2:$C$13>=NOW()),0))}
F3{=INDEX($B$2:$B$13,MATCH(1,($A$2:$A$13<=NOW())*($C$2:$C$13>=NOW()),0)+1)}
F4{=INDEX($A$2:$A$13,MATCH(1,($A$2:$A$13<=NOW())*($C$2:$C$13>=NOW()),0)+1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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