+ Reply to Thread
Results 1 to 16 of 16

Creating a updating master list from multiple tables

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Creating a updating master list from multiple tables

    Hello everyone!

    So here is the deal: the wife and I are going to England for 18 days. For reasons that I don’t even know, I am creating a Excel spreadsheet that we will use to plan each day. The spreadsheet is attached. Basically there are many different worksheets for each of the days. For each day, there is a column for the day (to be hidden later), activity, cost, and comments.

    Here is my desired result: On a separate “Costs” worksheet, I want there to be a master table that updates each time a new activity for that day is added in their respective tables. An added bonus would be that this master lists for “Costs” would not include items that have a cost of $0. (Of note, the data for the individual days can either be in a table or a range; it doesn’t matter to me. However, I would like the master to be a table for sorting purposes)

    The spreadsheet I have created so far is attached.

    At this point, I have tried multiple ideas (consolidation, pivot tables, msquery) and I am pretty much at my wit’s end. I figured at this point it really isn’t that big of a deal to have but I would like to have it in there if I can. As such, I am reaching out to humans that can give help for my specific situation.

    I haven’t got in to the realm of macros with this so far, so I hope this is in the right subforum. If it isn’t and there is a better solution, feel free to move.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    It would be better if you formatted the costs sheet and put some actual data for a couple of days on there so we can see what you want it to look like.

    Having it update automatically might make it run slow.


    If the code has to loop through all the sheets every time you change an item, add an item, delete an item, change the quantity, then you might see a noticeable lag, maybe not, but I'm just letting you know.

    It might be better to have an update button or just run the macro from a key combination like Control + q.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    That is a valid point. Yeah, I am fine with using an update button to run a script.

    As for the master table, I want it to look just like all the other tables that it would be pulling data from. I have reuploaded the file.
    Attached Files Attached Files

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    There's a difference between an actual "Table" in Excel and what a lot of people call tables.

    What you have on the sheet labeled "Preflight" is an actual table.

    What you have on your day sheets are not tables, they are just formatted to look like tables.

    Life would be a whole lot easier if they were all tables and only had actual data. In other words if there's no data entered it's just a header and one blank row, not a bunch of blank rows with the day numbers entered. No extra rows where the activity is blank. Coding for actual tables is much easier than having to figure out where the data is in ranges.

    If the name of the tables were simply the days "Day 1" etc this would also make things very easy.

    The table on your costs sheet doesn't make sense to me, your day tabs have "Day", "Activity", "Cost", "Comment" what you made has names and no example data that I asked for.

    If you want to make the necessary changes I'm willing to help you.

    You make and name the tables, make the costs table and I'll code it.

  5. #5
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    You're right. I goofed on getting that table you requested earlier on the right sheet. Fixing now and creating and naming tables. Stand by.

  6. #6
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Updated version is attached. I have created and named the tables, cleared out existing named ranges, and moved the example table to the appropriate sheet. Hopefully that will work better for you. Let me know if there is anythink else I need to fix, and thanks a ton in advance. I really appreciate the help!
    Attached Files Attached Files

  7. #7
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    It's a little late so it'll probably be some time tomorrow.
    I hope that's not a big issue.

  8. #8
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    That is perfectly OK. Probably best that I lay off the Excel for the night. I look forward to your help tomorrow.

  9. #9
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    Okay, here we go.

    I updated all your formulas to work with the tables.

    I added the name "Conversion" to the name manager.
    This is for the 1.48 you are using in your formulas to convert English pounds to U.S. dollars. So if you look at all you formulas you will see the word "Conversion" in them. If by chance you want to change the 1.48 to some other factor you can do this in the name manager one time and all your formulas will update. It's much better than having to go to every formula and change the 1.48 to something else.

    Test it out and let me know.

    I'm posting the code below for those who don't want to open the spreadsheet.
    The attached file has the code installed.

    I put a button on the costs sheet, but the code runs pretty fast.

    We could have the code run anytime you switch over to the costs sheet, you would probably see one quick little flicker as the code runs, but as I said it's pretty fast.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Skywriter, thanks a ton for the help! That worked! If could rep you more than once, I totally would. I do have a question, though. I noticed that when you run the script, it is including in the master table items that have 0 cost. Is there a modification to the script that can keep those from appearing? I looks like (and I am guessing here...) there is a provision for just that in script you posted, but it doesn't seem to be working.

    Thanks again in advance!

  11. #11
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    Well if you don't want zeros in costs, that's one click in the filtering and if you don't want blanks in costs that's another click, but I can pre-click with code.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Skywriter, your pre-clicking is greatly appreciated! That did the trick. Have a wonderful night, sir or ma'am, and thank a ton for your help. I have been restrained from pulling my hair out.

  13. #13
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Skywriter, On the result table on the "Costs" table, I can't get the formatting to stick with a pound currency symbol. Everytime I run the script it clears. What might I be missing here?

  14. #14
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating a updating master list from multiple tables

    My apologies.

    I probably looked at that ten times during testing and it never registered.

    Have a great trip.

    Try this.

    Bruce(skywriter).
    Attached Files Attached Files
    Last edited by skywriter; 01-28-2016 at 12:14 PM.

  15. #15
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Skywriter, seems that a bug is rearing its ugly head here. In the attached version, you will see that I have done some formatting changes to the last version to put the final touches on it. The bug that I am running in to now is that, in its current form, when I update a cost in tblDay1 and run the report, the row on that report for the activity from day 2 disappears. Press it again and the button disappears and the data from the two tables on the cost page disappears. I have tried it with updating costs on other tables/days and other ways to get the bug to replicate, but, for now at least, it seems to just be for when I am updating a cost of tblDay2.

    Any ideas? Thanks again for the help!
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    01-26-2016
    Location
    Los Angeles, Californa
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Creating a updating master list from multiple tables

    Skywriter, do you think you'd be able to help me with this? Any you can give would be greatly appreciated.

+ 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. Merging tables from multiple workbooks into one master list no breaks
    By winwall in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2014, 02:28 PM
  2. Updating Multiple worksheets from one "Master List"
    By lorigies in forum Excel General
    Replies: 5
    Last Post: 03-06-2014, 11:51 AM
  3. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-12-2013, 02:28 AM
  4. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-08-2013, 10:49 PM
  5. Creating Multiple Output Files from a Master File and updating data between workbooks
    By EXCEL0429 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2013, 11:54 AM
  6. Replies: 2
    Last Post: 11-28-2012, 05:43 PM
  7. Replies: 1
    Last Post: 06-22-2009, 11:47 AM

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