+ Reply to Thread
Results 1 to 6 of 6

Circular Reference Error

  1. #1
    Registered User
    Join Date
    07-25-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    3

    Circular Reference Error

    Hello,

    I am at a full standstill trying to get the right functions to operate.
    Here are the parameters of the time sheet that I'm trying to fit.

    -8 hour work day (REG), anything past 8 REG = overtime OT,
    -overtime (or a combination of REG and OT totaling 12) past 12 hours = Double time DT
    -40 hour work week, ANY hours worked past 40 go directly to the overtime column

    I am trying to make column I (REG) display totals only up to 40. I9 to I15= 39.25, so I16 should equal 0.75, J16 should add 7.25 and I17 should be 0/blank and the total of I17 (8) added to J17 (4).

    The problem i'm hitting is that when I make an IF statement reacting to the 40 hour week overflow in column I, it affects all the items in that column with the formula. Is there a better way to do a sequential sum to 40 in column I (REG) with overflow in column J (OT) PLUS a combined row sum of each I + J cells totaling 12 and the overflow past 12 (of I + J cells in each row) to add to column K (DT).

    If you can mention to me a function that can do this let me know, else I have to look at how to script it with the VBA with my amateur knowledge.

    ts.png
    Attached Files Attached Files
    Last edited by Shinato; 07-25-2017 at 05:20 PM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: Employee Timesheet Challenge

    Few questions.

    1. Each row represents single day, correct?
    2. So the worksheet is for 3 week period.

    Let me see if I understood the business rule...
    Lets say employee worked total of 45 hours in a week M-F.
    M = 9
    T = 14
    W = 8
    Th = 8
    F = 6

    Regular Pay = 8 + 8 + 8 + 8 + 1 = 33
    Total OT = 1 + 4 + 5 = 10
    Total DT = 2

    Is that right?

    Are you opposed to changing worksheet structure a bit?
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    07-25-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    3

    Re: Employee Timesheet Challenge

    Thanks CK76,

    Your example is close, but is missing the 40+ REG week hour for the 40 hour overflow to occur:

    MON 9 8 REG 1 OT
    TUE 14 8 REG 4 OT 2 DT
    WED 8 8 REG
    THR 8 8 REG
    FRI 6 6 REG
    TOTAL 45 REG WEEK TOTAL 38 OVERTIME 5 DOUBLE TIME 2

    See this example:

    MON 9 8 REG 1 OT
    TUE 14 8 REG 4 OT 2 DT
    WED 8 8 REG
    THR 8 8 REG
    FRI 10 8 REG 2 OT
    SAT 5 (0 REG)-> 5 OT
    TOTAL 54 REG WEEK TOTAL 40 OVERTIME 12 DOUBLE TIME 2

    There is a daily overtime that does not add to the total to make the 40 hour week totals.
    1. Each row represents single day, correct? My example excel was a mockup to make the formulas work. In theory, the sheet should only be a single week report. In actuality, our business has multiple calls for employees within the day. Some workers may accrue 3 shifts in a day, hence the 3 lines under each day.
    2. So the worksheet is for 3 week period.

    I am not opposed to a structure change if I can make the totals add correctly.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: Employee Timesheet Challenge

    Ok...

    So, if I understood it right, you'd need helper column (to avoid long formula or circular reference).

    See attached set up. I've put helper column and hidden it (column I).

    It worked for few tests that I did. But you should test thoroughly. Let me know if you find issues.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-25-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    3

    Re: Employee Timesheet Challenge

    Thanks CK76,

    I haven't used helper columns much, I'll need to do some testing around with them. I did have the circular reference error pop up.
    This seems promising.

    Thanks again

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Employee Timesheet Challenge

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

+ 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. Employee special timesheet help
    By bramhawk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2016, 06:52 PM
  2. Creating an Employee Timesheet with Excel
    By Pamtrek in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-26-2014, 07:47 PM
  3. Calculating time on employee timesheet
    By Tashia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 12:46 AM
  4. Calculating a timesheet for employee's
    By Sammy21 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2012, 03:03 PM
  5. Employee Fiscal Year Timesheet
    By Wincanton0151 in forum Excel General
    Replies: 3
    Last Post: 01-19-2012, 05:15 AM
  6. employee timesheet with overtime
    By tatehebert1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2008, 11:53 PM
  7. [SOLVED] How can I add more dates to the employee operations timesheet
    By Daycare in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2005, 07:06 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