+ Reply to Thread
Results 1 to 8 of 8

Calculating Weekly Total Hours from Daily Times

  1. #1
    Registered User
    Join Date
    04-07-2016
    Location
    Sulphur Springs, Texas
    MS-Off Ver
    2010
    Posts
    6

    Red face Calculating Weekly Total Hours from Daily Times

    Hello all, I am needing some help trying to figure out the right method of going by calculating times from a single cell and adding the totals for the week at the end of the cells.

    Example:
    Sat - E2= 0700 - 1500
    Sun - F2= 0700 - 1530
    Mon - G2= 0500 - 1330
    Tue - H2= 0700 - 1500
    Wed - I2= 0700 - 1500
    Thu - J2= 0700 - 1500
    Fri - K2= 0700 - 1500
    Weekly Totals (in hours) L2= (total hours)

    Sample Excel.jpg

    Thank you for all your help!!

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Calculating Weekly Total Hours from Daily Times

    Try this in L2:

    =SUM(IF(E2:K2<>"",TEXT(RIGHT(E2:K2,4),"00\:00")-TEXT(LEFT(E2:K2,4),"00\:00"),""))

    Array formula.
    Enter with Ctrl+Shift+Enter
    custom format: [h]:mm

  3. #3
    Registered User
    Join Date
    04-07-2016
    Location
    Sulphur Springs, Texas
    MS-Off Ver
    2010
    Posts
    6

    Re: Calculating Weekly Total Hours from Daily Times

    Phuocam your a life saver, thank you very much!!

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Calculating Weekly Total Hours from Daily Times

    You're welcome.

  5. #5
    Registered User
    Join Date
    04-07-2016
    Location
    Sulphur Springs, Texas
    MS-Off Ver
    2010
    Posts
    6

    Re: Calculating Weekly Total Hours from Daily Times

    Another question for this formula...
    =SUM(IF(E2:K2<>"",TEXT(RIGHT(E2:K2,4),"00\:00")-TEXT(LEFT(E2:K2,4),"00\:00"),""))
    How can i remove 30 minutes from each day? Sorry i forgot all about this factor.

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Calculating Weekly Total Hours from Daily Times

    30 minutes = 1/2 hour = 1/48 day

    =SUM(IF(E2:K2<>"",TEXT(RIGHT(E2:K2,4),"00\:00")-TEXT(LEFT(E2:K2,4),"00\:00"),""))-COUNTA(E2:K2)*1/48
    Enter with Ctrl+Shift+Enter
    Custom format: [h]:mm

  7. #7
    Registered User
    Join Date
    04-07-2016
    Location
    Sulphur Springs, Texas
    MS-Off Ver
    2010
    Posts
    6

    Re: Calculating Weekly Total Hours from Daily Times

    Is there a way to ignore the -COUNTA(E2:K2)*1/48 if the time is under lets say 4 hours?

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Calculating Weekly Total Hours from Daily Times

    Yes.

    =SUM(IF(E2:K2<>"",TEXT(RIGHT(E2:K2,4),"00\:00")-TEXT(LEFT(E2:K2,4),"00\:00")
    -(TEXT(RIGHT(E2:K2,4),"00\:00")-TEXT(LEFT(E2:K2,4),"00\:00")>=4/24)*1/48,""))

    Enter with Ctrl+Shift+Enter

+ 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. Replies: 5
    Last Post: 01-11-2016, 11:15 PM
  2. [SOLVED] Weekly hours and daily hours not adding up
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2015, 12:13 PM
  3. Calculating daily numbers to weekly
    By Jafs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2013, 05:54 AM
  4. Replies: 0
    Last Post: 04-25-2012, 05:42 PM
  5. Calculating overtime hours on a daily and weekly basis
    By Skwerl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2011, 09:12 PM
  6. daily / weekly total
    By Tobyriley in forum Excel General
    Replies: 5
    Last Post: 06-15-2010, 02:08 PM
  7. Calculating Total Hours Between Two Times Past 24hr
    By BM4193 in forum Excel General
    Replies: 3
    Last Post: 09-18-2009, 09:21 AM

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