Hello friends, hope all is well!
can you please help me make the below code run faster?
Thank you very much in advance!
![]()
Please Login or Register to view this content.
Hello friends, hope all is well!
can you please help me make the below code run faster?
Thank you very much in advance!
![]()
Please Login or Register to view this content.
Hi countryfan_nt
What are you trying to achieve here?
When do you expect this loop to terminate?:
![]()
Please Login or Register to view this content.
Click *Add Reputation to thank those who helped you. Ask if anything is not clear
B34 = the code above runs in cell B34, hence, values start from 0 and stops when C34 becomes TRUE.
C34 formula: =IF(E34<=B34,TRUE,B34).
E34 has the target value, to finally show the desired result.
Remove this line:
and move this line:![]()
Please Login or Register to view this content.
above this line:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by kev_; 10-29-2017 at 02:24 AM.
done, but still not fast enough. you see this is feeds a chart, and I wish to see the chart results run faster.
Last edited by countryfan_nt; 10-29-2017 at 02:32 AM.
To speed up processing
- use a variable to calculate
- write the result to the cell when condition satisfied
Try this:
![]()
Please Login or Register to view this content.
EDIT - please note that I amended the code in a couple of places after posting
Last edited by kev_; 10-29-2017 at 03:49 AM. Reason: Tidied up code
Thank you very much!
You are welcome. Thanks for reps and marking thread SOLVED![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks