+ Reply to Thread
Results 1 to 2 of 2

Circular Reference Warning in addition

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    3

    Circular Reference Warning in addition

    40 (a1) 15(b1) 25(c1)

    I wanted it this way b1 = a1-c1 and c1 = a1-b1
    so whenever I make a change in either b1 or c1, it automatically fixed the other cell and make the total of A1

    But when I put the formulas, I get the 'Circular Reference Warning', I click okay but then the functions don't work properly. It only works for either b1 or c1. Is there anyway that I can make both work together.

    Ex. 40 15 25 (if I make it 26 from 25, it'll change 15 into 14)
    40 14 26 (and again if I make 14, 12, it'll automatically, change 26 into 28)
    40 12 28

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Circular Reference Warning in addition

    Spreadsheets are designed so that each cell either holds a formula or a value. This kind of "edit and calculate in the same cells" programming doesn't really work using the "spreadsheet" programming language.

    If you are willing to move the programming to another programming language (usually VBA when working in Excel), then you can have the VBA (or other programming language) do the processing, and the spreadsheet cells simply become input/output containers. One example using a VBA workbook_sheetchange event procedure: https://www.excelforum.com/excel-pro...-function.html

    Personally, I would probably designate a trio of cells for the inputs, then a second trio of cells for the outputs:

    Enter 40 into A1, leave B1 blank, 25 in C1.
    A2 =IF(ISBLANK(A1),B1+C1,A1)
    B2 =IF(ISBLANK(B1),A1-C1,B1)
    C2 =IF(ISBLANK(C1),A1-B1,C1)

    Now I can enter a value in any 2 of the cells in row 1, Row 2 then outputs the desired results based on which input cell was left blank.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Circular Reference warning
    By 4lowie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2013, 11:19 PM
  2. Circular reference warning?
    By redstyles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2013, 08:01 PM
  3. [SOLVED] how to stop circular reference warning?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2013, 07:53 PM
  4. [SOLVED] Circular Reference Warning
    By joh46k in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-19-2013, 02:49 AM
  5. [SOLVED] Stop circular reference warning
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2013, 08:57 AM
  6. Optimization causing circular reference warning
    By adb_bliu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2011, 12:51 PM
  7. forbid circular reference warning
    By hvalhund in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2011, 01:06 PM
  8. Confused by Circular Reference Warning
    By tom hatten in forum Excel General
    Replies: 12
    Last Post: 02-23-2011, 03:14 PM

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