+ Reply to Thread
Results 1 to 5 of 5

Any ideas for this extensive calculation?

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    Boston, MA
    MS-Off Ver
    365
    Posts
    55

    Any ideas for this extensive calculation?

    One table has these 5 columns:
    1) Serial Number
    2) Ref (a unique number in each table that remains the same in all rows, i.e. each row entry will be '1').
    3) Date
    4) Qty
    5) Order

    I have approximately 700 of these tables. I need to carry out calculations in each table individually and have outputs for them. Once my code locates the table, I know how to carry out the calculation but the problem is running a loop to locate these tables. Can someone give me an idea to set the sheet up to run this calculation? The code in my head would look something like this but I have no idea what the syntax would be:

    Creating tables:
    Loop i from 1 to 700 where table name = table'i' and columns as mentioned above

    Calculating:
    Loop i from 1 to 700
    With table'i'
    'calculate

    I have attached a sample of what the tables would look like.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Any ideas for this extensive calculation?

    Hello
    May be this is a simple code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    07-17-2017
    Location
    Boston, MA
    MS-Off Ver
    365
    Posts
    55

    Re: Any ideas for this extensive calculation?

    Quote Originally Posted by YasserKhalil View Post
    Hello
    May be this is a simple code
    Please Login or Register  to view this content.
    Thanks for the idea! This creates the range in the loop. It would work I think but it would be ideal if there was a way to permanently set these ranges so I can address them even outside the code. I want to set these tables because data will constantly be added to it and they will be addressed in several other parts of the code.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Any ideas for this extensive calculation?

    I can't imagine in fact what do you need exactly. I will let other members to share their ideas
    Regards

  5. #5
    Registered User
    Join Date
    07-17-2017
    Location
    Boston, MA
    MS-Off Ver
    365
    Posts
    55

    Re: Any ideas for this extensive calculation?

    I want to name them as Table1, Table2, etc. and then the loop to address Table1, Table2, etc.

+ 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. Extensive Count function help requested
    By Match99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:30 PM
  2. Replies: 11
    Last Post: 07-19-2013, 01:58 AM
  3. Extensive Concatenation Issue
    By steve777888 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-25-2013, 11:52 AM
  4. removing extensive duplicates
    By mechwarrior in forum Excel General
    Replies: 5
    Last Post: 07-04-2012, 10:23 AM
  5. More extensive formula needed
    By HuskerBronco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2010, 10:21 AM
  6. Extensive Tree Structure
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2010, 09:10 AM
  7. [SOLVED] Extensive Workbook Creation
    By Anshin in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-09-2006, 06:55 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