+ Reply to Thread
Results 1 to 9 of 9

3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

  1. #1
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    I am unsure the correct nomenclature here: I will use the word "Table" to mean a rectangle region of data.
    I have a project where I will need upwards to two to three thousand Tables.
    Each Table will have only 4 columns & upwards to 50-100 rows.
    Many Tables will contain less than 20 rows.
    Right now it seems almost impossible for a table to reach 100 rows, but I'm unsure what the upper limit might be.
    Thus each table will contain a small amount of data.
    I will have a Worksheet which will summarize these tables of data.

    I have been agonizing about what is the best way to structure this data.
    Data entry will be via VBA.

    Which would be better?

    (a) One worksheet to contain 3,000 tables every 200 rows.

    (b) One workbook to contain 3,000 worksheets (each table having its own worksheet).

    (c) One folder to contain 3,000 workbooks (each table having its own workbook).

    One advantage (to my mind, anyway) of 'c' is the fact that on most weeks, I will only need to update 100-200 of these tables. Which means I could open and close 100 to 200 workbooks and wouldn't need to open a workbook containing all the tables.

    P.S.

    (d) Since each table represents a student on a chess team, and there are about 200 or so schools, I could have 200 sheets (one for each school) and then a table for each student set apart by 200 rows.

    (e) Perhaps I could have one workbook for each team, and one sheet for each table (student on the team).

    What do you think?
    Last edited by StevenM; 05-18-2012 at 03:09 AM. Reason: Added P.S.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    If sounds a lot like you would be a lot better off using a database. Do you have access? it is much better suited to what you want to do, you's only need a couple of tables and could then run queries to get exactly what you want.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    Why not just one table for everything?

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    I personally would go with option 1 (one table). If organized well, it will be efficient and can be read/ updated easily. Opening and closing workbooks or looping through many, many worksheets is inefficient and will add to the total workload (e.g. time, disk space). Kyle is probably right about using a database, but I can't comment on this because I am still learning about database structure, normalization, etc.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    Why not just one table for everything?
    So instead of having a separate table for each student, I could add another column for a student ID number and then place all the data in one worksheet, is that your suggestion? So it would be better to have five columns and all the data grouped together than having four columns and each student's data separated by 200 rows? As new data is added, they are added at the end of the worksheet. And if I need the data for a particular student, I can sort the table by the ID and get the information easily enough. I could see that working.

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    Quote Originally Posted by StevenM View Post
    And if I need the data for a particular student, I can sort the table by the ID and get the information easily enough. I could see that working.
    Or use a pivot table so that you never have to 'sort' the original data. I have had nightmare situations where the data was sorted by some of the columns but not all and I had to manually double-check each row and make changes accordingly.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    been there done that, abousetta...what a nightmare!! Pivot tables sound the way to do, plus, having only 1 file, backups and portability are much easier too
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    Thanks everyone for your suggestions!

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: 3,000 Tables versus 3,000 Worksheets versus 3,000 Workbooks

    if you have the data all in one sheet and table you can then also use that as a data source easily from other workbooks (using pivots, querytables and/or ADO) if you don't want to, or can't, use a true database.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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