+ Reply to Thread
Results 1 to 15 of 15

Excel Circular Reference problem

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Excel Circular Reference problem

    The attached file shows a circular formula that will work for a few days and break for a few days and re-fix it's self. Its a never ending battle. I would really like to make it stop breaking but I cant seem to figure out my issue. Nor can I figure out why it would work only half the time.

    When I start typing in cell D6 it should auto populate the other cells in the row except E6. E6 is manually inputted as well.

    I need to keep F column a time stamp.

    Every time I open the workbook I get a notification: Circular Reference Warning...

    anyone have any ideas?

    thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Excel Circular Reference problem

    Hi, a circular reference cannot fix itself so it either works or it doesn't.
    I'll take a look at your file and see if I understand it
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Circular Reference problem

    Turn this ON for your workbook:

    File > Options > Formulas > [x] Enable iterative calculations
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Excel Circular Reference problem

    The formula in A5 points to itself and in B there REF errors

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Circular Reference problem

    Quote Originally Posted by Keebellah View Post
    The formula in A5 points to itself .....
    That's what circular references are, formulas that use their own address/value in their calculation. Iteration.

  6. #6
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    And I'm with you completely, But I used this formula in a Excel Doc this morning and after about 3 times the 4th started this back. Each time I opened the Excel Document and no warning popped up. On the 4th its gave me the pop up warning. This has been going on for months and just now getting around to asking for help.

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

    Re: Excel Circular Reference problem

    F5 looks like you are using Chandoo's strategy for creating time stamps: http://chandoo.org/wp/2009/01/08/tim...-formula-help/ The only reason I can think for getting the "circular reference" error is that your "iteration" setting (in Excel options - formula) has been unchecked. Check your Excel options and make sure that this option is checked.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    I did this and its giving me a #REF# error in the B and C columns. Am I missing something?

  9. #9
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    Quote Originally Posted by JBeaucaire View Post
    Turn this ON for your workbook:

    File > Options > Formulas > [x] Enable iterative calculations
    I did this and its giving me a #REF# error in the B and C columns. Am I missing something?

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

    Re: Excel Circular Reference problem

    The formula in B5 has #Ref errors in it (=IF(D5<>"",IF(A5<>#REF!,1,#REF!+1),"") ) -- suggesting to me that the cell or cells or rows or columns or sheets referenced by this formula were deleted (not just cleared). C5 refers to B5, so the error value in C5 is just propagating the error in B5. What cell or cells was/were supposed to be referenced in B5? Edit the formula to replace the #REF! with the correct reference, and the #REF! errors should go away.

  11. #11
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    Quote Originally Posted by MrShorty View Post
    The formula in B5 has #Ref errors in it (=IF(D5<>"",IF(A5<>#REF!,1,#REF!+1),"") ) -- suggesting to me that the cell or cells or rows or columns or sheets referenced by this formula were deleted (not just cleared). C5 refers to B5, so the error value in C5 is just propagating the error in B5. What cell or cells was/were supposed to be referenced in B5? Edit the formula to replace the #REF! with the correct reference, and the #REF! errors should go away.
    Well, Now I don't know what has happened. I didn't have the #REF until I change the setting to enable interactive calculations.

  12. #12
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    this is the formula in B5 in my working document:

    =IF(D5<>"",IF(A5<>A4,1,B4+1),"")

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

    Re: Excel Circular Reference problem

    I have no idea why changing the iteration setting should have replaced those references with the REF error -- Excel has never done that to me. I observe that row 5 is the only active row in the spreadsheet you attached to post #1, and it seems quite likely that one would have deleted (not just cleared) row 4 in prepping the sample file, which would have created those REF errors. This formula in B5 does not seem to be part of the circular logic, so I am not sure how much effort to spend on this formula where the main concern is the circular logic in A5 and F5.

  14. #14
    Registered User
    Join Date
    05-28-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Excel Circular Reference problem

    So... I went back into settings and enabled circular calculations. I copied the original formulas from the top cell and re-pasted them. Saved, closed and reopened the workbook and cells are working and calculating fine now.Hopefully its fixed

    Thanks Guys

  15. #15
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Circular Reference problem

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Circular Reference problem
    By jontherev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 08:19 PM
  2. Circular Reference Problem
    By cpmsimoes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 06:21 AM
  3. Circular Reference Problem
    By neelpatel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-25-2012, 10:55 AM
  4. Circular reference problem
    By krishnamohan in forum Excel General
    Replies: 1
    Last Post: 08-12-2010, 09:33 PM
  5. Circular reference problem
    By yash in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2009, 06:59 AM
  6. Circular reference problem
    By R.Hocking in forum Excel General
    Replies: 4
    Last Post: 02-02-2006, 01:25 PM
  7. Circular reference problem
    By R.Hocking in forum Excel General
    Replies: 0
    Last Post: 02-02-2006, 09:02 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