+ Reply to Thread
Results 1 to 7 of 7

Circular References

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    East Grinstead, England
    MS-Off Ver
    2010
    Posts
    6

    Question Circular References

    Actually I require the circular reference formula in my sheet. But this sheet goes to the client as well and they get scared to see the circular reference warning. Is there a way, apart from the iteration tick thing that I can allow the circular reference and a warning does not pop up on my clients computer?

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Circular References

    Generally I assume circular references are either an iterative calculation or a mistake.

    If you don't want (or intend) to use iteration, then my shoot-from-the-hip response is to advise that you fix the spreadsheet 'cuz the logic is broken.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Circular References

    PUt this in the Worksheet_Activate Event in the VBE

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Circular References

    Is there a way, apart from the iteration tick thing that I can allow the circular reference and a warning does not pop up on my clients computer?
    I am not aware of anything. A solution like alansidman's may block the warning from popping up on the client's computer, but the calculation will likely not calculate correctly unless the client checks the allow iterative calculation check box. IMO, you do need to decide how important/essential the circular reference is. Without knowing the details of the calculation, it is difficult to say from this side of the internet just how essential the iterative calculation is.

    The compromise position I might suggest is to come up with a strategy that will be able to perform the iterative calculation without the circular reference. I generally use 2 strategies when I don't want to allow the circular reference:

    1) Multiple copies of the calculation. This might look something like:
    Please Login or Register  to view this content.
    and continue copying for as many iterations as I think the algorithm will ever need. Then, the cell for the final result can be =B50 (if I did ~50 iterations). With the correct combination of relative and absolute references, this may use a lot of cells, but it does not need to take a lot of time to put together, as most of the cells are filled in a single copy/paste operation.

    2) Use a UDF. Some clients may not like the idea of using xlsm macro enabled files or want to deal with the macro warnings. If they are more comfortable with allowing macros than allowing circular references, it may be preferable to put the iterative calculation inside of a VBA UDF. A generic UDF will look something like (pseudocode):
    Please Login or Register  to view this content.
    Depending on your VBA knowledge and skill, this may or may not take a significant chunk of time to code and debug. It can be a useful method of dealing with iterative calculations without needing circular references.

    It will be between you and your clients which of the three strategies (client allows iterative calculation, use multiple copies of calculation, VBA UDF) will be preferred.
    Last edited by MrShorty; 10-06-2015 at 11:46 AM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    10-06-2015
    Location
    East Grinstead, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Circular References

    I currently have the below coding in the spreadsheet which has stopped the circular reference warning, however this seems to re-appear if they already have another spreadsheet open. Is there a way to prevent this from happening?

    Please Login or Register  to view this content.
    Last edited by alansidman; 10-27-2015 at 12:15 PM. Reason: code tags added

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Circular References

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Circular References

    I cannot recreate the warning popup, so i think there is something else going on.

    Do you have this paired with a "deactivate" or "close" method that is resetting the clients settings back to what they were before they activated your workbook? I could see the warning being re-triggered if "allow iteration" gets turned off (whether by a procedure of yours or by the client). I would expect a procedure like this would be paired with some kind of procedure that would return Excel's option state back to the user's preferred settings. If you have another procedure that is turning iteration off, then you may need to rethink what that other procedure is doing. If the client is manually turning iteration off, then you need to persuade the client to cooperate with your spreadsheet.

    If there is something else going on, then we need a better description of what is happening.

+ 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: 2
    Last Post: 02-23-2014, 06:06 PM
  2. [SOLVED] Circular references
    By FSUdawg85 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 02:45 PM
  3. Non circular references
    By jammerculture in forum Excel General
    Replies: 8
    Last Post: 05-29-2010, 09:43 PM
  4. Circular References
    By ElmerS in forum Excel General
    Replies: 2
    Last Post: 04-16-2010, 02:36 AM
  5. Circular References
    By frenzel2k in forum Excel General
    Replies: 0
    Last Post: 10-10-2007, 06:11 PM
  6. [SOLVED] Those Circular References...
    By JeremyH1982 in forum Excel General
    Replies: 4
    Last Post: 05-22-2006, 05:55 PM
  7. Circular references
    By R.Hocking in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2006, 02:55 PM
  8. Help :Circular References
    By PPT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2006, 11:25 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