working with times and dates

paulsolar

Well-known Member
Joined
Aug 21, 2013
Messages
691
Office Version
  1. 365
Hi All

I've learned quite a lot about working with dates but never worked with times.

I have to do some tidal calculations and need to calculate a time 3 hours and 5 mins before high water (I literally have to deduct 3 hours and 5 mins from the high water time which I have in column B) the problem is that if the high water time is say 02.30 hrs, deducting 3 hours and 5 mins the date would be the day before, the dates are in column A.

What I would like to do is in column E have the correct date, the date will always be the same as that in column A unless deducting 3 hours and 5 mins moves it back to day before and enter this in column F have the revised time.

Sounds simple:rofl:, I've been at this all afternoon going around in ever decreasing circles and not getting anywhere.

Is there a simple solution to this?? I am on the verge of throwing my laptop out of the window.

Any help would be greatly appreciated

Cheers

Paul
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Something like this?
Excel Workbook
ABCDEF
1DateTime HTDateTime
29/2/20195:00 AM9/2/20191:55 AM
39/2/20192:30 AM9/1/201911:25 PM
49/6/20198:00 PM9/6/20194:55 PM
59/8/20191:25 AM9/7/201910:20 PM
Sheet
 
Upvote 0
Well Date and Time is really a single value. Its just like any other number where Date is to the left of the decimal and Time is to the Right.

Using Ahoy's mockup,
Code:
=A+B-TIMEVALUE("3:05")
Format to include the display of Time such as "m/d/yyyy h:mm AM/PM"
 
Upvote 0
Hi Guys

thanks very much for you replies. I have managed to get it done now with your help. I was having a real problem with this.

Thanks Again

Paul
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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