PC Review


Reply
Thread Tools Rate Thread

DO Until Loop

 
 
newguy
Guest
Posts: n/a
 
      30th Apr 2010
I am trying to get around a circular reference on a worksheet by using
a Loop. I need to loop until 2 cells equal each other. However one
cell is based on the other hence the circular reference. My thought
was that I would just start with 1 increase the cell value by .01 let
the workbook calc see if they are equal and loop until they are. I am
not sure if this is possible or if this is the best way to accomplish
this.

Thanks
 
Reply With Quote
 
 
 
 
Homey
Guest
Posts: n/a
 
      30th Apr 2010
have you try goal seek on tools menu?

Also if calc resolve with enough calcs you can try set calc mode iteration
on.

"newguy" <(E-Mail Removed)> wrote in message
news:9f0d93b7-fc8c-40bd-a10b-(E-Mail Removed)...
|I am trying to get around a circular reference on a worksheet by using
| a Loop. I need to loop until 2 cells equal each other. However one
| cell is based on the other hence the circular reference. My thought
| was that I would just start with 1 increase the cell value by .01 let
| the workbook calc see if they are equal and loop until they are. I am
| not sure if this is possible or if this is the best way to accomplish
| this.
|
| Thanks

 
Reply With Quote
 
B Lynn B
Guest
Posts: n/a
 
      30th Apr 2010
Rather than spending the time it would take to write the code, I would put a
formula in a third cell dividing one of your two values by the other. Then
use the Goal Seek tool to make the third cell equal to 1 by changing the one
you want to change. Much quicker and easier than writing code, as much fun
as that is.


"newguy" wrote:

> I am trying to get around a circular reference on a worksheet by using
> a Loop. I need to loop until 2 cells equal each other. However one
> cell is based on the other hence the circular reference. My thought
> was that I would just start with 1 increase the cell value by .01 let
> the workbook calc see if they are equal and loop until they are. I am
> not sure if this is possible or if this is the best way to accomplish
> this.
>
> Thanks
> .
>

 
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
Re: Simple window application with a loop and a button to eventuallystop the loop Joe Cool Microsoft C# .NET 15 29th Jul 2009 08:40 PM
returning back to loop check condition without completing the loop ashish128 Microsoft Excel Programming 13 3rd Apr 2008 12:53 PM
loop through field names, then use to loop through records topopulate grid pmacdiddie@gmail.com Microsoft Access Form Coding 1 4th Jan 2008 01:13 PM
Advancing outer Loop Based on criteria of inner loop =?Utf-8?B?RXhjZWxNb25rZXk=?= Microsoft Excel Programming 1 15th Aug 2005 05:23 PM
Convert loop with Match function to avoid nested loop??? Kobayashi Microsoft Excel Programming 2 17th Mar 2004 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 PM.