Link to home
Start Free TrialLog in
Avatar of NYQuicksale
NYQuicksaleFlag for United States of America

asked on

A Formula in this sheet contains one or more invalid references

I've workbook which contains graphs and a lot of formulas, the graphs are dynamic, the data range contains a lot of #N/A, to avoid plotting blanks on charts.
I'm getting a msg time and again in my excel 2007 that a formula in this sheet contains one or more invalid references. Verify that formula has valid path,workbook,range name and cell reference.

I want to get rid of this msg.

Any quick and working help in this regard shall be highly appreciated
Avatar of jppinto
jppinto
Flag of Portugal image

Excel 2007/2010?
Go to you Formulas tab, and on the "Formula Auditing" group, you have an option for "Error Checking". Open this and you "Trace Error" option there that should lead you to the formula that has the problem.

jppinto
Avatar of NYQuicksale

ASKER

it does not show any error, i've done it for the whole sheet many times, but no error
Avatar of Saqib Husain
There is a reference to an external reference which has errored out.

Try searching for a [ sign in the entire workbook and get rid of that reference.

If you dont find it try cycling through all graph elements.
is there any way which can stop this reference thing, i've already tried everything, as i told u my workbook contains alot of N/A, intentional ones to avoid blank data to get plotted. i guess that is the reason, how can i avoid it?
No it has got nothing to do with the #NA

search for a [  or for ref and get rid of it
this is not working, there's a vba code application.displayalerts = false
can i associate it with worksheet_calculate? and also at the time of saving the file,
this code must work somehow to avoid displayalerts, can someone assisst, is it actually possible?
Is it possible for you to post the file here?
ASKER CERTIFIED SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you, if found, post the culprit for the benefit of others?
I actually found the solution of it way before your reply, but since your reply contains similar answers,dats y i rated you as the solution.
This msg appears because of;
A)(THE MAIN ROUTE CAUSE OF THE ERROR MSG, IF YOUR WORKBOOK CONTAINS CHARTS,THEN FOR SURE THIS IS THE REASON OF THIS MSG)The charts that are built from dynamic name ranges and when the name range becomes blank, because of no data. Also to note that the chart that become victim of this error msg are the line charts with lots of blanks/NA#(to avoid plotting zero's on chart). I didn't see this error on the bar charts, may be the reason is that instead of blanks/NA# the range of bar charts contained Dash(-). Once the blank chart is deleted, the error disappears, so the solution is to delete the chart(which nonody would be wanting to do,because its a dynamic one,somtimes no data and sometimes lots of data).
B)the named ranges that contain #REF, once they are deleted, the msg dont appear.
Thanks for the feedback and thanks for the grade.

Saqib