adding/subtracting hours from times and dates

keke

New Member
Joined
Feb 24, 2002
Messages
2
I have a spreadsheet that lists local times for future events all over the world in the following format: yymmddhhmmss. An example would be an event in Australia March 3 at 14:00 local time: 020303140000. When I look at the time in the formula field above the spreadsheet the time is formatted as "03/03/2002 02:00:00 PM" but it appears as I have noted above in the spreadsheet itself. I need to subtract or add hours to get to UTC (eg. Australia is +11 UTC), and then add/subtract more hours to get to my local time (-8 UTC in this case).

This is probably simple but I can't get it to work. Any help is welcome!!

keke
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Excel store date/time values as days (and fractional parts thereof). -8/24 subtracts 8 hours; +11/24 adds 11 hours.
 
Upvote 0
On 2002-02-25 09:33, Mark W. wrote:
Excel store date/time values as days (and fractional parts thereof). -8/24 subtracts 8 hours; +11/24 adds 11 hours.

So how would that work? Where would I add and subtract? Would it be =(B1-(8/24)) if B1 is the date+time 020303140000 ?

keke
 
Upvote 0
On 2002-02-25 09:51, keke wrote:
On 2002-02-25 09:33, Mark W. wrote:
Excel store date/time values as days (and fractional parts thereof). -8/24 subtracts 8 hours; +11/24 adds 11 hours.

So how would that work? Where would I add and subtract? Would it be =(B1-(8/24)) if B1 is the date+time 020303140000 ?

keke

Yes, and the parentheses aren't necessary (=B1-8/24 will suffice) because Excel will evaluate the division operator before the minus operator.
This message was edited by Mark W. on 2002-02-25 09:55
 
Upvote 0

Forum statistics

Threads
1,223,315
Messages
6,171,410
Members
452,399
Latest member
oranges

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