+ Reply to Thread
Results 1 to 2 of 2

Update Master Table from Subworksheets that are Sent to Clients

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    2

    Update Master Table from Subworksheets that are Sent to Clients

    Hi all,

    I feel like what I am trying to do is something pretty simple in the Excel world and I think I am missing some basic concept that's preventing me from acheiving it.

    I have about 20 identical tables for 20 different provinces to fill out. Each of these tables is in a different workbook because they are sent separately to each of the provinces. Each of these tables have the same exact columns, as we are requesting the same information from each of these provinces. Specifically, each of these 20 provinces are reporting information about the condition of their various cities. And the provinces may have a different number of cities, but the number of criteria they are reporting on is the same. So, pratically, this means that each of the Province tables have a the same number of columns, but may have a different number of rows as the number of cities is different.

    I simply want a method to take Province A Table and paste it into a Master Table. Then, starting from wherever the first empty row is take data from the Province B Table and tack it on. And so on for all the 20 Provices. I don't think that, at this point, I want any sort of summing of data. I just want an exact copy in the master table. Although, the ultimate idea is create some sort of pivot chart with all of the data, so if it's necessary to do some aggregation before adding to the master table, I guess, we could to that.

    Three quirks:
    1. The number of cities being evaluated may change in the provinces. So, I was hoping that the Master Table could be dynamic such that if in Province A, we are suddenly adding on a new City (or, in orther words, increasing the number of rows in that Province Table), then the data from Province B would be pushed down.

    2. This collection of information is something that happens weekly: every week the tables are sent out to the provinces and the next day they are sent back. They are then compiled into a master table to be analyzed. So, I don't want a method where we copy and paste it each week. I wanted a method, where they just update the info the Province Tables and Master Table is automatically changed to reflect the new information that we received that week. When I first made the Master Table, I had just manually created links from master spreadsheet to Province spreadsheet. This was fine, but then I ran into the problem of a new city being added to the Province Table.

    3. This is supposed to be a spreadsheet used for people that don't know a whole lot about excel, so I was hoping that it could rely of formulas. Is it possible to do this without using VBA or recording macros?

    Anyway, please let me know of any thoughts. I've done a lot of googling and am only coming across Consolidation and VBA and Excel add-ons. It seems like somethign so easy: just tacking a couple of tables together. The Table tool in Excel is already able to dynamically expand when you are adding rows to it, so I just thought you could do something in the Master spreadsheet like: Table 1 + Table 2 + Table 3...

    Thanks so much!
    Last edited by nd888; 07-13-2015 at 04:40 AM.

  2. #2
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    2

    Re: Update Master Table from Subworksheets that are Sent to Clients

    Okay, I made a bit of progress but then got stuck again. I tried to apply this forumula to join two tables, one after the other:

    =IF(NOT(ISBLANK(ProvinceOne!A1)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A1)),ProvinceTwo!A1,""))

    The idea is that if the first cell of the ProvinceOne Table isn't blank, the value is returned into the master table. If it is blank, then it goes to the first cell of the ProvinceTwo Table. I then dragged this formula down. It worked well for linking the ProvinceOne table data: in the following row of the master table, A1 changed to A2 as predicted. However, in the following row of the master table, the ProvinceTwo A1 also changed to A2.

    In other words, in the second cell of the master table, the formula changed to this:
    =IF(NOT(ISBLANK(ProvinceOne!A2)),ProvinceOne!A2,IF(NOT(ISBLANK(ProvinceTwo!B2)),ProvinceTwo!A2,""))

    But I want it to remain like the following while the formula hasn't encountered a blank cell in the ProvineOne table:
    =IF(NOT(ISBLANK(ProvinceOne!A1)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A1)),ProvinceTwo!A1,""))
    =IF(NOT(ISBLANK(ProvinceOne!A2)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A1)),ProvinceTwo!A1,""))
    =IF(NOT(ISBLANK(ProvinceOne!A3)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A1)),ProvinceTwo!A1,""))

    Only, when a blank is encountered in the ProvinceOne Table, do I want the ProvinceTwo table cells to start increasing and the ProvinceOne table cells to stop incrementing:
    =IF(NOT(ISBLANK(ProvinceOne!A350)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A1)),ProvinceTwo!A1,""))
    =IF(NOT(ISBLANK(ProvinceOne!A350)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A2)),ProvinceTwo!A2,""))
    =IF(NOT(ISBLANK(ProvinceOne!A350)),ProvinceOne!A1,IF(NOT(ISBLANK(ProvinceTwo!A3)),ProvinceTwo!A3,""))

    Any thoughts?
    Thanks!

+ 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. Replies: 3
    Last Post: 11-17-2014, 02:18 PM
  2. VBA to compare master table to subordinate datasheets and update values
    By Eric111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2014, 07:59 PM
  3. What is the best way to count the number of clients from a table?
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2014, 04:40 AM
  4. Copy of manager's clients info from master list
    By wallsp in forum Excel General
    Replies: 0
    Last Post: 06-18-2012, 07:04 PM
  5. Update Master Table
    By Nick Danger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2009, 12:23 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