View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar Elkar is offline
external usenet poster
 
Posts: 964
Default Advanced cell function. is it possible

There are a couple problems that may arise from turning on Iterations. First
off, other formulas in your workbook are now allowed to use ciruclar
references as well. This is a minor problem, but may make catching errors
more difficult, especially in large/complex workbooks.

But, the main problem to look out for, is that the Iterations setting is
applied to all workbooks open in the same instance of Excel. So, if you set
Iterations on one workbook, it is applied to all other workbooks that may be
open. Same with turning off Iterations. And, most annoyingly, if you open
multiple workbooks, the Iterations setting of the first workbook opened will
be applied to each subsequently opened workbook, regardless of how that
workbook was saved.

I'm not saying you shouldn't use this, but just keep these things in mind.
Elkar

"Gustavo" wrote:

Thanks again.

What should be the downside for your solution? just the goal seek will
not work?

Thsi worksheet uses RTD data feeds. Will it still work or i'll have
some problems?

Thanks


On Jan 26, 6:11 pm, Elkar wrote:
Actually, I'd recommend a VB solution, but by allowing a circular reference,
this can be done.

Under TOOLS--OPTIONS--CALCULATION Tab, check the box marked "Iterations"
and change "Maximum Interations" to 1.

Now, in C1, use this formula:

=IF(A1=B1,A1+1000,C1)

HTH,
Elkar



"Dave F" wrote:
I think it's impossible to do without VBA.


Dave
--
Brevity is the soul of wit.


"Mike" wrote:


I would be delighted to be told I'm incorrect by a more knowledgable user but
I think you are going to struggle with this without resorting to VB. I can
see no way of retaining the old vlaues of A1 and B1 without doing so.


If you want a VB solution please post again and check that I have corrected
your logic correctly below.


Mike


"Tosco" wrote:


Hi all,


I`m having a problem on excel and I would like to know if it`s possible
to be done without programming in VB:


Let's say i have the following:


A B C
1 100 100 1100


The formula should be on C1, and it should evaluate to:


Everytime cells A1 and B1 have the same value, C1 = A1 + 1000


If B1 for example change to 200, C1 shoulb stay 1100, until A1 changes
to 200 also, when C1 should change to 1200.


i'll try to do some simulation to make it clear:


A B C
1 100 100 1100


A B C
1 200 100 1100


A B C
1 300 100 1100


A B C
1 300 300 1300 (1600)


A B C
1 300 500 1500 (1600)


Or, in other words, C1 should be equal to 1000 + the value of A1 or B1
on the last time they were equal.


Thanks in advance.- Hide quoted text -- Show quoted text -