Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
monish74
 
Posts: n/a
Default calculate hours on work sheet

I am trying to calculate hours on a work schedual with 1 cell hours worked
like 8:15am-4:15pm and the cell under it reads 8 hours as the answer

probably simple but i'm lost
  #2   Report Post  
Steve
 
Posts: n/a
Default

Monish

I don't see the problem from your question.
I have 8:15am in A1 and 4:15pm in B1

B1-A1 produce a row of #'s (as it should)
A1-B1 produces your result.

The following is based on the assumption you are actually trying to
calculate across midnight:

To calculate time across midnight, you need to enter the number of days into
the equation:
=IF(B1-A1=0,B1-A1,NumberOfDays+B1-A1)
If you are totally sure nothing will be scheduled more than 24 hours:
=IF(B1-A1=0,B1-A1,1+B1-A1)

Use a custom formation on the cells containing the result [h]:mm if time is
expected to extend more than 24 hours.

HTH
Steve




"monish74" wrote in message
...
I am trying to calculate hours on a work schedual with 1 cell hours worked
like 8:15am-4:15pm and the cell under it reads 8 hours as the answer

probably simple but i'm lost



  #3   Report Post  
Biff
 
Posts: n/a
Default

I don't see the problem from your question.

I think they have 8:15am-4:15pm all in a single cell.

Biff

-----Original Message-----
Monish

I don't see the problem from your question.
I have 8:15am in A1 and 4:15pm in B1

B1-A1 produce a row of #'s (as it should)
A1-B1 produces your result.

The following is based on the assumption you are actually

trying to
calculate across midnight:

To calculate time across midnight, you need to enter the

number of days into
the equation:
=IF(B1-A1=0,B1-A1,NumberOfDays+B1-A1)
If you are totally sure nothing will be scheduled more

than 24 hours:
=IF(B1-A1=0,B1-A1,1+B1-A1)

Use a custom formation on the cells containing the result

[h]:mm if time is
expected to extend more than 24 hours.

HTH
Steve




"monish74" wrote in

message
...
I am trying to calculate hours on a work schedual with 1

cell hours worked
like 8:15am-4:15pm and the cell under it reads 8 hours

as the answer

probably simple but i'm lost



.

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
Sumproduct help needed! Trying to excel in life but need help Excel Worksheet Functions 5 January 21st 05 09:07 PM
calculate difference in time to hours Chris Excel Worksheet Functions 5 January 18th 05 06:07 PM
Calculate work hours between two dates trixiebme Excel Worksheet Functions 1 January 12th 05 07:37 PM
calculate average hours and minutes llstephens Excel Worksheet Functions 4 November 30th 04 03:47 PM
calculate average hours worked llstephens Excel Worksheet Functions 1 November 24th 04 02:37 PM


All times are GMT +1. The time now is 10:25 AM.

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"