Results 1 to 6 of 6

calculating multiple payment types

Threaded View

  1. #1
    Registered User
    Join Date
    07-11-2010
    Location
    london, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    calculating multiple payment types

    Basically I need to calculate total hours worked for a day.

    Start and finish for lunch and start and finish for dinner. The problem is that after midnight the pay changes so I need to seperate the pre and post midnight hours.

    I inserted this formula into F4 and F5
    =IF(D4>24, (D4-24),0)

    ___a____b____c____d____e____f
    1
    2
    3 __am_______pm_____pre24__post24
    4 __12__16___18___22___10___-2
    5 __11__14___18___26___9_____2


    If there are hours after midnight(24) it works otherwise it subtracts the hours.

    What am I doing wrong? tried without inside brackets as well.

    The hours go past 24 because a single working day goes 'til 3am calculating total hours won't work unless 1am=25, 2am=26, etc.

    Thank you for your help
    Last edited by dugus; 07-11-2010 at 11:03 AM. Reason: formatting incorrect

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