+ Reply to Thread
Results 1 to 18 of 18

Multiple Rows into single row on Different worksheet?

  1. #1
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Question Multiple Rows into single row on Different worksheet?

    first.. I am a novice excel user and first time poster!.

    i selected general section as i have no idea if this is possible. I have one workbook, and data on different sheets.

    Here are examples of my sheets.

    first one is called Factory. (these records are by item code, so all items listed no dup's) column heading in () data seperated by ,

    (Item Code)(Description)( Qty) (VOL) (Weight) ( Factory) (3MoSales) (po no) (ETA) (QTYon PO)
    ABC , test item , 412 , 0.00 , 15 , MADISON , 899 , XXPO NoXX , XXETAXX , XXQTY on POXX
    DEF , test item2, 567 , 0.12 , 17 , BOSTON, 950,

    next sheet is called OpenPOs

    (Item Code)(PO No) (ETA ) (Qty On PO)
    ABC , 0006627, 06/14/2015, 380
    ABC , 0006688, 05/30/2015, 290
    DEF , 0006627, 06/14/2015, 420
    DEF , 0006688, 05/30/2015, 480
    DEF , 0006627, 06/14/2015, 325
    XYZ , 0006688, 05/30/2015, 380



    is it possible to read the openPOs sheet, and match the item code, and then have it insert the PO no, ETA and Qty on PO running horizontal(same line) as item on the Factory Sheet?
    the OPen PO's can have one or many open PO's listed for each item, but it is sorted by item.

    any help or thoughts would be welcome.. remember i am a novice trying for this complicated situation.


    Peter

  2. #2
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Multiple Rows into single row on Different worksheet?

    this is a simple vlookup or index/match formula. A sample workbook will help. But here's an example of the formula you need.


    =INDEX(OpenPos!$B:$B,MATCH($A2,OpenPos!$A:$A,0))

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    Welcome to ExcelForum Peter! Nice to see a fellow Chi suburbs resident on here!

    Igoodable's approach will not work because the PO numbers (at least per your example) are not unique numbers. The problem with VLOOKUP and MATCH/INDEX formulas is they return the first line based on the number. Could you attach an example of your workbook so we can take a further look?

    Best luck!

  4. #4
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Re: Multiple Rows into single row on Different worksheet?

    Thank you..
    i have attached a partial workbook.
    it has three sheets on it.
    the main sheet is FactoryCBM. that is where i have the list of items. and the multiple POs is on the OPenPOs tab.
    i need the PO No,ETA,Qty On PO columns from the OpenPOs tab to be on the same row (itemcode) of the FactoryCBM tab.

    so, if there are 2 open po's, i need them horizontal repeating all 3 columns for each openPO. so then the first line it would add 6 columns

    hopefully i have given you enough information.

    Peter
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    I understand the goal, but I do not understand the purpose. Could you provide a little additional detail in regards to what you are trying to track/measure/accomplish? There is no "quick and easy" way to do what you are looking to do. Maybe there is another approach or solution I can help you find.

  6. #6
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Re: Multiple Rows into single row on Different worksheet?

    i create the 3 sheets in my sample excel, with crystal reports out of MAS100(ERP), i was unable to join all the tables in one report so i needed to run three reports which i export into excel.
    The goal is to have one sheet/row for each item, we use this information to build a purchase order, we are a furniture importer so we need to build the PO with our eye on weight and Vol(CBM) to fit in a container, so part of that whole thing is we need to know if there are open PO's so we can either increase or decrease our "Build" depending on whats in the works.
    right now we create a spreadsheet all manually as this information is not easily available and it takes along time. my spreadsheets have sped up alot, but if there was a way to get this in one sheet, it would be easy to view and would really help out our purchasing dept.

  7. #7
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    So is purchasing doing calculations off of this data? Like Qty On PO * Weight = x and then if x > Container capacity, increase order based on Available Qty or something like that?

    For example... Item R2-140, PO 0006627 has a qty of 380. Times the weight of 15 (lbs?), that gives us 5,700 (lbs?). But, a container can hold 6,500 (lbs?) so lets add 53 additional units! (I made up container capacity - no clue what a real value would be.)

    I got 53 by taking the container max - current weight and divided that difference by the weight per item (6500 - 5700)/15 = 53.333 rounded down to 53.

  8. #8
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Re: Multiple Rows into single row on Different worksheet?

    yes, they are doing calculations off of the results from spreadsheet, i have my items not only sorted by item, but by factory, so they can build a container for each factory which has specific items. ,but a big part is knowing if there are open PO's.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Multiple Rows into single row on Different worksheet?

    The FactoryCBM worksheet appears to be a type of report. This format "can" be created but will be very difficult to make sense of when there is a lot of data.

    What you have on Open POs could work for you with the addition of some of the details from FactoryCBM and be able to produce reports that are easily read.

    Possibility with Open POs at the top and some possible reports under:

    A
    B
    C
    D
    E
    F
    1
    Item Code Description PO No Factory ETA Qty On PO
    2
    R2-140 GLS ROUND TABLE 0006627 YAOJIANG
    06/14/2015
    380
    3
    R2-140 GLS ROUND TABLE 0006688 YAOJIANG
    05/30/2015
    290
    4
    R2-150 GLASS TOWER 0006627 YAOJIANG
    06/14/2015
    420
    5
    R2-150 GLASS TOWER 0006688 YAOJIANG
    05/30/2015
    480
    6
    R2-160 GLS BOOK SHELF 0006627 YAOJIANG
    06/14/2015
    325
    7
    R2-160 GLS BOOK SHELF 0006688 YAOJIANG
    05/30/2015
    380
    8
    9
    10
    11
    12
    13
    14
    15
    Quarters ETA Factory Item Code Qty On PO
    16
    Qtr2 May YAOJIANG R2-140
    290
    17
    R2-150
    480
    18
    R2-160
    380
    19
    Jun YAOJIANG R2-140
    380
    20
    R2-150
    420
    21
    R2-160
    325
    22
    Grand Total
    2275
    23
    24
    25
    26
    27
    Item Code Quarters ETA Qty On PO
    28
    R2-140 Qtr2 May
    290
    29
    Jun
    380
    30
    Qtr2 Total
    670
    31
    R2-140 Total
    670
    32
    R2-150 Qtr2 May
    480
    33
    Jun
    420
    34
    Qtr2 Total
    900
    35
    R2-150 Total
    900
    36
    R2-160 Qtr2 May
    380
    37
    Jun
    325
    38
    Qtr2 Total
    705
    39
    R2-160 Total
    705
    40
    Grand Total
    2275
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    I think you may be looking at the data upside down, for lack of a better term. I would try using the Open POs tab as the primary page, pulling the rest of the information into that. I would do this because, based on what you described to me, identifying the Open POs is the primary objective.

    It will appear that certain things are "duplicating" (like description for example) but they are not because the "Item Code", "PO No", and "ETA" create a unique line. In database management, we call this a Key.

    Working the data like this, you can quickly create calculations while knowing that everything you are working with is based on Open POs. If you look at "Sheet1" in the attached, it is a simple pivot table that kinda breaks things down a little bit. Organizing your data in this manner allows for this.

    Take a look and let me know if that works for you! Hope I helped.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    Hi Newdoverman! PeterCCI, it appears newdoverman and I are on the same page. Hopefully between the two of us, that all makes sense.

  12. #12
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Re: Multiple Rows into single row on Different worksheet?

    oh my, that is a great idea. your right i got stuck looking at the data one way..

    can you make that pivot table be like New doverman's bottom example where it seperates by item..

    so appreciate all the responses

    second.JPG

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Multiple Rows into single row on Different worksheet?

    Hi ericbartha, we are definitely thinking along the same lines. We have just presented different reports using the same method.

    I understand PO to mean Purchase Order and there can be many items on one PO but each item has a unique identifying number and description (or should).

    Setting up the way ericbartha and I are thinking, data can be extracted using Dates, Date Ranges, Item numbers, Purchase Order numbers, the factory involved, the quantity and value of items with any combination of the above being possible without much difficulty.

    With the data properly set up, many different Pivot Table reports can be easily created.

    Proper data identification and organization is the key. Setup one record per row with one column per field (subject).

  14. #14
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    PeterCCI,

    If you want reports how newdoverman has it, the pivot table cannot provide this without adding to the "raw data" where raw data is your Open PO tab. If you want, for example, to include a month into the report do the follow to the raw data.

    Right-click on column A and select insert. In A1, enter "Month". In A2, enter the Formula =MONTH(D2). That will return a value of 1 - 12. If you would rather see month names, enter this formula. =CHOOSE(MONTH($D2),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

    Using this method, and other formulas like the above (for example =WEEKNUM and =YEAR) you can add additional data that can easily let you filter the data based on what you want to see.

    Otherwise, your company needs an Excel Consultant, I am always looking for work! I am based out of Aurora, IL after all

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Multiple Rows into single row on Different worksheet?

    The bottom reports that I just showed results for were actual Pivot Tables using your data.
    Here is a pivot table using ericbartha's workbook and data with a Pivot Table set up based on the Item code broken down by Fiscal Quarter with the subtotals for each item. Click in the table to see the field list and how they are set up in the row labels and values area.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-21-2015
    Location
    Elgin, IL
    MS-Off Ver
    2013 professional
    Posts
    6

    Re: Multiple Rows into single row on Different worksheet?

    Thanks Newdoverman, i will try and get that into my full spreadsheet and see if i can link up a few more items to it.

    but i like where its headed..

    eric. Sounds good, do you do training classes? I really dont use excel that much or often, this is a one time request that I received.
    but the girls in the office didnt know how to help me, and we just recently went to 2013 pro.

  17. #17
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    I've only done training classes for my current company, where I am a Business Analyst. While training classes are not something I am really looking to do, I am looking for additional contract work. Doing things like giant projects using Excel/Access to create and automate custom tools and solutions for your business.

    If you are comfortable, e-mail me at eric.bartha@syncreon.com and I can send you an example of an Executive Dashboard I am currently working on.

  18. #18
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Re: Multiple Rows into single row on Different worksheet?

    I'd like to add, the only reason I am not open to training classes at the moment, is I do not want to have to use a PTO day to hold such a class. If we could work out a reasonable price that meets both of our needs though, I would of course reconsider. Also, if we could work out an evening or weekend class, that would work too.

    Best wishes on your future endevors and again, welcome to Excel Forum!

+ 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: 5
    Last Post: 05-25-2013, 07:12 AM
  2. [SOLVED] Single product with multiple variations in multiple rows need to consolidate to single row
    By 65monroe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2013, 01:42 AM
  3. Copying multiple rows from multiple worksheets to a single worksheet
    By Malkave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 06:35 AM
  4. Replies: 4
    Last Post: 07-03-2012, 08:01 PM
  5. Replies: 4
    Last Post: 08-16-2011, 09:32 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