+ Reply to Thread
Results 1 to 5 of 5

Really Weird #REF Error in Complex Excel File?

  1. #1
    Registered User
    Join Date
    11-29-2006
    Posts
    2

    Really Weird #REF Error in Complex Excel File?

    Hello,

    So I have run into a very strange and extremely annoying problem: I am working on a large and complex set of Excel files in Microsoft Excel '97. Each file contains about 15 worksheets, in which 13 of the 15 worksheets have about 60 columns with data. None of the files reference cells in OTHER files.

    Almost all of the cells contain a function of some kind, although not complex functions. Straightforward arithmetic (dealing with a complicated financial model). Now, here is the weird part: when I copy & paste a function into the next cell over, it gives me a #REF error. However, the function is correct and there is no reason for a #REF error to be delivered. When I paste THE SAME function into the SAME cell, the original #REF error vanishes, but a PRECEDING cell (usually in the same row but with no formulaic relationship to the cell I just changed) changes to a #REF function.

    If I copy & paste the same function three times into the same cell, all #REF errors vanish. But then if I save the document, a #REF error appears again for no reason.

    Has anyone else seen this problem? If so, is there any way to fix it? I have been told by colleagues that similar problems have been observed in Excel '03, but have not yet tried opening the files under a newer version of Excel...

    All the best,
    Chris

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    lets see the function.

  3. #3
    Registered User
    Join Date
    11-29-2006
    Posts
    2
    It does this for many different functions, but here are just a couple of examples:

    =SUM(AW8:AW9)

    Where AW8 = 29100
    Where AW9 = 0

    The same happens when =SUM(AW8:AW9) is written =AW8+AW9

    These are the general "class" of functions for which this problem is cropping up. Straightforward arithmetic, and in all cases the cells they reference have valid (and simple) values.

    All the best,
    Chris

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Can you zip the workbook and attatch it to your next post??

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Unhappy Bug-Hunt

    It's horrid when something like that happens, and it's usually in a huge file.
    I have had similar problems, but I'm afraid I can't suggest anything specific.
    Somewhere in your sheets there will be a mistake, a typo,
    or inappropriate automatic update of an address in a copied cell, etc...
    Unfortunately it may not be particularly close to where the #ref finally shows up.
    It's an old-fashioned Bug-Hunt.
    Have you tried the Tools>Formula Auditing facilities?
    Have you got an old version of the file, from before it stopped working?
    Can you look back through the changes to check for mistakes?
    If all else fails you might have to re-construct the spreadsheets,
    carefully copying and pasting from the existing (broken) version
    and checking at each stage that everything is correct.
    Hopefully at some stage in that process the bug will jump out and you can then squish it.
    Mark.

+ 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