+ Reply to Thread
Results 1 to 5 of 5

Adding time from calculated cells

  1. #1
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Adding time from calculated cells

    Hi guys,

    My turn.

    I have a problem that I'm struggling with.

    http://www.excelforum.com/excel-gene...00#post2782800

    User inputs start and finish time in 24 hour clock style e.g. 15:00 etc

    If finish time is next day (i.e works overnight) and start day is Fri/Sat or Sun then normal time is up to midnight and time and a half is from midnight to finish - otherwise normal time. Those formulae work fine.

    I'm having problems having the totals in cols G & H to show actual hours for back office stats presumably. (111 and 25 hours)

    I've tried all the usual sources and all manner of different formats but can't get it right. I've even tried setting "precision as displayed" but no.

    The file is attached and I'd be grateful for assistance please.

    Regards

    Russell
    Attached Files Attached Files
    Last edited by Russell Dawson; 05-08-2012 at 03:37 AM. Reason: Correction to total hours
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  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: Adding time from calculated cells

    Try

    =IF(WEEKDAY(B5,2)>=5,IF(E5<D5,MOD(1-D5,1),E5-D5),MOD(E5-D5,1))

    and

    =IF(MOD(E5-D5,1)=G5,"",MOD(E5-D5,1)-G5)
    Last edited by Bob Phillips; 05-08-2012 at 03:31 AM.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Adding time from calculated cells

    needs more evaluation....

    Employee timesheetevaluatefurthure.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Adding time from calculated cells

    Bob

    That's great - works a treat. Vlady got us half way there with the totals by getting the time and a half tots correct and I was trying to prove the other one which should have been correct in theory.

    Vlady

    Thanks for your help.

    Regards

    Russell

  5. #5
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Adding time from calculated cells


+ 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