Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why does my formula change?

Status
Not open for further replies.

JohnBOA

MIS
Jul 15, 2002
12
0
0
US
I am using MS Query to get external data and return it to cells A94 through B100(column A is the return name column B is the return value)
My formula in cell A1 starts off like this:
=
IF(A94="Rutkowski",B94,
IF(A95="Rutkowski",B95,
IF(A96="Rutkowski",B96,
IF(A97="Rutkowski",B97,
IF(A98="Rutkowski",B98,
IF(A99="Rutkowski",B99,
IF(A100="Rutkowski",B100,"0"))))))))
BUT after a couple of opens it looks like this:
=
IF(A94="Rutkowski",B94,
IF(A95="Rutkowski",B95,
IF(A96="Rutkowski",B96,
IF(A97="Rutkowski",B97,
IF(A98="Rutkowski",B98,
IF(#REF!="Rutkowski",#REF!,
IF(A99="Rutkowski",B99,
IF(A100="Rutkowski",B100,"0"))))))))
The result in the spreadsheet cell A1 has a value of #REF! and my users are wondering what is this value.

Any help would be greatly appreciated!!

Thank you.
 
#REF! is the reference error and usually means you are tryinmg to reference something that is not there.
What do you mean by a couple of opens ?? Rgds
~Geoff~
 
By opens I mean start Excel and open the same spreadsheet the next day. I use the same spreadsheet everyday. After a couple of days the #REF! shows up. This area that I am referencing is the area where MS Query returns its results.
 
Does your query update on each update, and if so is it possible that is imserting an additional row of data ?

A.C.
 
Sorry meant to say update on each file open !

A.C.
 
Yes. On each update I automatically run the query and update the area. The query can return 2-9 rows.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top