+ Reply to Thread
Results 1 to 6 of 6

Technique to avoid circular reference

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Technique to avoid circular reference

    I am trying to make a time based simulation for heat loss but I can explain my problem with a simple problem.

    Lets say I have a bucket with water flowing in and water flowing out. If the bucket is full, the water flowing in automatically stops. The problem is that trying to put in an 'if statement' to stop the 'flow in' brings up a circular reference. Any ideas on how to get around this?

    I have attached a simple spreadsheet to demonstrate.

    I don't want to allow iterations because it really screws up how the program works.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: I hate circular reference. Simple problem (I think), anyone know how to work around it

    Hello smjpl,
    Any particular reason why formula in J9 is different from J10 thru J17?

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Technique to avoid circular reference

    I've corrected a number of your formulae and managed to get rid of the circular reference errors in the attached, to ensure that the "capacity" is never exceeded.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: I hate circular reference. Simple problem (I think), anyone know how to work around it

    Sorry that was a rushed mistake. Thank for the reply.

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Technique to avoid circular reference

    Pete you legend. That's what I am looking for. I knew it was an easy fix. I just couldn't see it for the life of me.

    Cheers

  6. #6
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Technique to avoid circular reference

    Pete you legend. That's what I am looking for. I knew it was an easy fix. I just couldn't see it for the life of me.

    Cheers

+ 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