Forum Discussion
pace36
Apr 14, 2019Copper Contributor
Time formula please...
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....
SergeiBaklan
Apr 14, 2019Diamond Contributor
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.
- pace36Apr 14, 2019Copper Contributor
Hi Sergei
Thanks for replying.
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...
- SergeiBaklanApr 14, 2019Diamond Contributor
pace36 ,
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)
- pace36Apr 14, 2019Copper Contributor
Works a treat - Thank you!