ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   In Excel, I want to convert Eastern time to pacific time (https://www.excelbanter.com/excel-discussion-misc-queries/80905-excel-i-want-convert-eastern-time-pacific-time.html)

dmunhall

In Excel, I want to convert Eastern time to pacific time
 
how do I format a cell to subtract 3 hours from another cell?

Elkar

In Excel, I want to convert Eastern time to pacific time
 
There's probably a more efficient way to do this, but I so rarely use Times
in my work, I'm not sure. But if you're just working with Time and not
Dates, this works:

=TIME(IF(HOUR(A1)<3,21+HOUR(A1),HOUR(A1)-3),MINUTE(A1),SECOND(A1))

HTH,
Elkar


"dmunhall" wrote:

how do I format a cell to subtract 3 hours from another cell?


GregP1962

In Excel, I want to convert Eastern time to pacific time
 

Can't you just subtract 3 from the hour value?



Example. Say cell A1 has Eastern time. You want cell b4 to reflect
pacific time.

In cell b4 enter "=A1-3"


Or, you could just move to California.


--
GregP1962
------------------------------------------------------------------------
GregP1962's Profile: http://www.excelforum.com/member.php...o&userid=33063
View this thread: http://www.excelforum.com/showthread...hreadid=528767


Ron Coderre

In Excel, I want to convert Eastern time to pacific time
 
Try something like this:

For a time in A1
B1: =A1-3*1/24

The cells must be formatted as Time to display correctly.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"dmunhall" wrote:

how do I format a cell to subtract 3 hours from another cell?


daddylonglegs

In Excel, I want to convert Eastern time to pacific time
 

Ron Coderre Wrote:
Try something like this:

For a time in A1
B1: =A1-3*1/24


But you'll have a problem with this if, for instance A1 contains the
time 02:00

Try

=MOD(A1-"03:00",1)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528767



All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com