Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default How to Calculate Time

Dear All,
I have date field in Column A (e.g. 02/06/2005) and a time field in Column B (e.g. 05:15), how can I deduct 8 hours from this 2 fields (e.g. the results show 01/06/2005 21:15)??

Thanks a lot
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=A1+B1-time(8,0,0) and format as date/time.

--
HTH

Bob Phillips

"henryyhw" wrote in message
...

Dear All,
I have date field in Column A (e.g. 02/06/2005) and a time field in
Column B (e.g. 05:15), how can I deduct 8 hours from this 2 fields
(e.g. the results show 01/06/2005 21:15)??

Thanks a lot


--
henryyhw



  #3   Report Post  
swatsp0p
 
Posts: n/a
Default


Format cell C1 as Custom: dd/mm/yyyy hh:mm and enter this formula:

=(A1+B1)-0.333

returns 01/06/2005 21:15

note that 8 hours is 0.333 of one day

Does this work for you?

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=375947

  #4   Report Post  
Junior Member
 
Posts: 2
Default

It works, thanks a lot for your help.

Quote:
Originally Posted by swatsp0p
Format cell C1 as Custom: dd/mm/yyyy hh:mm and enter this formula:

=(A1+B1)-0.333

returns 01/06/2005 21:15

note that 8 hours is 0.333 of one day

Does this work for you?

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=375947
  #5   Report Post  
swatsp0p
 
Posts: n/a
Default


I'm glad it worked for you. Thanks for the feedback, it is always
appreciated.

Cheers!

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=376222

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate time difference to the half hour Ken Ivins Excel Worksheet Functions 6 July 17th 05 05:48 PM
Calculate time Rao Ratan Singh Excel Discussion (Misc queries) 2 March 17th 05 02:28 PM
How to calculate time between two dates? ByGolly! Setting up and Configuration of Excel 1 February 12th 05 03:42 PM
calculate difference in time to hours Chris Excel Worksheet Functions 5 January 18th 05 06:07 PM
calculate negative or positve difference in time kpmoore Excel Discussion (Misc queries) 2 January 5th 05 01:35 AM


All times are GMT +1. The time now is 09:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"