+ Reply to Thread
Results 1 to 5 of 5

get rid of "A formula in this worksheet contains one or more invalid references"

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Luxembourg
    MS-Off Ver
    Excel 2007
    Posts
    3

    get rid of "A formula in this worksheet contains one or more invalid references"

    Hi everyone,
    I have a workbook in which there are many charts referring to range names.
    The range names have been defined using a combination of "OFFSET" and "Countnumber", such that they change size as the values change.
    Sometimes these ranges are empty because there are no values, only a "#NA" in the first cell and excel returns me the annoying message
    "A formula in this worksheet contains one or more invalid references".

    What can I do to get rid of that?
    I know the code
    Please Login or Register  to view this content.
    but I don't know where to write that to be valid for the whole workbook and forever!

    Thanks in advance
    Last edited by Thecyclist; 08-14-2013 at 11:27 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: get rid of "A formula in this worksheet contains one or more invalid references"

    Prevent the error from occurring in the first place, ie

    IF(ISNA(formula),"",formula)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Luxembourg
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: get rid of "A formula in this worksheet contains one or more invalid references"

    as you suggested I eliminated the NA with if formulas, but I still have the message, are you sure that if the range is completely empty the error?
    can it be a chart problem which is supposed to chart an empty vector?

    don't you know a way for deactivate these kind of messages?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: get rid of "A formula in this worksheet contains one or more invalid references"

    change the definition of countnumber so it is always at least 1 using
    =MAX(current_formula,1)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    08-14-2013
    Location
    Luxembourg
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: get rid of "A formula in this worksheet contains one or more invalid references"

    Sorry Special-k, now it works, probably there were still some problems, now everything seems ok. Thank you

    Thanks JosephP for the suggestion!

+ 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. "A formula in this worksheet contains one or more invalid references"
    By Canuckle777 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2013, 12:19 PM
  2. Replies: 4
    Last Post: 05-31-2011, 04:16 PM
  3. [SOLVED] " invalid cell references.
    By Carbob in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2006, 10:35 PM
  4. Replies: 0
    Last Post: 02-21-2006, 01:00 PM
  5. [SOLVED] How to handle "Invalid Worksheet Name" error programatically in VB
    By Jimmy Jose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2005, 09:10 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