+ Reply to Thread
Results 1 to 3 of 3

Circular References Message

  1. #1
    Registered User
    Join Date
    03-27-2021
    Location
    Baltimore, MD
    MS-Off Ver
    2016
    Posts
    3

    Circular References Message

    Hi All, I'm using a piece of code that returns the last term in a string, which here is the number 44.

    Where the following string is in D101:
    AAPL May21 44

    The following code returns the 44:
    =TRIM(RIGHT(SUBSTITUTE(D101," ",REPT(" ",100)),100))

    This seems to work fine but I keep getting a circular references error message a few times an hour.

    unnamed.png

    Does anyone know why or an error free way to do this?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,751

    Re: Circular References Message

    What cell is this formula in? Is D101 a value or a formula? Does the status bar at the bottom of the window tell you what cell is causing the circular reference?

    Can you share the file? See yellow banner at the top of the page.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Circular References Message

    For info, a Circ Ref Error is where a formula in a cell references itself - either directly or indirectly.
    In it's simplest form...
    A1=+A1
    or
    A1=B1, but B1=A1

    In its most complex form, it can be hidden inside dozens of referenced formulas.

    Excel will attempt to show you where the error is (on the bottom left corner), and in simple errors, this is usually pretty spot on. But in more complex files, excel tries its best, but often misses the exact location by many levels.

    A method I use to find the location is (1st SAVE the file, so you can recover it later) to delete the cell (or row/column if it is the same formula) that excel says is the culprit. If the error goes away, you have found the sourse. If it shows another location, you have not yet found the location, so repeat the delete process again. Keep doing that until the error message disappears.

    Once you find the location, undo the last action and examine that formula to see if you can ID where the problem lies.

    Good luck, this can be a tedious process.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. UDF Help: Circular References
    By grturner in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2016, 04:39 AM
  2. Circular References
    By sazza7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2015, 01:07 PM
  3. Replies: 2
    Last Post: 02-23-2014, 06:06 PM
  4. [SOLVED] Circular references
    By FSUdawg85 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 02:45 PM
  5. Circular References
    By ElmerS in forum Excel General
    Replies: 2
    Last Post: 04-16-2010, 02:36 AM
  6. Those Circular References...
    By JeremyH1982 in forum Excel General
    Replies: 4
    Last Post: 05-22-2006, 05:55 PM
  7. [SOLVED] Help :Circular References
    By PPT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2006, 11:25 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