+ Reply to Thread
Results 1 to 4 of 4

Time Calculations:keep track

  1. #1
    Registered User
    Join Date
    09-18-2005
    Posts
    5

    Time Calculations:keep track

    I'm creating a spreadsheet to keep track of the hours I work and to calculate the pay.

    Here's roughly how it'll look.

    How would I go about calculating the "normal", "evening" and "premium" hours, where normal, evening and premium are 0600-1800, 1800-0000, 0000-0600 respectively?

  2. #2
    Bob Phillips
    Guest

    re: Time Calculations:keep track

    E5: =IF(B5<C5,MIN(C5,1800)-MAX(B5,600),1800-B5)
    F5:=IF(B5<C5,MAX(C5-1800,0),600)
    G5:=MAX(0,600-B5)+IF(B5<C5,0,C5-0)

    I have accounted for the break as you give no indication in what period it
    was taken.

    --
    HTH

    Bob Phillips

    "craigj" <craigj.1vkb2a_1127059501.0575@excelforum-nospam.com> wrote in
    message news:craigj.1vkb2a_1127059501.0575@excelforum-nospam.com...
    >
    > I'm creating a spreadsheet to keep track of the hours I work and to
    > calculate the pay.
    >
    > 'Here's roughly how it'll look.'
    > (http://img249.imageshack.us/img249/2...lculate2ch.jpg)
    >
    > How would I go about calculating the "normal", "evening" and "premium"
    > hours, where normal, evening and premium are 0600-1800, 1800-0000,
    > 0000-0600 respectively?
    >
    >
    > --
    > craigj
    > ------------------------------------------------------------------------
    > craigj's Profile:

    http://www.excelforum.com/member.php...o&userid=27355
    > View this thread: http://www.excelforum.com/showthread...hreadid=468616
    >




  3. #3
    Registered User
    Join Date
    09-18-2005
    Posts
    5
    Thanks, that works great, except you forgot to divide the whole thing by 100 each of the totals. e.g.
    =(IF(B6<E6,MIN(E6,1800)-MAX(B6,600),1800-B6))/100

    So if I was to add break-start and break-end columns like
    this - how would that be applied?

  4. #4
    Registered User
    Join Date
    09-18-2005
    Posts
    5
    bump?

    The formula doesn't seem to calculate the Evening or Premium hours.
    Last edited by craigj; 09-24-2005 at 08:01 PM.

+ 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