+ Reply to Thread
Results 1 to 16 of 16

Make a sheet where i can swap out tables using for instance a list

  1. #1
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Make a sheet where i can swap out tables using for instance a list

    Voorbeeld excel vraag.jpg

    First of all i don't know if what i want is possible, and if it is it is i think that would probably be by using some kind of function/formula, but if i am in the wrong thread i will remove it (if i can?) and place it in the correct thread (i would need some guidance where that would be tho).

    Okay, as you can see i have made an example sheet (picture). Now basically what i would like to do is: swap out table A for table B IF it selects ''cruiseship'' in the list to which table B refers.
    If i where to select Tugboat, i would like to swap it out with table C, and so furth.

    I would:
    - like to know if this is even remotely possible, and if so, how?
    - prefer the data to be drawn out of a seperate data worksheet
    - prefer to do it like in the example, with a list
    - like to know if my formulas, and conditional formating won't get messed up (is it possible that it uses the conditional formatting from the seperate datasheet i refered to above?)

    Basically, lots of questions and little knowledge,

    If anyone could help me out or point out that this is simply impossible, that would be greatly appreciated!!

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Make a sheet where i can swap out tables using for instance a list

    any chance you can upload that sample sheet you made?

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Make a sheet where i can swap out tables using for instance a list

    You can pull exact copies of your tables over using your dropdown list but you will lose formatting, data validation and conditional formatting (unless all the tables have the same type, then maybe we can work with that).
    Are all your tables the same width? If not, are column sizes at least approximately the same width?

    Can you upload a few examples (Go Advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Make a sheet where i can swap out tables using for instance a list

    Hi
    I supposed that your tables as 1 row for title, 1 row for labels, 7 rows to data values and 2 other rows for space, all in Sheet2
    In Sheet1 use the following
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where C1 as data validation with the name of the tables

    See the file DataOffSet.xlsx

  5. #5
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    I have attached an ''upgraded example'' i hope this helps

    - Tables and column sizes are the same (as in A is the same as A in any other table, but (A and B might vary in width, but that is the same in all tables)
    As you can see in my example A has a bigger Width than B, but that is the same for all tables.

    I expect that conditional formatting will be a problem since the area indicator bars won't be on the same row for all tables?
    - since you dint mention formulas (chemistB), i asume that won't be a problem?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    Oh you can't actually see that the width of A is the same in table B and C, since i forgot to edit table B and C to have the same width. They do have that in the original document where i intent to use this.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Make a sheet where i can swap out tables using for instance a list

    Are the three tables in separate workbooks? In separate sheets in the same workbook? or all 3 in a single separate sheet?

    Also, are you using actual Tables or just ranges that look like tables? If you click within an actual table, you will see a new "Design" tab on your ribbon.

    Sounds like this is best done with VBA, as formulas and formatting will not be able to be pulled with other formulas. Just need some of the above info.
    Last edited by ChemistB; 03-18-2016 at 11:21 AM.

  8. #8
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    I appreciate all your effort José, thanks for that.
    Now i see this is by typing the name, could this also be done with a dropdownlist?
    And is there any reason you typed T1 t/mT48 in for instance the tugboat table?

  9. #9
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    At this point i only made one of the real tables, including it's conditional formatting and formulas (formulas for title of vessel / automatic row numbers)
    I think it would be the easiest to make separate data sheets for each table in the same workbook.

  10. #10
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    Oh and there are also quite some dropdown lists in the actual sheet, not sure if this will be a problem

  11. #11
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    You are asking a question beyond my expertise, i believe by your terms these are not actual tables, i use the lines around the cells to make them.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Make a sheet where i can swap out tables using for instance a list

    Okay, no formula will pull over other formulas or conditional formatting or data validation (dropdown menus) or cell coloring so it looks like VBA would be your only solution. Are you okay with that? Are you going to be the only one using this workbook or will many people?

  13. #13
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    Me and my boss are the only ones that will be using it at this stage, but we are searching for a new person to come and work here which would also need to be able to work in it.
    I have only once in my life tried to do something with VBA which was quite difficult since i basically have only wrote one sentence of code in my life (using an toturial). The way i believe VBA works is once you have inserted the code all you will have to do is activating it with a short key, am i right?

  14. #14
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    I am okay with it as long as it won't make things more difficult, since it would also be an option to simply make multiple worksheets, and drag them in the right place (and dragging the other one out). I thought this could be a fancy thing, especially since my boss claimed this to be possible.

  15. #15
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Make a sheet where i can swap out tables using for instance a list

    Quote Originally Posted by The excel apprentice View Post
    I appreciate all your effort José, thanks for that.
    Now i see this is by typing the name, could this also be done with a dropdownlist?
    And is there any reason you typed T1 t/mT48 in for instance the tugboat table?
    Hi @apprentice
    1)
    In Sheet1!C1 I put a data validation list with the names Sheet2!$J$2:$J$5 (four tables).
    So you can use the dropdownlist (I don't know if office 2007 allows Data Validation (DV) to the list on different sheets. Try to use DV on Sheet1)
    2)
    I don't typed 1 t/mT48. Please try to download my file again.
    3) Conditional formatting is not transmitted through formulas.
    Regards

  16. #16
    Forum Contributor
    Join Date
    03-15-2016
    Location
    Arnhem, The Netherlands
    MS-Off Ver
    2007
    Posts
    102

    Re: Make a sheet where i can swap out tables using for instance a list

    voorbeeld vraag.jpg

    This is what i meant (picture), i downloaded your file again, but the numbers are there (allthough i think it is to show it draws data out of the other sheet, right?).
    Allthough it doesn't matter, since it is important for me to maintain my conditional formatting

    Thanks for the effort!

+ 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. How to make a dynamic range with multiple tables on sheet?
    By AlexRM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2015, 08:32 PM
  2. I want to make a macro to bring tables from another sheet to cover sheet
    By nthomas901 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2014, 09:38 AM
  3. Replies: 22
    Last Post: 10-24-2013, 02:52 PM
  4. Replies: 4
    Last Post: 08-14-2013, 09:14 PM
  5. How to Pull Identical Tables to one Sheet from a List of URLs
    By gfertel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2012, 03:29 PM
  6. [SOLVED] Convert Multiple Tables on a sheet to a List
    By smartk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-22-2012, 11:29 AM
  7. Replies: 5
    Last Post: 05-21-2009, 10:07 AM

Tags for this Thread

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