Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default adding time in Excell

How do I create a formula that adds time, ie. 6:30am to 4:30pm = 10 hours?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default adding time in Excell

Hi

It is unclear what you want.
the 10 hours you show is the difference you get if you subtract 6:30 AM from
4:30 PM
With 6:30 AM in A1, and 4:30 PM in B1

Time difference =B1-A1 FormatCellsNumberCustom [h]:mm
If time is likely to go over a 24 hour period use
=MOD(B1-A1,1)

If you are staring with the time in A1, and want to add 10 hours to it to
show the result that is in B1 then either
=A1+TIME(10,0,0)
or
=A1+10/24
The latter is because Excel stores times as fractions of a day (24 hours)
--
Regards
Roger Govier



"Lauramc" wrote in message
...
How do I create a formula that adds time, ie. 6:30am to 4:30pm = 10
hours?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default adding time in Excell

See Chip Pearson's site for much info and formulas for working with times.

http://www.cpearson.com/excel/datetime.htm#AddingTimes


Gord Dibben MS Excel MVP


On Mon, 23 Jul 2007 16:12:02 -0700, Lauramc
wrote:

How do I create a formula that adds time, ie. 6:30am to 4:30pm = 10 hours?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default adding time in Excell

Subtract the earlier time from the later time:

=time(16,30,0)-time(6,30,0)
or point at the cells.

=a1-b1
(say)



Lauramc wrote:

How do I create a formula that adds time, ie. 6:30am to 4:30pm = 10 hours?


--

Dave Peterson
  #5   Report Post  
Junior Member
 
Location: Winters CA
Posts: 22
Default

Quote:
Originally Posted by Lauramc View Post
How do I create a formula that adds time, ie. 6:30am to 4:30pm = 10 hours?
It sounds like you want to subtract instead of add.

If A1 has 6:30 AM and A2 has 4:30 PM then =A2-A1 will return 10:00 AM.
Number formmating can be chosen to your taste.

If you are going across midnite (input 11PM and 1AM, expecting the result 2) then things get very dependant on your situation. The answer that I choose in that case (mostly) is to include date information when entering time. That has its problems, but other methods do as well.
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
how do i use the calculator at the same time i am using excell jimmy Setting up and Configuration of Excel 1 May 3rd 06 02:55 AM
Time log adding time from separate sheets teastman New Users to Excel 1 December 31st 05 04:14 PM
Adding time to date-time formatted cell tawtrey(remove this )@pacificfoods.com Excel Discussion (Misc queries) 4 August 12th 05 10:53 PM
Adding overscore to character in a cell in an Excell spreadsheet DrJoe Excel Discussion (Misc queries) 0 March 30th 05 04:47 PM
Why does Excell round-off figures when adding them? SandiG Excel Discussion (Misc queries) 1 December 9th 04 04:48 PM


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