+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    07-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Circular reference

    Hi. I have a need to make two cells reference each other. ie the formula of A1 is "=B1" and the formula of B1 is "=A1". I want this so that my user can enter a number in either of these cells and it will then populate the other cell.

    Excel errors when I open this files saying "Excel cannot calculate a formula. Cell references in the formula refer to the formula's result. etc etc"

    I think I can resolve this by clicking the iterations box in the "Tools, Options, calculations" box but this sets the paramaters for the whole of excel not just this spread sheet. Any advise would be appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    Posts
    299

    Re: Circular reference

    If you enter this type of formula into these 2 cells, Excel won't be able to determine the relevant answer for either cell. It will see in A1 that the value depends upon what you entered in B1, but the value in B1 depends upon what you entered in A1. Hence, an infinite loop ("circular reference") arises.

    You will need to force your users to manually enter a value in one cell only and then use a formula to populate the other cell
    Excel 2003 user (and starting to warm to Excel 2007)

  3. #3
    Registered User
    Join Date
    07-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Circular reference

    thnaks...is there any way to assign a macro to an individual cell? That way I could allow the user to input in any cell and then use the macro to copy it to it's partner cell?

  4. #4
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,126

    Re: Circular reference

    You can have a macro to do that, but a) it eliminates the ability to Undo, and b) requires users to enable macros -- which is fine if you already require macros, but probably overkill for this requirement.

    Can you explain what you're trying to do, and post an example?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Circular reference

    Thanks...Here is what I am trying to do. I have a grid where I need to record winning and losing scores between two people. So the winning score for person A is the losing score for person B. I want the user to be able to enter in either person A or Person B. Please see attachement.

  6. #6
    Registered User
    Join Date
    07-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Circular reference

    here is the example...
    Attached Files Attached Files

  7. #7
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Circular reference

    you could just ignore the circular ref warning
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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.2.0