#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Subract hours

I have a cell formatted as mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: 09/30/08 16:00 result should read as 09/30/08 13:00.
Thanks for any help.
Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Subract hours

Try this:

=A1 - 3/24

as time is stored internally as fractions of a 24-hour day. If the 3
is in a cell, like B1:

=A1 - B1/24

Format appropriately.

Hope this helps.

Pete

On Sep 29, 7:04*pm, SteveR wrote:
I have a cell formatted as * mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: *09/30/08 16:00 *result should read as 09/30/08 13:00.
Thanks for any help.
Steve


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Subract hours

=cell-time(3,0,0)

or

=cell-(3/24)



--


Regards,


Peo Sjoblom

"SteveR" wrote in message
...
I have a cell formatted as mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: 09/30/08 16:00 result should read as 09/30/08 13:00.
Thanks for any help.
Steve



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Subract hours

Hi,

With a correctly formatted date/time in A1 try this.

=A1-TIME(3,0,0)

Mike

"SteveR" wrote:

I have a cell formatted as mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: 09/30/08 16:00 result should read as 09/30/08 13:00.
Thanks for any help.
Steve

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Subract hours

Try this:

A1 = 09/30/08 16:00

=A1-TIME(3,0,0)

Format as desired

--
Biff
Microsoft Excel MVP


"SteveR" wrote in message
...
I have a cell formatted as mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: 09/30/08 16:00 result should read as 09/30/08 13:00.
Thanks for any help.
Steve





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Subract hours

Hi,

Suppose you want to do the subtraction in cell A2 with the original value in
A1, one formula would be:
=A1-3/24

Or if you want to enter the number of hours to add or subtract in A2 and
have the result display in A3, enter in A3
=A1-A2/24

--
Thanks,
Shane Devenshire


"SteveR" wrote:

I have a cell formatted as mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: 09/30/08 16:00 result should read as 09/30/08 13:00.
Thanks for any help.
Steve

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Subract hours

On Sep 29, 11:21*am, ShaneDevenshire
wrote:
Hi,

Suppose you want to do the subtraction in cell A2 with the original value in
A1, one formula would be:
=A1-3/24

Or if you want to enter the number of hours to add or subtract in A2 and
have the result display in A3, enter in A3
=A1-A2/24

--
Thanks,
Shane Devenshire



"SteveR" wrote:
I have a cell formatted as * mm/dd/yy hh:mm and I need to subract 3
hours from this value.
example: *09/30/08 16:00 *result should read as 09/30/08 13:00.
Thanks for any help.
Steve- Hide quoted text -


- Show quoted text -


Thanks everybody! Steve
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
wages - multiply hours and minutes by number of hours worked Carol (Australia) Excel Discussion (Misc queries) 6 April 1st 07 01:16 AM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
add and subract in one sum k1ngy Excel Worksheet Functions 3 June 17th 06 09:58 PM
Calculated Pivot table field on YTD £(subract Mar-feb)=month John Excel Worksheet Functions 1 January 6th 06 12:02 AM
how to subract B column from top to bottom pwseipp Excel Worksheet Functions 1 November 28th 04 11:03 AM


All times are GMT +1. The time now is 04:17 AM.

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"