ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time function for timesheeets (https://www.excelbanter.com/excel-discussion-misc-queries/92855-time-function-timesheeets.html)

Mark McDonough

Time function for timesheeets
 
What formula can I use to achieve the following result

Start 8.30am
Lunch half an hour
Finish 5.30 pm

Total time = 8.3 is the result required but can't get it to work.

Time involved is 8hours and 30mins.



Marcelo

Time function for timesheeets
 
Hi Mark

imagine the start is on A1, the Finish on the B1, you can try:

=(B1-A1-0.0208333333333333)

this number 0.0208333333333333 is the 00:30 lunch time

hope this helps
regards from Brazil
Marcelo



"Mark McDonough" escreveu:

What formula can I use to achieve the following result

Start 8.30am
Lunch half an hour
Finish 5.30 pm

Total time = 8.3 is the result required but can't get it to work.

Time involved is 8hours and 30mins.




Bob Phillips

Time function for timesheeets
 
=end_time-start_time-time(0,30,0)

and format as time.

If you want it as 8.3

=INT((end_time-start_time-TIME(0,30,0))*24)+MOD((end_time-start_time-TIME(0,
30,0))*24,1)*0.6

formatted as general

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Mark McDonough" wrote in message
...
What formula can I use to achieve the following result

Start 8.30am
Lunch half an hour
Finish 5.30 pm

Total time = 8.3 is the result required but can't get it to work.

Time involved is 8hours and 30mins.






All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com