Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default how do i calculate the number of hours between 11:00 am & 4:00 pm

I need a formula or function that will calculate the number of hours between
11:00 am and 4:00 pm = 5 hours.

Thanks, Connie Smith
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default how do i calculate the number of hours between 11:00 am & 4:00 pm

=int((B1-A1)*24)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Connie" wrote in message
...
I need a formula or function that will calculate the number of hours
between
11:00 am and 4:00 pm = 5 hours.

Thanks, Connie Smith



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default how do i calculate the number of hours between 11:00 am & 4:00 pm

Hi

With end time in B1 and start time in A1 try
=B1-A1
Format the cell FormatCellsNumberCustom hh:mm

If you want to sum all of the resulting values, then that cell would
need to be formatted at [h]:mm to allow it to total past 24 hours.

--
Regards

Roger Govier


"Connie" wrote in message
...
I need a formula or function that will calculate the number of hours
between
11:00 am and 4:00 pm = 5 hours.

Thanks, Connie Smith



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default how do i calculate the number of hours between 11:00 am & 4:00pm

Bob Phillips wrote:
=int((B1-A1)*24)

I tried this with 9:45 AM start time and 12:00 PM end time and it
calculates 2 hrs not 2.25. Any way to make it do that?
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default how do i calculate the number of hours between 11:00 am & 4:00 pm

The INT function will return an integer value. If you want to display
fractions of an hour then just remove that and format the cell as
number with 2 dp, i.e.:

=(B1-A1)*24

Hope Bob doesn't mind me taking this up - he's probably in bed by now
!! <bg

Pete

nospam wrote:

Bob Phillips wrote:
=int((B1-A1)*24)

I tried this with 9:45 AM start time and 12:00 PM end time and it
calculates 2 hrs not 2.25. Any way to make it do that?


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 hours worked larry_saudi New Users to Excel 5 October 11th 06 07:46 PM
Is it possible to convert a number into hours and minutes le clef Excel Worksheet Functions 4 April 1st 06 05:43 PM
calculate number of days btw dates Nelson Excel Worksheet Functions 2 March 2nd 06 01:02 AM
Creat a formula to calculate working hrs according to number of da Bren Excel Worksheet Functions 2 August 1st 05 12:57 PM
calculate average hours and minutes llstephens Excel Worksheet Functions 4 November 30th 04 03:47 PM


All times are GMT +1. The time now is 02:28 PM.

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"