Results 1 to 7 of 7
  1. #1
    Excelgerman is offline Novice
    Windows 11 Office 365
    Join Date
    May 2024
    Posts
    1

    Consolidating numerous Excel worksheets

    Consolidating numerous Excel worksheets into a unified database is my current task. Although I'm not particularly knowledgeable about Access, I excel in Excel. My company has decades of data scattered across spreadsheets, which we're keen on integrating into a database for streamlined querying and report generation. The data encompasses various numerical values such as time, date, and temperature. To gauge feasibility, I'm focusing on our most intricate spreadsheet, which spans an entire month with individual tabs for each day. I've created a new tab to aggregate daily data into a monthly table for importation into Access. Experimenting a bit, I've managed to create new tables in Access for each workbook. Opting for linking to the data source seems most advantageous, ensuring real-time updates in Access if the source data undergoes changes. Extrapolating over the past decades, this would entail approximately 200 linked tables, with an additional one each month, a prospect I'm comfortable with. However, I'm deliberating on the most efficient method to consolidate all this information into a single table, given that all tables share identical 46 fields. Any insights would be greatly appreciated!

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,013
    Any reason for such a small font?

    I would likely look at processing each file in turn and appending to a table, or a temp table if the data needs to be massaged first.

    https://www.google.com/search?q=acce...hrome&ie=UTF-8
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Starting from Excel structures for creating a database structure is not the best of ideas. Relational databases work differently: they keep all data that describe one topic in one table so one table would contain all data for all months and years) and avoid having redundant data (not having the same data in different tables). Best spend some time on database design and normalization before you start to create your tables.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,572
    Hi
    Can you upload a zipped copy of a daily spreadsheet containing no confidential data?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    172
    use PowerQuery. then when you get everything consolidated, import that into Access.

    PowerQuery absolutely blows the doors off VBA. Go on YouTube and look up maybe Rick de Groot (BIGorilla) or Chandeep Chhabra (goodly) or Purna Duggirala (Chandoo) and watch one of their videos on even simple PowerQuery. (Pick one, there are tons). Or one of Mynda Treacy's.

    Seriously. don't use Access for the cleaning and transforming. It's terrible. And PowerQuery is in Excel. so you can do it all inside. And folder sources (LOTS of sources are built in, so you can process an entire folder at once if you want. (The problem is that VBA uses strong typing, and so does Access. The only way you could do it 100% in Access is to declare every column text and then use a variant data type in your code to clean it up.

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,013
    Quote Originally Posted by madpiet View Post
    use PowerQuery. then when you get everything consolidated, import that into Access.

    PowerQuery absolutely blows the doors off VBA. Go on YouTube and look up maybe Rick de Groot (BIGorilla) or Chandeep Chhabra (goodly) or Purna Duggirala (Chandoo) and watch one of their videos on even simple PowerQuery. (Pick one, there are tons). Or one of Mynda Treacy's.

    Seriously. don't use Access for the cleaning and transforming. It's terrible. And PowerQuery is in Excel. so you can do it all inside. And folder sources (LOTS of sources are built in, so you can process an entire folder at once if you want. (The problem is that VBA uses strong typing, and so does Access. The only way you could do it 100% in Access is to declare every column text and then use a variant data type in your code to clean it up.
    Makes me wish I was still working then I would find a need for that.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    172
    Can you obfuscate enough of maybe two sheets so I can see what you're trying to do? (Just easier to see it instead of conjecturing about how it's structured etc). Maybe I can sort out how to do it in PowerQuery so that the resulting cleaned table lands in Excel. Then I can link to that in Access and just grab the new records.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Excel worksheets will NOt link!
    By DubCap01 in forum Import/Export Data
    Replies: 2
    Last Post: 02-09-2016, 08:47 AM
  2. Replies: 2
    Last Post: 08-10-2015, 11:53 AM
  3. How to copy and paste between worksheets in Excel?
    By Ronald Mcdonald in forum Programming
    Replies: 6
    Last Post: 05-26-2012, 10:40 PM
  4. How To Combine 3 Linked Excel Worksheets?
    By cadsvc in forum Access
    Replies: 2
    Last Post: 04-26-2011, 10:16 AM
  5. Deleting Worksheets on a Excel workbook
    By BED in forum Programming
    Replies: 0
    Last Post: 07-27-2010, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums