![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 21
|
I have an Excel Sheet in which the hours of workers are input. This input is made 2 times , 1 when the work comes in the company and second when he leaves the Company.
How i can make excel to calculate total hours of a worker. Means Workers IN OUT TOTAL HOURS John 8:30A.M. 5:30P.M. 9 Please guide the procedure in steps. thankyou. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
If your total hours are in, say D1, Time in in B1 and Time out in C1, enter the following in D1: -
=C1-B1 Click on Format-Cells and select Custom. In the Type box, type in [hh]:mm. HTH. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 21
|
thanks a Lot, your reply really helped me how i can vote for your name on this forum.
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 21
|
Mudface ,
Your post has helped me but the problem is i want to calculate the salary of each work. For this the method u have suggested is not working properply. As after the total hours are calculate for a worker , his salary calculation includes rate per hour multipled by total hours and subtracting any advance money if taken by him. If i do this the result which is coming is not in Numbers , i have tried formatting the cell but no use. |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
In B1 enter: =(A1*24)*5 Format B1 as General. Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|