Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how do i add hours on a timesheet?

In one cell I have 8:00-5:00 how do I get the cell under it to add these
hours for me so I don't have to manually put in 9 hours?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default how do i add hours on a timesheet?

Two columns
Start Time Column A
End Time Column B

Format both for time

=(b1-A1)

"JR21" wrote:

In one cell I have 8:00-5:00 how do I get the cell under it to add these
hours for me so I don't have to manually put in 9 hours?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default how do i add hours on a timesheet?

Hi,

Try this. The assumption herein is that if the ending time is less than the
beginning time, then the days are apart by a day

=IF(1*MID(B5,SEARCH("-",B5)+1,4)<1*LEFT(B5,SEARCH("-",B5)-1),1*MID(B5,SEARCH("-",B5)+1,4)+TIME(12,0,0)-1*LEFT(B5,SEARCH("-",B5)-1),1*MID(B5,SEARCH("-",B5)+1,4)-1*LEFT(B5,SEARCH("-",B5)-1))*24

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JR21" wrote in message
...
In one cell I have 8:00-5:00 how do I get the cell under it to add these
hours for me so I don't have to manually put in 9 hours?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how do i add hours on a timesheet?

It would be much easier if you used separate cells for the start and end
time *and* you either use a 24 hr format or include the AM/PM with a 12 hr
format.

A1 = 8:00 AM (or 8:00 in 24 hr format)
B1 = 5:00 PM (or 17:00 in 24 hr format)

For a result in time format:

=MOD(B1-A1,1)

Format as h:mm

For a result in decimal format:

=MOD(B1-A1,1)*24

Format as General or Number

--
Biff
Microsoft Excel MVP


"JR21" wrote in message
...
In one cell I have 8:00-5:00 how do I get the cell under it to add these
hours for me so I don't have to manually put in 9 hours?



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
timesheet - excess hours iamhappyhaitch Excel Discussion (Misc queries) 4 May 13th 09 03:24 PM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
add hours (calculated by functions) on a timesheet drewer Excel Worksheet Functions 6 May 14th 05 03:27 AM
Calculating hours for a timesheet Niq Excel Worksheet Functions 3 February 27th 05 10:53 PM
Timesheet hours will not total. Help. Kelly Excel Discussion (Misc queries) 1 December 6th 04 04:24 PM


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