+ Reply to Thread
Results 1 to 8 of 8

Combining data from multiple tables/sheets into final one

  1. #1
    Registered User
    Join Date
    05-17-2015
    Location
    Basra, Iraq
    MS-Off Ver
    2013
    Posts
    4

    Combining data from multiple tables/sheets into final one

    Hello everyone,

    I have an Excel file with multiple worksheets representing different purchase categories. Currently formatted as below:

    No. | Description | Code | Qty to order (input) | Unit | Unit Price


    1.PNG

    2.PNG

    What I would like to do is pull all the data and put it in a separate sheet as a final order form. I only want the items to appear if the Qty (input) is not 0.

    The final format is exactly the same as the individual sheets + extra column for the subttl (Qty x Unit Price)

    3.PNG

    I was thinking to copy all the codes into the final table, use vlookup for the rest and then filter off the lines with 0 values. However vlookup doesn't work to the left and I dont want to change the format as the indivual sheets with prices come from the supplier and it might be dynamic.

    Thank you in advance.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Combining data from multiple tables/sheets into final one

    You may get replies quickly if you upload a sample excel file with input and expected result (Output)

    Thanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Combining data from multiple tables/sheets into final one

    Hi there... and welcome to the Excel Forum. One way to do this is to assemble a list of order numbers that meet your criterion (Order value >0) - on sheet "helper" and consolidate that into a single list, on sheet "Master" column C, which you can then use to lookup the values that you want. The formula used to conslidate that list is an array formula. They're a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

    I also created a named range called tbl (CTRL F3) to make the referencing easier. There are a few areas in this sheet that would need to be tidied up; but before I spend any more time on it... is it close to what you want?
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 05-17-2015 at 10:50 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    05-17-2015
    Location
    Basra, Iraq
    MS-Off Ver
    2013
    Posts
    4

    Re: Combining data from multiple tables/sheets into final one

    Thanks Glenn. This is exactly what I was looking for. Cheers!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Combining data from multiple tables/sheets into final one

    How many sheets of data are there going to be (currently you have 3...).

    How many rows per sheet will you need?


    I'll then finish the job for you.

  6. #6
    Registered User
    Join Date
    05-17-2015
    Location
    Basra, Iraq
    MS-Off Ver
    2013
    Posts
    4

    Re: Combining data from multiple tables/sheets into final one

    Please see attached.

    Prices Master List Feb 2015.xlsx

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Combining data from multiple tables/sheets into final one

    I fiddled with this for a while and my end result was a bit slow. So, one rethink later: here it is. Any problems encountered, or explanations needed - just shout!!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-17-2015
    Location
    Basra, Iraq
    MS-Off Ver
    2013
    Posts
    4

    Re: Combining data from multiple tables/sheets into final one

    Thank you Glenn. This is ideal. Legend!

+ 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. Combining Data from Multiple .xlsx Files with Multiple Sheets
    By jeannelee94 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2015, 10:03 AM
  2. Code to copy data from multiple sheets into one final output sheet.
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-03-2012, 08:51 AM
  3. Replies: 1
    Last Post: 03-14-2012, 03:45 PM
  4. Replies: 0
    Last Post: 07-11-2011, 07:10 PM
  5. Combining Customers data into a final worksheet using MACRO
    By XxXElAiNeXxX in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-12-2007, 04: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