+ Reply to Thread
Results 1 to 6 of 6

Time Calculation

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Time Calculation

    Hi,

    I'm new on here but have a problem with a formula I copied. As you can see from this timesheet the time that totaled automatically is 33.22 hours BUT when I manually add it it totals 33.21 hours. I'm not sure why this is but I need it to total the correct time. Any thoughts about this?

    Thanks,
    Dan

    PS: I think I attached the timesheet file to this

    Dans time.xlsx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,910

    Re: Time Calculation

    While the numbers displayed are to only two decimal places, Excel actually calculated them out to greater than two. You will need to surround the existing formulas in the round function.

    ie. In cell G7 you would have: =ROUND(IF((((D7-C7)+(F7-E7))*24)>8,8,((D7-C7)+(F7-E7))*24),2)

    Use this format for the remaining cells and the calculation will come to what you expect.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-13-2014
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Time Calculation

    Hi Alan,

    Thank You!! I'll plug this in later today and retest. I did not run a debug (didn't know anything about that).

    ~Dan

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Time Calculation

    Alan,

    Mission accomplished ... it works as you mentioned!!!

    Thanks a bunch!

    ~Dan

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,910

    Re: Time Calculation

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    01-13-2014
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Time Calculation

    **Done** & thanks again!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED]Time/Date calculation to check response time
    By tailz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-01-2013, 10:20 AM
  2. TIME Calculation Difference in between Time Windows IF, AND
    By sonny.thind in forum Excel General
    Replies: 0
    Last Post: 09-20-2011, 10:00 AM
  3. Replies: 11
    Last Post: 05-20-2011, 02:09 PM
  4. Specific time period calculation from a time range
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:44 AM
  5. [SOLVED] Ignoring Time in a Date Time Calculation
    By nmp in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2005, 04:35 PM

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