Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dragonrana
 
Posts: n/a
Default How do I calculate hours in Excel

I have a start date and an end date.What I need is to give the difference in
hours? How do I do that?

i.e. 9:00AM (Start Date)
12:00 PM (End Date)

Result : 3 hours

Thanks.
  #2   Report Post  
Search33
 
Posts: n/a
Default How do I calculate hours in Excel

You should be able to just use a simple subtraction
for example, A1=9 am A2=12 pm A3=A2-A1 gives the result in A3 as 3:00 AM
you can then format A3 as custom and put h. This should give you 3

"Dragonrana" wrote:

I have a start date and an end date.What I need is to give the difference in
hours? How do I do that?

i.e. 9:00AM (Start Date)
12:00 PM (End Date)

Result : 3 hours

Thanks.

  #3   Report Post  
David McRitchie
 
Posts: n/a
Default How do I calculate hours in Excel

Time is measured as a fraction of a day. If you keep the
hh:mm or hh:mm:ss formatting you can calculated with time, but
Excel will not format negative times. If you have a total where
hours may reach or exceed 24 hours you want to format as
[hh]:mm to keep the hours from rolling off into days.

If you want to use time in a calculation that uses hours then you must
multiply the time by 24 for hours worked.

For more information on Dates and Times, and how to measure
time worked through midnight see these pages.
http://www.mvps.org/dmcritchie/excel/datetime.htm
http://www.cpearson.com/excel/datetime.htm


i;e.
B2: 22:50
C2: 03:50
D2: =C2-B2+(B2<C2)

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Search33" wrote in message ...
You should be able to just use a simple subtraction
for example, A1=9 am A2=12 pm A3=A2-A1 gives the result in A3 as 3:00 AM
you can then format A3 as custom and put h. This should give you 3

"Dragonrana" wrote:

I have a start date and an end date.What I need is to give the difference in
hours? How do I do that?

i.e. 9:00AM (Start Date)
12:00 PM (End Date)

Result : 3 hours

Thanks.



  #4   Report Post  
SteveG
 
Posts: n/a
Default How do I calculate hours in Excel


Bobbi,

You can use this formula.

=INT((B2-A2)*24)

This works when B2=12 PM and A2=9AM.

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=480694

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
Is it possible to calculate integrals with Excel? Francesco Excel Worksheet Functions 6 April 2nd 23 08:56 PM
Excel should calculate exponentials properly (right to left) expatrie Excel Worksheet Functions 5 April 26th 06 08:34 AM
How Excel & ACCPAC 6.1 calculate formulas???? Bass Mama1 Excel Worksheet Functions 1 February 9th 05 03:25 PM
CALCULATE HOURS WORKED Calculation of hours worked. Excel Discussion (Misc queries) 3 January 20th 05 06:01 PM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM


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