PC Review


Reply
Thread Tools Rate Thread

BUG in excel iteration system? Very simple illustrative example: can you replicate?

 
 
cxc
Guest
Posts: n/a
 
      24th Oct 2007
Hello, I am currently running Excel 2003 SP2, and I am running into a
very strange issue:
1) open a new spreadsheet
2) in tool/options/calculation: enable iteration and set max iteration
to "1" (leave calculation on automatic)
3) we will do something very simple: increment a cell on each
iteration. To do this, simply go into cell A2 and type: "=a2+1". To
see the cell getting incremented, simply press F9 for each iteration.
4) I now want cell A1 and A3 to each display the value that is in A2:
to do this I go in cell A1 and type "=a2", and then go into cell A3
and type "=a2"
5) press F9 several times to increment the cell A2

=> Now it seems to me that A1 and A3 should both display what is in
cell A2...well on my spreadsheet A3 displays it alright, but A1 is 1
iteration behind!!!
=> The first thing I'd like help on is whether or not anyone else can
replicate the same issue using my example, and the second thing is: is
there a workaround?

Thanks in advance for the help!

 
Reply With Quote
 
 
 
 
Doug Glancy
Guest
Posts: n/a
 
      24th Oct 2007
cxc,

I've never used iteration, but I assume that the calculation starts in A1
and moves through the sheet. So, when A1 is calculated A2 hasn't been
incremented yet. Then A2 is incremented, but since you've limited the
iterations, the calculation never gets back to A1. A3, being after A2 in
the calculation order is the same as A2 when the iteration/calculation is
done.

I'm not sure that's what's happening, but I imagine it is.

The workaround might be to only have the dependent cells "after" the cell
they depend on.

hth,

Doug

"cxc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello, I am currently running Excel 2003 SP2, and I am running into a
> very strange issue:
> 1) open a new spreadsheet
> 2) in tool/options/calculation: enable iteration and set max iteration
> to "1" (leave calculation on automatic)
> 3) we will do something very simple: increment a cell on each
> iteration. To do this, simply go into cell A2 and type: "=a2+1". To
> see the cell getting incremented, simply press F9 for each iteration.
> 4) I now want cell A1 and A3 to each display the value that is in A2:
> to do this I go in cell A1 and type "=a2", and then go into cell A3
> and type "=a2"
> 5) press F9 several times to increment the cell A2
>
> => Now it seems to me that A1 and A3 should both display what is in
> cell A2...well on my spreadsheet A3 displays it alright, but A1 is 1
> iteration behind!!!
> => The first thing I'd like help on is whether or not anyone else can
> replicate the same issue using my example, and the second thing is: is
> there a workaround?
>
> Thanks in advance for the help!
>


 
Reply With Quote
 
cxc
Guest
Posts: n/a
 
      24th Oct 2007
Doug -

Yes that's what I figured, but it seems non-sensical to have cells
return different values depending on their position in the
spreadsheet. This is a simple example but imagine a large spreadsheet
with multiple circular references all over the place: you can't just
ask users to move hundreds of cells around just to follow a particular
sequential order from top to bottom, it's completely unmanageable (in
theory the circular references should be updated first, then the rest
of the spreadsheet).

Very strange programming from the excel team on this one...I wonder if
there is a patch to address that...


On Oct 23, 11:13 pm, "Doug Glancy" <nobodyh...@replytogroup.net>
wrote:
> cxc,
>
> I've never used iteration, but I assume that the calculation starts in A1
> and moves through the sheet. So, when A1 is calculated A2 hasn't been
> incremented yet. Then A2 is incremented, but since you've limited the
> iterations, the calculation never gets back to A1. A3, being after A2 in
> the calculation order is the same as A2 when the iteration/calculation is
> done.
>
> I'm not sure that's what's happening, but I imagine it is.
>
> The workaround might be to only have the dependent cells "after" the cell
> they depend on.
>
> hth,
>
> Doug
>
> "cxc" <cxcro...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > Hello, I am currently running Excel 2003 SP2, and I am running into a
> > very strange issue:
> > 1) open a new spreadsheet
> > 2) in tool/options/calculation: enable iteration and set max iteration
> > to "1" (leave calculation on automatic)
> > 3) we will do something very simple: increment a cell on each
> > iteration. To do this, simply go into cell A2 and type: "=a2+1". To
> > see the cell getting incremented, simply press F9 for each iteration.
> > 4) I now want cell A1 and A3 to each display the value that is in A2:
> > to do this I go in cell A1 and type "=a2", and then go into cell A3
> > and type "=a2"
> > 5) press F9 several times to increment the cell A2

