Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Regnab
 
Posts: n/a
Default Circular Reference error...

Just curious if people have a better way of doing what I'm trying to,
or whether there is a solution to problems I'm encoutering...

I've created a production schedule which forecasts production over a
number of years. It is based on a number of variables the user can
change. However, as actual data is entered, I've tried to make the
forumla's switch to the actual data to make forecasts more accurate.
For example, in K35, I have the formula:
=IF(ISBLANK(B35),"",IF(HASFORMULA(J35), K$32, J35/C35)). The
'HasFormula' function is one I adapted off the net, and returns a
boolean depending on whether the target cell has a formula. As the real
data in entered, it switches.... fairly straight forward I think.

The problem is that there is a circular reference of sorts. While it
never occurs at the same time, it is possible for the value in 2 or 3
different cells to be circularly dependent on each other (one relies on
the other when a formula is involved, then on the other when actual
data is entered). It all works fine normally, but a problem occurs when
I hide the cells using a macro and then redisplay them. I get a #VALUE!
error, citing a circular reference. I delete the formula, press undo
and it refreshes and is back to working. Another interesting thing is
when I hide these rows manually and redisplay them, there is no
problem. The Macro is an exact recording of the manual process.

So my questions a
1) Is there a better way of doing the adaption between forecasting and
real data - the idea of a cells value changing depending on whether
surrounding cells are formula's or actual values.
2) Has anyone got any ideas how to stop the error from occuring -
perhaps turning off the circular reference checking or something??
3) Why would the recorded Macro be a problem but doing it manually is
fine?
4) If a tree falls in the forest, and there is no-one there to hear it,
is it really a tree??

Thanks for all ideas,

Cheers

Reg

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Circular reference toolbar not working [email protected] Excel Discussion (Misc queries) 3 May 29th 06 01:55 AM
Getting rid of a circular reference error message sharkfoot Excel Discussion (Misc queries) 9 March 26th 06 07:48 PM
Problem with Circular Reference Paul M Excel Discussion (Misc queries) 1 February 15th 06 01:43 AM
Circular reference help please! [email protected] Excel Discussion (Misc queries) 1 February 9th 06 10:41 AM
Circular reference leon Excel Worksheet Functions 1 November 1st 04 12:45 PM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"