Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Subracting times and dates

In Excel, how can I format a formula to subtract times? For example,
calculate the hours between 2300 hours and 0200 hours the following day.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Subracting times and dates

Fully qualify the date, i.e., enter the full date, Date & Time, e.g.,

3/21/2005 12:29 PM

Even if you format this cell just to view time, when you subtract the times,
it will show the correct difference in time, even if you should roll into the
next day.

http://HelpExcel.com

"Chrisbrot" wrote:

In Excel, how can I format a formula to subtract times? For example,
calculate the hours between 2300 hours and 0200 hours the following day.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Subracting times and dates

you also might need to format the result with the custom format of [h]:mm

Cheers
JulieD

"galimi" wrote in message
...
Fully qualify the date, i.e., enter the full date, Date & Time, e.g.,

3/21/2005 12:29 PM

Even if you format this cell just to view time, when you subtract the
times,
it will show the correct difference in time, even if you should roll into
the
next day.

http://HelpExcel.com

"Chrisbrot" wrote:

In Excel, how can I format a formula to subtract times? For example,
calculate the hours between 2300 hours and 0200 hours the following day.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Subracting times and dates

=MOD(B2-A2,1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chrisbrot" wrote in message
...
In Excel, how can I format a formula to subtract times? For example,
calculate the hours between 2300 hours and 0200 hours the following day.



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 times between dates and times in Excel Helio Excel Discussion (Misc queries) 1 March 25th 10 04:29 AM
Subracting Time. GEM Excel Worksheet Functions 6 January 29th 09 01:27 AM
adding and subracting credits dmedina Excel Worksheet Functions 2 November 30th 07 09:42 PM
Dates and times with PST,PDT oilers Excel Worksheet Functions 1 July 21st 05 09:50 PM
Subracting Dates to come up with the # of days between them KimberlyC Excel Worksheet Functions 8 December 20th 04 09:46 PM


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