Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtracting more than 24 hours from a Date/Time

I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Subtracting more than 24 hours from a Date/Time

=A1-TIME(70,,)


"KSCGerald" wrote:

I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Subtracting more than 24 hours from a Date/Time

=A2-B2/24, if your original date and time are in A2 and your 70 in B2.
--
David Biddulph

"KSCGerald" wrote in message
...
I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Subtracting more than 24 hours from a Date/Time

=A1-(70/24)

It should give you 1/7/08 08:20:44, not 1/8/08 08:20:44


"Teethless mama" wrote:

=A1-TIME(70,,)


"KSCGerald" wrote:

I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Subtracting more than 24 hours from a Date/Time

Isn't that what the OP had already done? Doesn't that suffer from the fact
that it wraps round at 24 hours, hence the OP's comment about 70 hours being
treated as 22 hours, i.e. =MOD(70,24)?
Hence the need to use =A1-70/24
--
David Biddulph

"Teethless mama" wrote in message
...
=A1-TIME(70,,)


"KSCGerald" wrote:

I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours,
it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the
70
hours to get the actual date and time (1/08/08 08:20:44)?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtracting more than 24 hours from a Date/Time

Thanks Mama, that works!

"Teethless mama" wrote:

=A1-(70/24)

It should give you 1/7/08 08:20:44, not 1/8/08 08:20:44


"Teethless mama" wrote:

=A1-TIME(70,,)


"KSCGerald" wrote:

I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtracting more than 24 hours from a Date/Time

Thanks David, that works!

"David Biddulph" wrote:

=A2-B2/24, if your original date and time are in A2 and your 70 in B2.
--
David Biddulph

"KSCGerald" wrote in message
...
I am working on a schedule and I need to subtract 70 hours from the event
time. If the event time is 1/10/08 06:20:44, when I subtract 70 hours, it
only subtracts 22 hours with the TIME function, hence calculating 1/9/08
08:20:44. Is there some way to get Excel to automatically subtract the 70
hours to get the actual date and time (1/08/08 08:20:44)?




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
Subtracting Date/Time Sapphyre Excel Discussion (Misc queries) 4 August 21st 07 01:42 AM
adding/subtracting # of hours from a time HRobertson Excel Discussion (Misc queries) 5 July 12th 07 04:06 PM
Subtracting hours from time Kerry O''''Brien Excel Discussion (Misc queries) 1 October 4th 06 08:31 PM
Subtracting 2 hours from time Chappy Excel Discussion (Misc queries) 2 June 4th 06 05:25 AM
Subtracting Cells formatted with Date AND Time to get hours? mcr1 - ExcelForums.com Excel Discussion (Misc queries) 1 July 5th 05 09:08 AM


All times are GMT +1. The time now is 10:29 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"