>
> > => Now it seems to me that A1 and A3 should both display what is in
> > cell A2...well on my spreadsheet A3 displays it alright, but A1 is 1
> > iteration behind!!!
> > => The first thing I'd like help on is whether or not anyone else can
> > replicate the same issue using my example, and the second thing is: is
> > there a workaround?

>
> > Thanks in advance for the help!



 
Reply With Quote
 
Doug Glancy
Guest
Posts: n/a
 
      24th Oct 2007
cxc,

"imagine a large spreadsheet with multiple circular references all over the
place"

I'd rather not <g>.

Doug

"cxc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Doug -
>
> Yes that's what I figured, but it seems non-sensical to have cells
> return different values depending on their position in the
> spreadsheet. This is a simple example but imagine a large spreadsheet
> with multiple circular references all over the place: you can't just
> ask users to move hundreds of cells around just to follow a particular
> sequential order from top to bottom, it's completely unmanageable (in
> theory the circular references should be updated first, then the rest
> of the spreadsheet).
>
> Very strange programming from the excel team on this one...I wonder if
> there is a patch to address that...
>
>
> On Oct 23, 11:13 pm, "Doug Glancy" <nobodyh...@replytogroup.net>
> wrote:
>> cxc,
>>
>> I've never used iteration, but I assume that the calculation starts in A1
>> and moves through the sheet. So, when A1 is calculated A2 hasn't been
>> incremented yet. Then A2 is incremented, but since you've limited the
>> iterations, the calculation never gets back to A1. A3, being after A2 in
>> the calculation order is the same as A2 when the iteration/calculation is
>> done.
>>
>> I'm not sure that's what's happening, but I imagine it is.
>>
>> The workaround might be to only have the dependent cells "after" the cell
>> they depend on.
>>
>> hth,
>>
>> Doug
>>
>> "cxc" <cxcro...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>> > Hello, I am currently running Excel 2003 SP2, and I am running into a
>> > very strange issue:
>> > 1) open a new spreadsheet
>> > 2) in tool/options/calculation: enable iteration and set max iteration
>> > to "1" (leave calculation on automatic)
>> > 3) we will do something very simple: increment a cell on each
>> > iteration. To do this, simply go into cell A2 and type: "=a2+1". To
>> > see the cell getting incremented, simply press F9 for each iteration.
>> > 4) I now want cell A1 and A3 to each display the value that is in A2:
>> > to do this I go in cell A1 and type "=a2", and then go into cell A3
>> > and type "=a2"
>> > 5) press F9 several times to increment the cell A2

>>
>> > => Now it seems to me that A1 and A3 should both display what is in
>> > cell A2...well on my spreadsheet A3 displays it alright, but A1 is 1
>> > iteration behind!!!
>> > => The first thing I'd like help on is whether or not anyone else can
>> > replicate the same issue using my example, and the second thing is: is
>> > there a workaround?

>>
>> > Thanks in advance for the help!

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple iteration problem. Help dinodeblasio@gmail.com Microsoft Excel Programming 1 30th May 2008 12:01 PM
Simple iteration problem bstevens@rock.com Microsoft Excel Programming 4 10th Jun 2006 06:14 PM
Replicate files from 1 system to another? Steve Grosz Microsoft Windows 2000 2 6th Jun 2005 12:55 PM
the server to which you chose to replicate this system does not contain a CD-bas greta garbo Microsoft Windows 2000 Advanced Server 1 6th Oct 2004 06:08 PM
Most efficient System.String iteration Dennis Myrén Microsoft C# .NET 1 9th Aug 2004 04:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.