+ Reply to Thread
Results 1 to 7 of 7

Tracking working hours on a schedule

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2010
    Posts
    96

    Tracking working hours on a schedule

    Hello,

    I have a manpower schedule that is used to track the working hours of our employees. The top row is the week# and underneath is the Month and under the month it is split into the days of the week.

    I didn't make this original file but there is a sum formula that calculates all the hours up based on what you enter. For example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    F19-IV19 is every day in the year. This equation would be for one employee for their Banked hours. the hours would add up and convert to days so if you typed in B+5 into November 6th it would add .63 days to your total banked hours.

    Now the issue is that obviously this equation is long and tedious and the character limit has been reached. You can also type in B-5 to remove banked hours from the total but there is only enough room for the first 2 hours.

    I'm hoping there is some way to shorten this formula to include any hours whether it be B-10 or B+10 (even though this would never happen) into maybe 1 line. ANY help would be appreciated! Thanks

    Sorry if I am not clear enough. If anyone has a question I will try to answer it as best i can.
    Last edited by Spritz; 11-06-2013 at 06:15 PM.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Tracking working hours on a schedule

    I am sure there is, but could you upload a sample workbook?
    Also, if you wrapped code tags or function tags around that formula, it would make it easier to read !
    (highlight the formula, then hit "#" or "fx" buttons on the edit window toolbar)
    Last edited by dredwolf; 11-06-2013 at 05:34 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2010
    Posts
    96

    Re: Tracking working hours on a schedule

    See attached workbook. The formulas i refer to are in the green cells. You can test the formulas out by typing B+/- and then a number (ie: B+5 to add or remove hours from the Banked hours.
    Attached Files Attached Files

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Tracking working hours on a schedule

    Self deleted, only works on first value in range...
    Last edited by dredwolf; 11-06-2013 at 07:29 PM.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Tracking working hours on a schedule

    Try an array formula like this for B6

    =SUM(IF(LEFT(F6:IV6)="V",SUBSTITUTE(SUBSTITUTE(F6:IV6,"V",""),"+","")+0))

    confirmed with CTRL+SHIFT+ENTER and copied down

    and for "Banked hours" it would be a similar thing except with a division by 8 thrown in, i.e. this formula in E6

    =SUM(IF(LEFT(F6:T6)="B",SUBSTITUTE(SUBSTITUTE(F6:T6,"B",""),"+","")+0))/8
    Last edited by daddylonglegs; 11-06-2013 at 07:58 PM.
    Audere est facere

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Tracking working hours on a schedule

    Hey! Thanks for putting the Formula tags on the OP formula
    What I finally came up with is this:
    In B6 (this is an Array Formula, so use the formula bar to enter/copy , and Cntrl+Shift+Enter to enter, not just Enter):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down, and then across to D16 (or howevever many rows you need)
    then select D6, drag to E6 , select E6, click the formula bar, and make this adjustment (again, needs to be entered using the Cntrl+Shift+Enter key combination, not just Enter):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    drag this down as far as needed

    See (attached) Sheet3, sheet 1 is what you gave, sheet 2 is the interim calculations to get to...sheet 3, which shows these formulas (sheets 1 and 2 are not necessary, just there for comparison, and the formulas below were the way I arrived at these solutions, not necessary, just there to show how I arrived at these formulas)

    Hope this helps
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-21-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2010
    Posts
    96

    Re: Tracking working hours on a schedule

    Hey Guys!

    I tried out both of your solutions but I think the IFERROR function isn't available in Excel 2003 so I was having some issues.

    daddylonglegs - Your code worked brilliantly. Thank you so much! You just saved so much work and effort for me. From the max char limit to a single line. Beautiful.

    I'ts funny because i was trying to use left with the range but i totally forgot that it would need to be an array.

+ 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: 8
    Last Post: 07-15-2013, 07:13 PM
  2. Replies: 2
    Last Post: 06-14-2013, 10:45 AM
  3. Employee schedule hours tracking
    By jimothyone in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2013, 02:43 AM
  4. Replies: 8
    Last Post: 03-19-2009, 11:01 PM
  5. Employee Tracking Schedule
    By littlebit in forum Excel General
    Replies: 1
    Last Post: 10-03-2005, 08:05 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