+ Reply to Thread
Results 1 to 5 of 5

Iteration loop for the excel tables

  1. #1
    Registered User
    Join Date
    11-29-2020
    Location
    london
    MS-Off Ver
    office 16
    Posts
    3

    Iteration loop for the excel tables

    Dear all,
    I have a sheet with tables and rows , so I want to repeat my calculation tables n times without copy and insert copied cells. Any one could help me to finish this problem. Thank you very much,
    Attached Files Attached Files
    Last edited by mmnn22; 11-30-2020 at 01:32 AM.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Iteration loop for a excel tables

    Hi and welcome.

    It looks like you're using a neural network. If you just want to iterate and not repeat all the tables below line 110 use this (it uses a macro to copy the data from the tables back up to the top weights and start again). I've got it copying the S0 and S1 values each iteration into columns U and W and I've put your calculated S0 values into column V just to compare the results. I've set it to do 20 iterations but you can change the macro to as many as you want.
    Attached Files Attached Files
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    11-29-2020
    Location
    london
    MS-Off Ver
    office 16
    Posts
    3

    Re: Iteration loop for a excel tables

    Quote Originally Posted by Crooza View Post
    Hi and welcome.

    It looks like you're using a neural network. If you just want to iterate and not repeat all the tables below line 110 use this (it uses a macro to copy the data from the tables back up to the top weights and start again). I've got it copying the S0 and S1 values each iteration into columns U and W and I've put your calculated S0 values into column V just to compare the results. I've set it to do 20 iterations but you can change the macro to as many as you want.
    Yes, Thank you very much for your code. That 's great and all I need, but could you help me do it more completely? How to clear data to start the new iteration? and add a cell to define a n times iteration.
    Thank you very much again.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Iteration loop for the excel tables

    Try this. it clears the old data in columns T, U and W.. Set cell H4 to the number of iterations you want
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-29-2020
    Location
    london
    MS-Off Ver
    office 16
    Posts
    3

    Re: Iteration loop for the excel tables

    Quote Originally Posted by Crooza View Post
    Try this. it clears the old data in columns T, U and W.. Set cell H4 to the number of iterations you want
    Yes, that 's wonderful. I very thank you for help. That' s all I need.
    Have a nice day friend,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. For-loop stuck on last iteration value
    By CheckpointCharlie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2020, 07:26 AM
  2. Run an entire loop instead of iteration by iteration when stepping into code?
    By Norcal1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2019, 04:20 PM
  3. For Loop Iteration ?
    By distantkitty in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2017, 03:14 PM
  4. [SOLVED] Go to next loop iteration if current loop has error
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-03-2016, 09:54 PM
  5. VBA - How to continue inner loop while going to next iteration of outer loop?
    By alviniac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2015, 11:21 PM
  6. [SOLVED] Last Iteration of Loop?
    By saintplay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2015, 08:19 PM
  7. Advancing to the next iteration of a loop?
    By Maury Markowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1