+ Reply to Thread
Results 1 to 3 of 3

Formula for calculating time

  1. #1
    kc sunshine
    Guest

    Formula for calculating time

    I am establishing a Timesheet for our business in Excel. I have cells for
    "In" , "Lunch Out", "Lunch In" and "Out" that employees will enter their
    times (in military time). Need the formula that will calculate the total
    hours for the day, subtracting out for the lunch break.

    Thanks!

  2. #2
    Biff
    Guest

    Re: Formula for calculating time

    Hi!

    B2 = time in
    C2 = lunch out
    D2 = lunch in
    E2 = time out

    Total =IF(C2="","",(E2-D2+(D2>E2)+C2-B2+(B2>C2)))

    Returns in the format of h:mm - 8:45

    For a return in decimal format - 8.75

    =IF(C2="","",(E2-D2+(D2>E2)+C2-B2+(B2>C2))*24)

    Biff

    "kc sunshine" <kc [email protected]> wrote in message
    news:[email protected]...
    >I am establishing a Timesheet for our business in Excel. I have cells for
    > "In" , "Lunch Out", "Lunch In" and "Out" that employees will enter their
    > times (in military time). Need the formula that will calculate the total
    > hours for the day, subtracting out for the lunch break.
    >
    > Thanks!




  3. #3
    Paul B
    Guest

    Re: Formula for calculating time

    Kc, have a look here

    http://www.cpearson.com/excel/overtime.htm
    --
    Paul B
    Always backup your data before trying something new
    Please post any response to the newsgroups so others can benefit from it
    Feedback on answers is always appreciated!
    Using Excel 2002 & 2003

    "kc sunshine" <kc [email protected]> wrote in message
    news:[email protected]...
    >I am establishing a Timesheet for our business in Excel. I have cells for
    > "In" , "Lunch Out", "Lunch In" and "Out" that employees will enter their
    > times (in military time). Need the formula that will calculate the total
    > hours for the day, subtracting out for the lunch break.
    >
    > Thanks!




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1