#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Subtracting Time

Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). I wanted to subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what would
I need to do.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Subtracting Time

Time is stored as a fractional number in excel. 1 Hour = 1/24, so, if you
just wanted to be able to type a 1 or a 0.5 to subtract that from 1 actual
time to get another actual time, you would want to /24 to get it right.
A1: 8:00 AM
B1: 1 .... time to subtract, in hours
C1: =A1-B1/24
You could also use the TIME function as an alternative:
C1: =A1-TIME(B1,0,0)

Be aware, if you are just using time, and you try to subtract a time to
before midnight (i.e.: B1 above 8), then you might wanna switch to the 1904
date system to avoid the ##################### response.
--
** John C **


"Kris" wrote:

Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). I wanted to subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what would
I need to do.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Subtracting Time

If you have the time 8:00 in A1 then use this

=A1-TIME(1,0,0) to subtract one hour...
Second parameter (first 0) represent minutes and third seconds...

=A1-TIME(0,30,0) to subtract half an hour...

"Kris" wrote:

Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). I wanted to subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what would
I need to do.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Subtracting Time

Your first post was already answered

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Kris" wrote in message
...
Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). I wanted to
subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what
would
I need to do.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Subtracting Time

try this

start time - 8.00 AM in cell A1
end time - 5:00 PM in cell B1
Break - 1 - in cell C1

in D1 put this formula

=(B1-A1)-(C1/24)



On Nov 17, 10:13*pm, Kris wrote:
Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). *I wanted to subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what would
I need to do.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Subtracting Time

Please remember, do not double post.
--
** John C **

"Kris" wrote:

Here is the scenario.

If I had a cell that had 8:00 formated in time (h:mm). I wanted to subtract
1 from it to get an answer of 7:00, what would I need to do.

or lets say I had 8:00 and wanted to subtract .5, to return 7:30, what would
I need to do.

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 a duration from a time to calculate a time. SRadmin Excel Discussion (Misc queries) 5 October 2nd 08 08:04 PM
Subtracting Dates to get total time work time excluding weekends Jon Ratzel[_2_] Excel Discussion (Misc queries) 2 January 31st 08 10:36 PM
Subtracting Time can it be done with a fx? tpayne Excel Discussion (Misc queries) 5 July 13th 07 06:50 PM
subtracting time Sam Excel Worksheet Functions 1 May 27th 06 09:55 AM
Subtracting time Pantryman Excel Worksheet Functions 6 November 24th 04 08:53 PM


All times are GMT +1. The time now is 06:04 PM.

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

About Us

"It's about Microsoft Excel"