+ Reply to Thread
Results 1 to 9 of 9

Calculating total hours used daily?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2016
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Calculating total hours used daily?

    Hi,

    I have attached a template for a weekly rota. Everything is good in it except I do not know how to get total hours for mon-sun. I want the template to calculate the total hours used each day. Can someone help me please.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Calculating total hours used daily?

    Hi,

    In your daily total cell use this formula.

    =SUMPRODUCT(IFERROR(IFERROR(C6:C25,0)-IFERROR(B6:B25,0),0))
    This type of formula is an array and have to be entered by using CTRL+SHIFT+ENTER at the end, not by pressing ENTER.

    Hope this is helpful.

    Cheers

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Calculating total hours used daily?

    Another way array entered.
    Formula: copy to clipboard
    =SUM(IF(ISNUMBER(CHOOSE({1,2,3,4,5,6,7},C6-B6,E6-D6,G6-F6,I6-H6,K6-J6,M6-L6,O6-N6)),CHOOSE({1,2,3,4,5,6,7},C6-B6,E6-D6,G6-F6,I6-H6,K6-J6,M6-L6,O6-N6)))
    Dave

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Calculating total hours used daily?

    Total hours per day

    =SUM(C6:C25)-SUM(B6:B25)

    SUM ignores TEXT values/blanks

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Calculating total hours used daily?

    Edit Please disregard. I solved the wrong problem.

    Another way non array entered.
    Formula: copy to clipboard
    =SUM(MMULT({1,-1},N(OFFSET(B6,,(COLUMN(B:H)-MIN(COLUMN(B:H)))*2+{1;0}))))
    Last edited by FlameRetired; 07-17-2016 at 03:10 PM.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Calculating total hours used daily?

    Hi
    Try this
    Formula: copy to clipboard
    =AGGREGATE(9,6,C6:C26)-AGGREGATE(9,6,B6:B26)

  7. #7
    Registered User
    Join Date
    07-17-2016
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Calculating total hours used daily?

    Hi,

    Thanks for the replies, I cannot get any of the above formulas to work for me. Have you guys entered them in the template and if so, how did you do it? I have merged and centered the total cell for Monday and entered the above formulas and it has not worked for me.

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Calculating total hours used daily?

    Hi Voldo,

    I think what we have all neglected to state is that you format of the cell has to be a custom format in order to the number of hours to show properly.

    Change the cell format to "Custom" [hh]:mm

    See attached example.

    Cheers
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-17-2016
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4
    Quote Originally Posted by southward View Post
    Hi Voldo,

    I think what we have all neglected to state is that you format of the cell has to be a custom format in order to the number of hours to show properly.

    Change the cell format to "Custom" [hh]:mm

    See attached example.

    Cheers
    Hi,

    That's fantastic, its is working. Many thanks for all your help. Also thanks to everyone else for their suggestions.

+ 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. Calculating Weekly Total Hours from Daily Times
    By RFernandez in forum Excel General
    Replies: 7
    Last Post: 04-12-2016, 07:13 PM
  2. [SOLVED] Formula needed to total daily work hours and hours per week
    By amkampbell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2016, 07:33 PM
  3. Replies: 5
    Last Post: 01-11-2016, 11:15 PM
  4. [SOLVED] Breakdown of total daily worked hours
    By beitzy in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-05-2013, 10:11 PM
  5. Adding daily run hours to cumulative total hours
    By Rodstew in forum Excel General
    Replies: 8
    Last Post: 08-08-2012, 07:10 PM
  6. 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
  7. daily total hours
    By carolynkeene in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2007, 05:52 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