Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 106
Default Calculating Time

I need to calculate hours to be worked in one cell. This spreadsheet will
caluclate the hours scheduled for the week, then add them up and mulitply by
payrate:

1 Mon(2) tue(3) wed(4)
thurs(5) total hours
A Employee {8am-1pm) (9am-3pm) (5:30pm-11pm) ???

the question mark marks where i need the formula
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 694
Default Calculating Time

Hi STephen:

Use two cells for a day the start time and the end time.

You can then do calculations on the time as in

B2=mon start
C2=mon finish
tue d2,e2
wed f2,g2
thur h2,i2
total j2=c2-b2+e2-d2+g2-f2+i2-h2
you need to format the cell j2 as custom ans [h]:mm this will put the right
hrs in and not days and hours.
format the cells as time h:mm

time in


--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"STephen" wrote:

I need to calculate hours to be worked in one cell. This spreadsheet will
caluclate the hours scheduled for the week, then add them up and mulitply by
payrate:

1 Mon(2) tue(3) wed(4)
thurs(5) total hours
A Employee {8am-1pm) (9am-3pm) (5:30pm-11pm) ???

the question mark marks where i need the formula

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default Calculating Time

Stephen,

If your work hours are like you posted, (ie (9am-3pm) that is not a very
easy format for Excel to use. I would recommend that you have two columns
per day formated as time, (ie hh:mm) and enter your Start and Finish times
like 9:00 and 15:00 or 9:00 AM and 3:00 PM, (but notice the space between
the time and the AM/PM), in each column then you can sum the total for the
person with the formula:

=SUM(C2-B2,E2-D2,G2-F2,I2-H2)

Custom format the Totals cells as [hh]:mm to stop the hours rolling over
into day at 24 hours.

I am assuming that you are working Monday - Friday and no shift crosses
midnight.

Post back if you need further help.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"STephen" wrote in message
...
I need to calculate hours to be worked in one cell. This spreadsheet will
caluclate the hours scheduled for the week, then add them up and mulitply
by
payrate:

1 Mon(2) tue(3) wed(4)
thurs(5) total hours
A Employee {8am-1pm) (9am-3pm) (5:30pm-11pm)
???

the question mark marks where i need the formula



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
Calculating time and negative time Josh UK Excel Worksheet Functions 3 February 8th 07 04:48 PM
calculating time jgullett Excel Discussion (Misc queries) 3 January 1st 07 09:55 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Calculating effective time from start/end date+time Stefan Stridh Excel Worksheet Functions 8 November 27th 04 03:50 PM


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