+ Reply to Thread
Results 1 to 8 of 8

How do I add time without creating a circular reference?

  1. #1
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    How do I add time without creating a circular reference?

    Please see the attached. When I am done I will clean up the sheet, but the issue I am having is I need to add any of the times starting from T4 down to the I (End Time) column. The downtime column (J) will be manually altered by either dropdown, or manual entry, so I can't put a formula there because this sheet is dynamic and will be reused. Is there a way to keep the formula I have in column I and add the corresponding cell from T? I always want to add Column T to column I.

    The purpose of this is employee break times. If the Start Time and End Time of the production run falls within their break time AB11:AB13 then that will add 0:40 min to the run time. I was having issues with the time in column T so I had to figure out a way so there wasn't a date attached. So that is why that is there.

    So since their first break is at 10:50 AM, I7 should look at T7 and add what's there to the current time extending that from 11:00 to 11:40. So hopefully that makes sense.


    Any help would be appreciated. My brain has shut down. I'm completely stuck.
    Attached Files Attached Files
    Last edited by jayclinton; 01-17-2018 at 08:12 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How do I add time wihout creating a circular reference?

    Your description gives some insight as to how your sheet works but I can't figure out what your question is.

    This looks like a question: "Is there a way to keep the formula I have in column I and add the corresponding cell from T?" but put the result where? Please give an example of a cell you want to change and what result you want to see in it.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    Re: How do I add time wihout creating a circular reference?

    I need my result in Column I. I need to add on to that formula. So for example, I7 would also add in the 0:40 from T7. So H7 would say 10:00 AM, I7 would say 11:40. I still need the current formula there to account for two other options.
    Last edited by AliGW; 01-16-2018 at 10:03 AM. Reason: Quotation removed.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How do I add time without creating a circular reference?

    So as you say in your title, that creates a circular reference. So there is probably a flaw in the thinking behind the desired logic.

    What is the meaning of the data in column T?

    Another question that will help me understand your data and this design: Why are columns R and S needed? Column R is simply the time found in column H of the same row. For example, R7 is

    =TIME(HOUR(H7),MINUTE(H7),SECOND(H7))

    but this is exactly the same as

    =H7

    so it seems like it would be simpler for the formula in column T7 to refer directly to H7, instead of using R7 as a pass-through.

    Same discussion for column S.

  5. #5
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    Re: How do I add time without creating a circular reference?

    Column T is looking to see if Columns H and I fall within the employees break schedule. If it does then 40 minutes are added to the production run thus extending the time it would take to do each run (each row). I added Columns R & S because my formula in T wasn't calculating once I exceeded one day's worth. I don't know, but I assumed there was a date behind the scenes associated with it. So I tried to figure out a way to not have a date and did columns R & S. That worked for me so eventually I will hide them unless there is a better way. I tried all different kinds of formatting only to get the same result.

    Ideally I just wanted to add the + T7 and the end of the formula in I7 for example. If that wasn't a circular reference it would do what I need. =IF(A7="FC",H7+$R$1,IF(A7="SW",H7+$R$2,H7+$S$1+T7)))
    Last edited by AliGW; 01-16-2018 at 10:03 AM. Reason: Quotation removed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,318

    Re: How do I add time without creating a circular reference?

    Jayclinton - please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How do I add time without creating a circular reference?

    Quote Originally Posted by jayclinton View Post
    Column T is looking to see if Columns H and I fall within the employees break schedule. If it does then 40 minutes are added to the production run thus extending the time it would take to do each run (each row).
    This is your problem. This description is a circular description, and so you get a circular reference when you try to do it in Excel. Here is what you are saying:

    "If the beginning and end time are within the break schedule, add 40 minutes to the end time."

    You can't use the end time to determine what the end time should be.

    What you can do is create another column for something like "adjusted end time" that would be I + T. Then use that value in the formula in the following row for H.

  8. #8
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    Re: How do I add time without creating a circular reference?

    Thanks Jazzer! I couldn't wrap my head around it, but I got it now. Your suggestions works great. Thank you for your time on this.

+ 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. Inventory Management - creating a circular reference
    By shawnamillion in forum Excel General
    Replies: 2
    Last Post: 12-31-2015, 04:49 PM
  2. Sort Is Creating Circular Reference
    By JSMortensen in forum Excel General
    Replies: 2
    Last Post: 03-13-2015, 09:57 AM
  3. [SOLVED] Circular Reference in a Formula creating the #VALUE sign
    By jleal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2014, 08:43 AM
  4. How am I creating a circular reference?
    By Qualo_Jinn in forum Excel General
    Replies: 5
    Last Post: 03-13-2012, 08:20 AM
  5. Replies: 3
    Last Post: 12-09-2008, 05:19 PM
  6. Replies: 1
    Last Post: 08-21-2007, 07:22 PM
  7. [SOLVED] If statement to avoid Creating Circular Reference
    By Tim H in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-22-2005, 01:37 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