+ Reply to Thread
Results 1 to 5 of 5

Getting Past a Circular reference

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Getting Past a Circular reference

    I'm close but still no cigar...

    Basically I want to have three cells A1 = cost, B1 = margin (as a percent), C1 = sell price
    where
    A1 = C1(1-B1/100)
    B1 = 1-A1/(100*C1)
    C1 = A1/1-B1/100

    ..circular reference right? How can I make this possible and still have the ability to manually input any two cells and the third automatically populate relative to the other two cells. Sometimes I want to enter cost and margin and see sell price, other times I want to enter cost and sell price and see my margin.

    i.e.
    A1 = 100
    B1 = 15%
    Then C1 = 117.65

    or
    A1 = 100
    C1 = 117.65
    Then C1 = 15%

    Thanks!
    -E

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Getting Past a Circular reference

    I am a little confused. How is your cost dependent on your sell price? You sell price could be $1 or $100000, that doesn't change how much it cost you. Your two examples have a consistent A1 value. Is this always the case or is there a situation where you would hand enter your margin and sell price and have it calculate a cost?

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Getting Past a Circular reference

    If you manually enter two constants, you will overwrite two formulas and no longer have a circular reference.

    Also, on the Options menu Calculation tab, if you check Iterations and set it so something like 1, then Excel doesn't warn you about circular references.

    I would suggest you just have three separate input cells and three formula cells. The formulas each reference their respective two input cells.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Getting Past a Circular reference

    Here's a workbook I use for exactly that purpose. Enter at least two pieces of current data (discount, price and margin) and one piece of new information. It requires you to enable macros.
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Getting Past a Circular reference

    I did that in a hurry a few weeks ago because I needed it quickly, but looking back, it's pretty ugly. Here's a cleaned-up version.
    Attached Files Attached Files

+ 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