+ Reply to Thread
Results 1 to 7 of 7

Time calculations for work

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Salisbury, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Time calculations for work

    I have attached my workbook to this post with comments and questions on the problems I am having. I have a couple questions on time calculations, which I can't seem to get right. Can someone please help me?!

    JEP
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Time calculations for work

    First one

    =IF(G5="","",IF(MOD(G5-G4,1)-Formulas!$B$2,MOD(F5-F4,1)-Formulas!B2,""))

    Second one

    format as [h]:mm

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Salisbury, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Time calculations for work

    Thanks for your help!!

    It helped with Tuesday through Friday but the Monday cells can't use the same formula because there is no day before it. Another thing is, what if there were no hours worked the day before.

    The information you gave me about Comment 2 worked great, but only when I used your formula.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Time calculations for work

    That was my error, I meant

    =IF(G5="","",IF(MOD(G5-G4,1)-Formulas!$B$2,MOD(G5-G4,1)-Formulas!$B$2,""))

  5. #5
    Registered User
    Join Date
    09-29-2011
    Location
    Salisbury, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Time calculations for work

    THANK YOU!!! That fixed it!!

  6. #6
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Time calculations for work

    Post Deleted
    Last edited by scottylad2; 09-29-2011 at 01:56 PM.
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  7. #7
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Time calculations for work

    Actually, ignore my last, this is better

    =IF(OR(C4="",C5=""),"",MOD(C5-C4,1)-Formulas!$B$2) then your sum will work in H32

+ 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