+ Reply to Thread
Results 1 to 2 of 2

Hours Calculation worked.

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Hours Calculation worked.

    Hi

    I have a formula that works but trying to change it need help.

    My current formula is

    Please Login or Register  to view this content.
    it calculates hours worked ie user enter 6:00 in g25 and 14:00 in h25 it will produce 8hr.

    What i want to do is -0.5 to produce 7.5hr worked.

    I did this by -0.5 in red below. it worked BUT when there is no hours it shows -0.5 i want it to show 0 only.

    Please Login or Register  to view this content.
    Can some help me.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Hours Calculation worked.

    Perhaps

    =MAX(0,LOOKUP(10^10,CHOOSE({1,2},0,(24*MOD(H25-G25,1))-0.5)))

+ 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