• 579K Members
• 4,995 Online
• 701K Conversations

Highlighted
New Contributor

Can anyone help me with a time formula.

Left hand columns are example of what I'm trying to achieve.

HW Oban changes daily (manually input) all other locations change automatically through formula.

Thanks!

 -- Friday 30/3/2018 HW (BST) -- -- Friday 30/3/2018 HW (BST) -- HW Oban 18:21 HW Oban 18:21 HW Crinan (-0:47) 17:34 HW Crinan (-0:47) ###### Dorus, C'veckan, Cuan turn at 16:04 Dorus, C'veckan, Cuan turn at (-2:17:00)HW Oban ###### Craobh (-1:00) 17:21 Craobh (-1:00) ###### Easdale (-0:25) 17:56 Easdale (-0:25) West Loch Tarbert (-3:30) 14:51 West Loch Tarbert (-3:30) Small Isles, Jura (-3:00) 15:21 Small Isles, Jura (-3:00) Duart & Arisaig (+0:15) 18:36 Duart & Arisaig (+0:15) Lochaline (+0:12) 18:33 Lochaline (+0:12) Tobermory (+0:16) 18:37 Tobermory (+0:16) Lochalsh/Kyleakin (+0:50) 19:11 Lochalsh/Kyleakin (+0:50) Canna (+0:40) 19:01 Canna (+0:40) Mull of Kintyre (-5:00) 13:21 Mull of Kintyre (-5:00) Portree (+0:55) 19:16 Portree (+0:55) Bunessan (-0:15) 18:06 Bunessan (-0:15) DOVER (+5.30) 23:51 DOVER (+5.30) CLYDE (Inveraray) (-5:30) 12:51 CLYDE (Inveraray) (-5:30)
5 Replies
Highlighted

@pace36 , what do you change exactly, 18:21? What are other parameters for the formula, texts like (-0:47) in next row or that is result?

Better if you attach small sample file.

Highlighted

Hi Sergei

Columns A-C are example.

I would input HW time of tide in cell H2 (& height in G2)

Formula would then place HW Craobh in cell H7 - Time is H2(18:21) less G7 (-1-00) = 17:21

Same formula for each port listed rows 8-20

H4 is 2:17hrs before H2 - Different formula

Hope that helps...

Highlighted

You need to convert your texts with time difference into the time (which is actually decimal number) and taking into account what time is always shall be positive.

That could be like

`=\$H\$2+IF(MID(G7,2,1)="-",-1,1)*MID(G7,3,LEN(G7)-3)`

Works a treat - Thank you!

Highlighted