+ Reply to Thread
Results 1 to 20 of 20

Incorrect Circular Reference

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Incorrect Circular Reference

    Hello,

    I am using Circular Referencing to calculate a few values and it is giving me blatantly incorrect values. See attached workbook - Book1.xlsx. Any thoughts?

    Thanks!

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

    Re: Incorrect Circular Reference

    What does "blatantly incorrect" mean? It suggests to me that you must have some idea of what the "correct" answer should be.

    When I need to understand an iterative calculation, I like to program it first in a non-circular way so that I can fully understand and appreciate the behavior of the algorithm. One way I do this is illustrated in the attachment. Set up the initial values in one column. In the adjacent column, use formulas to calculate the next iteration based on the previous column. Then copy across (See columns K:AE). Note that, over 20 iterations, all we are seeing is an oscillation. If you set your max iterations to an odd number, you should see the same oscillation in your circular reference cells.

    As one who does not know what "a correct" answer would look like, I can only say that your algorithm appears to be doing exactly what you are telling it to do -- oscillate between two values. I would suggest that you need to go back to the "pre-Excel programming" stage of this and think through the quantity you are trying to calculate and formulate a better algorithm for it.
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    I'm sorry if I wasn't sufficiently clear in what I need. I am creating a balance sheet. I have a lot of other values on the sheet. I have "summarized" them in my hard coded values (colored blue in the file linked below). These values cannot change. In addition, there is no way to iterate like you have done in your file. My problem is that, according to accounting rules, Assets = Liabilities + Stock Holder's Equity. So for each year, I need to have some sort of "balancer". This is where Circular References come in.

    Unless I am missing something, I do not see a way to program the non-circular way. I would much prefer this if it is possible though.

    Book1.xlsx

  4. #4
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    It looks like you trying to calculate Equity, which you are calling the "balancer". Is that correct?
    If so, you should only need the "balancer"/equity calculation in your Liability section, not the Asset section.
    I can write you a formula to do that, if that's what you want : )

  5. #5
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    Lol I'll just post a dumbed down version of my file. See Sheet 2.

    Book1.xlsx

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

    Re: Incorrect Circular Reference

    These values cannot change. In addition, there is no way to iterate like you have done in your file.
    I pointed that "iteration" out as a way to analyze the algorithm. It may not work in the final spreadsheet, but it seems like a useful way to analyze the circular analysis during development of the spreadsheet.

    My problem is that, according to accounting rules, Assets = Liabilities + Stock Holder's Equity.
    Is it really as difficult as you are making it out? I do not understand accounting, but, simple algebra suggests that, if I know assets and liabilities, and equity is unkown, equity=assets-liabilities. Circular logic is not even a part of the analysis. D8 is the formula =D$7-D$16 (note absolute reference on row, or use =D$22, since that is already calculating this difference), then copy to E8 and D17:E17. However, you are the expert on accounting, and I am not, so you would have to decide if it is really that simple or if I am not understanding how this should work.

    One way or another, you need to apply what you know of proper accounting practices to develop a suitable algorithm. This might be a question to put to more experienced accountants rather than a bunch of nobodies on an Excel forum. How do other accountants perform this kind of "balancing"?

  7. #7
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    I think I see what you are trying to do is kind of reverse calculate a figure. That "balancer" is a calculated figure that when added to your other assets, will give you a correct "total assets" figure. Is that correct? If so, which numbers are known figures? You cannot calculate your "balancer" using any formula that evaluates to a CIRCULAR REFERENCE.

  8. #8
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    Exactly! All numbers that I have given are know except for the "balancer" lines. Why can I not use circular references here? In theory, that is what should be happening.

  9. #9
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    You are using a formula for TOTAL ASSETS and that total sums specific subtotals, so it isn't a KNOWN value. When you use the cell for TOTAL ASSETS in your formula for the "balancer", the formula for it is causing a circular reference (which should be telling you that you have a problem!). Do you under stand what a circular reference is? You are using your calculated TOTAL to calculate another figure ("balancer").

    You need to independently come up with your TOTAL ASSETS figure or come up with another way to find your "balancer".
    Last edited by candybg; 01-21-2016 at 01:21 PM.

  10. #10
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    I understand how a circular reference works, at least I thought I did. I have used them before. See Sheet 3.

    Book1.xlsx

  11. #11
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    Here's a simplified example of what you are currently doing:
    1 + 2 + 7 = 10
    The total of 10 is a formula adding 1,2,7.
    If these figures are in the first few cells in col A of a spreadsheet, the formula in A4 could be =SUM(A1.A3) or =SUM(A1,A2,A3)
    Lets say we are missing the A2 value (of 2) and want to calculate it. If we delete the "2" from cell A2, then the total formula would only show "8" not "10". How could you calculate the value of that cell without knowing what TOTAL you should have? You need an alternative method to calculate it, *if* the TOTAL is a formula, not a known (typed) value.

    Does this help?

  12. #12
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    I see. Thank you clearing that up. Do you have any suggestions for an alternative?

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

    Re: Incorrect Circular Reference

    Perhaps it is oversimplified, but the obvious solution to candybg's simplification is algebra.

    a+b+c=d
    If I am given a, c, and d and need to find b, then simply solve for b
    b=d-a-c

    Is there more to the problem than that?

  14. #14
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    You have to start with the "knowns" - do you KNOW the TOTAL ASSETS without summing the individual parts? Do you have a report to run straight out of your accounting system that will give it to you? Otherwise you will have to find another way to get the total for FEDERAL FUNDS SOLD. By the way, is the FEDERAL FUNDS SOLD under Liabilities the same figure?

  15. #15
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    MrShorty:
    I do not believe that is correct. There are two equations and two unknowns. a+b=c (asset side) ; x+y=z (L&SE side). b only shows when z>c and y only shows when c>z.

    Candybg:
    I do not "know" any values. These are all projections. Theoretically, one Fed Funds side should be zero when the other Fed Funds side is acting, hence the IF statements

  16. #16
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    Well, yes and no. Using a spreadsheet to get the total (d), then you can't solve for b when your total changes each time you put a number in there. That's what is causing the circular reference. You need to determine your total without a formula and then you can solve for b.

  17. #17
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    Then I can't see a way to "solve" for your "balancer" because every change in that number would affect your calculated total. There has to be an independent way to calculate it (or total it).

  18. #18
    Registered User
    Join Date
    05-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    69

    Re: Incorrect Circular Reference

    That's what I conclude as well. Time to goal seek! Thanks for your help

  19. #19
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    I think I can explain why your examples don't work.
    To simplify your spreadsheet formulas in words:
    You want to calculate your liability "balancer" amount (b) - and are asking excel to comparing the sum of abc (assets) to the sum of xyz (liabilities plus equity). If the sum of abc is smaller than xyz, you want to add the balancer figure to it. So the first time it compares assets to liabilities/eq, assets are smaller by, say, 1000 so you want to change "b" from zero to 1000. As soon as you do this, the sum of assets changes (upwards by 1000) so now assets equals liab/eq., so your formula says to use a zero.

  20. #20
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Incorrect Circular Reference

    I think there may be a way to do this - I'll get back to you tomorrow

+ 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: 12
    Last Post: 08-23-2014, 08:44 PM
  2. Replies: 2
    Last Post: 02-23-2014, 06:06 PM
  3. [SOLVED] Circular reference
    By nicolelschramartin in forum Excel General
    Replies: 1
    Last Post: 01-05-2013, 10:36 PM
  4. [SOLVED] Excel 2007 : Incorrect Circular Reference with TODAY() function
    By qaliq in forum Excel General
    Replies: 5
    Last Post: 03-13-2012, 06:48 AM
  5. Circular Reference
    By Jogier505 in forum Excel General
    Replies: 8
    Last Post: 03-23-2011, 12:57 PM
  6. Circular Reference when formulas reference end of row formula!
    By Spellbound in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-29-2009, 08:26 AM
  7. Replies: 1
    Last Post: 08-21-2007, 07:22 PM
  8. Replies: 1
    Last Post: 02-09-2006, 06:45 AM

Tags for this Thread

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