+ Reply to Thread
Results 1 to 3 of 3

How to do calculation when using TIME in formulas

  1. #1
    Registered User
    Join Date
    10-09-2018
    Location
    New York, New York
    MS-Off Ver
    16.16
    Posts
    8

    How to do calculation when using TIME in formulas

    Hi,

    I am working on a labor tracker for my restaurant and I am almost finished. But am struggling with totaling the hours worked as its all based on TIME.

    Basically in AH8 (see attached) the total hours are correct if someone works a full week. But I would like it to do the calculation even if they only work one day.
    The issue is because I have to multiply by 24 to get the correct hours worked, it continues doing the formula even if someone hasn't worked or they only worked one day. So when someone has worked 1 shift or no shifts that week it still does a calculation.

    How do I fix this?

    Thanks!
    Mateusz

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: How to do calculation when using TIME in formulas

    If you want to totaling just the hour, in Excel, there is a function called HOUR() that convert time to hour. In AG8, you can replace your formula with =SUM(HOUR(G8),HOUR(K8),HOUR(O8),HOUR(S8),HOUR(W8),HOUR(AA8),HOUR(AE8)) and that should fix the issue.

  3. #3
    Registered User
    Join Date
    10-09-2018
    Location
    New York, New York
    MS-Off Ver
    16.16
    Posts
    8

    Re: How to do calculation when using TIME in formulas

    thanks!!! how do i send money..

+ 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. Start time and End time Calculation sheet and uneditable of Time
    By tgray007 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-17-2017, 10:02 AM
  2. Replies: 2
    Last Post: 02-03-2017, 07:39 AM
  3. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 01-12-2015, 12:55 PM
  4. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2015, 06:38 AM
  5. [SOLVED] Time entry on UserForm displaying inccorectly and calculation not working on the time.
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2014, 01:21 PM
  6. Payroll time sheet calculation where time exceeds 24 hours
    By Rolo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2014, 08:57 AM
  7. Help with reducing calculation time in formulas
    By jhigashi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2013, 02:51 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