+ Reply to Thread
Results 1 to 12 of 12

Making multiple tables in one sheet into one table in one sheet

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Making multiple tables in one sheet into one table in one sheet

    What I am looking to do is to reformat a table in excel.

    When I do a data export from a specific website it gives me lots of data that is split into many "tables" within the same sheet, for example the first row "A1" is repeated many times as I scroll down the page. I have given an example below and changed column A into A1, A2, A3 etc as we move down the rows, column B is ingredients.

    What I want to do is make the first column goto a row. I know I can do this with a copy and special paste (transpose), but surely I don't have to do this with every instance of the data in each "table" for the second column.

    Example:
    A1 Butter
    A2 Milk
    A3 Pears

    A1 Mangoes
    A2 Apples
    A3 Potatoes

    There are over 1000 of these A1-A3 examples in my real data sheet.

    Any ideas?

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Making multiple tables in one sheet into one table in one sheet

    Pls upload a small sample WB indicating the problem. Also add the solution expected.
    Even a little help can be a big help !!
    1. A sample workbook says more then words. Add problem description and solution so we can understand the problem.
    2. Your appreciation is accepted by clicking the star "Add Reputation" at the lower left of the post.
    3. If your problem is solved, mark it as [SOLVED]: See "FAQ : " https://www.excelforum.com/faq.php
    4. Use [CODE] [/CODE] tags to illustrate your code: see here

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Making multiple tables in one sheet into one table in one sheet

    you can try PowerQuery, join all tables into one in PQ editor then load this query table to the sheet

    that's all what I can say without any example excel file

  4. #4
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Making multiple tables in one sheet into one table in one sheet

    Ok, feel really stupid here.... don't shoot me down, how do I insert an excel table in here???

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Making multiple tables in one sheet into one table in one sheet

    Attach example EXCEL file (not a picture, pasted text or any other than Excel format!). This file should be attached to a new post. Never change your original post (except admin's request).

    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data and contain the result what you want to achieve (manually created if necessary)
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply
    After that you should see attachment in your post

  6. #6
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Making multiple tables in one sheet into one table in one sheet

    sorry, but I just want to add an excel file to this post. I don't see go. advanced manage attachments. I just want to show someone the excel file in here.

  7. #7
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Making multiple tables in one sheet into one table in one sheet

    OK, found the attach file button, but it won't load. I will try when I leave work and get home.

    But I have now somehow managed to unsubscribe from this thread. How do I resubscribe?

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Making multiple tables in one sheet into one table in one sheet

    maybe read instruction carefully

    attach.jpg

    if you post anything you will be subscribed to this thread automatically

  9. #9
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Making multiple tables in one sheet into one table in one sheet

    I think I have managed to attach the file. On the left are the multiple tables with associated data in the second column. On the top right is the output I am aiming to achieve.

    Sorry for the absolute stupidity, as I couldn't see the "Go Advanced" button.

    There are over 4000 instances of Item 1 - 8
    Attached Files Attached Files

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Making multiple tables in one sheet into one table in one sheet

    Done with PowerQuery, is that what you want?

    Power Query for

  11. #11
    Registered User
    Join Date
    02-25-2013
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Making multiple tables in one sheet into one table in one sheet

    Thanks for that. Now I just need to work out all the steps by inspecting the editor. I have worked out how to do this, but it may be a challenge.

    Question: In the step called "Added custom", did you just manually enter the M code, or whatever it's called? How on earth am I supposed to know that coding????

    Also I think that the scripting is not exactly correct as I had 8 items with 5 in each item. Your table has 5 in 4 items and sometimes 4 or 3 in others. Is there a scripting error, as I have no idea how to manually script for my needs of what I need to do.

    Again, many thanks as I can copy what you have done, but I need to ensure the output of the scripting is accurate as my data is massive and I may not be able to absolutely notice discrepancies easily.

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Making multiple tables in one sheet into one table in one sheet

    Quote Originally Posted by jamie_bisson View Post
    Question: In the step called "Added custom", did you just manually enter the M code, or whatever it's called? How on earth am I supposed to know that coding?
    You need to learn M code How on the earth you know Excel function: SUM(A1,B1)???

    Quote Originally Posted by jamie_bisson View Post
    Also I think that the scripting is not exactly correct
    Because duplicates was removed

    So maybe try to show little example with before and after what you really need

    edit:
    here is with duplicates

    Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 Item 8
    Ankle Apple Ankle Apple Grape Fromage Cheese Apples
    Apples Head Frogs Head Leg Fromage Cheese Foot
    Hammer Maple Fromage Nuts Maple Fromage Pineapple Nuts
    Leg Pears Pears Screwdriver Maple Mushroom Pineapple Tomato
    Screwdriver Piano Piano Tomato Pear Pear Tennis Tomato


    Get it or forget it
    Last edited by sandy666; 07-06-2018 at 04:57 AM. Reason: see edit

+ 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: 2
    Last Post: 11-06-2017, 03:30 PM
  2. Replies: 1
    Last Post: 02-26-2016, 12:05 PM
  3. Replies: 9
    Last Post: 07-07-2015, 08:51 AM
  4. Replies: 1
    Last Post: 07-06-2015, 03:35 PM
  5. Need to Copy/Consolidate Multiple Tables on to a seperate sheet or table
    By Slinky84 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 06:48 AM
  6. [SOLVED] Dynamic table in a different sheet from multiple tables in other sheet
    By David Brown in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-27-2013, 12:22 AM
  7. Making a Pivot Table from data of a Close sheet visa Button(Macro)
    By mhraja in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2010, 06:20 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