+ Reply to Thread
Results 1 to 6 of 6

Totalling Hours devided by breaks

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    Scunthorpe, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Totalling Hours devided by breaks

    Im currently finishing an excel sheet for a rota that calculates hours worked over a week and subtracts the breaks making a total in the final box

    not going to plan, and the total box isn't adding the hours, the other formula i used, wouldnt input more then 24 hours

    Any help appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Totalling Hours devided by breaks

    Hi,

    Your totals formulas are slightly incorrect. Take cell AF7 for example, if you change the formula from =SUM(F7,J7,N7,R7,V7,Z7,AD7)-(G7,K7,O7,S7,W7,AA7,AE7) to =SUM(F7,J7,N7,R7,V7,Z7,AD7)-SUM(G7,K7,O7,S7,W7,AA7,AE7) and change the formatting to [HH]:MM it should do what you need.

    One thing I would point out though, you're getting #N/A errors in the "Break" columns where there is no value in the relevant "Hours" column. This causes column AF to show errors until there are are values in all preceding columns. You can wrap those formulas in IFERROR() to clear that problem up.
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    09-02-2012
    Location
    Scunthorpe, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Totalling Hours devided by breaks

    Works a charm Thank You!

    Having problems with the wrapping of 'IFERROR' it says i have too few arguments :s.

    I'd want the value of N/A to be corrected to 00:00, any ideas ?

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Totalling Hours devided by breaks

    Taking the formula in cell AE7 for example, change it to
    =IFERROR((MATCH(AD7,1*{"3:59","5:59","8:59","10:59","12:59"})-1)*"00:15",0)

    The bits in bold are the changes to your original formula.

    Copy and paste that cell into all the relevant ones and it should do what you need.

  5. #5
    Registered User
    Join Date
    09-02-2012
    Location
    Scunthorpe, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Totalling Hours devided by breaks

    Excellent,

    Finally completed. Thanks for all your help Spencer.

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Totalling Hours devided by breaks

    Not a problem. Glad to help a fellow foodie

+ 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