Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LISVET
 
Posts: n/a
Default Need help with formulas


undefined

I am trying to create a worksheet to calculate the worked hours daily.
It formulates it that I have managed to do that but approaches which
desire the result gives it in hours. When I turn to him the hours in
general numbers it changes to decimal. That is, if I have an employee
who enters to work 7AM and leaves lunch to the 12PM, it returns 12:30PM
and it leaves to the 5:30PM formulates it present says to me that the
total is 10:00 A.M.. How this total I turn it to 10 (hours)

Help, Thanks


--
LISVET
------------------------------------------------------------------------
LISVET's Profile: http://www.excelforum.com/member.php...o&userid=27146
View this thread: http://www.excelforum.com/showthread...hreadid=466608

  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

Just an example:
In A1 through D1 put:

7:00:00 AM 12:00:00 PM 12:30:00 PM 5:30:00 PM

In E1 put:
=D1-A1-(C1-B1)
you will see 10:00 (if you format E1 as Time 13:30
--
Gary''s Student


"LISVET" wrote:


undefined

I am trying to create a worksheet to calculate the worked hours daily.
It formulates it that I have managed to do that but approaches which
desire the result gives it in hours. When I turn to him the hours in
general numbers it changes to decimal. That is, if I have an employee
who enters to work 7AM and leaves lunch to the 12PM, it returns 12:30PM
and it leaves to the 5:30PM formulates it present says to me that the
total is 10:00 A.M.. How this total I turn it to 10 (hours)

Help, Thanks


--
LISVET
------------------------------------------------------------------------
LISVET's Profile: http://www.excelforum.com/member.php...o&userid=27146
View this thread: http://www.excelforum.com/showthread...hreadid=466608


  #3   Report Post  
BenjieLop
 
Posts: n/a
Default


LISVET Wrote:
undefined

I am trying to create a worksheet to calculate the worked hours daily.
It formulates it that I have managed to do that but approaches which
desire the result gives it in hours. When I turn to him the hours in
general numbers it changes to decimal. That is, if I have an employee
who enters to work 7AM and leaves lunch to the 12PM, it returns 12:30PM
and it leaves to the 5:30PM formulates it present says to me that the
total is 10:00 A.M.. How this total I turn it to 10 (hours)

Help, Thanks


Try this ...

=IF(((A1-B1)+(C1-D1))*24<0,0,((A1-B1)+(C1-D1))*24)

where

A1 = time in to start the day
B1 = time out (for lunch)
C1 = time in (from lunch)
D1 = time out for the day

BTW, all your cells should be time formatted.

Hope this helps you.

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=466608

  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

Days of the week in Column A,
Row1 has header labels starting in Column B:
Start, Out Lunch, In Lunch, End

Enter this in F2, with F2 formatted as number:

=(((E2-B2+(E2<B2))-(D2-C2+(D2<C2)))*24)*(AND(B20,E20))

This compensates for shifts that work past midnight.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"LISVET" wrote in
message ...

undefined

I am trying to create a worksheet to calculate the worked hours daily.
It formulates it that I have managed to do that but approaches which
desire the result gives it in hours. When I turn to him the hours in
general numbers it changes to decimal. That is, if I have an employee
who enters to work 7AM and leaves lunch to the 12PM, it returns 12:30PM
and it leaves to the 5:30PM formulates it present says to me that the
total is 10:00 A.M.. How this total I turn it to 10 (hours)

Help, Thanks


--
LISVET
------------------------------------------------------------------------
LISVET's Profile:

http://www.excelforum.com/member.php...o&userid=27146
View this thread: http://www.excelforum.com/showthread...hreadid=466608


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
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Formulas Stan Excel Worksheet Functions 3 January 21st 05 02:58 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 11:13 PM.

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"