+ Reply to Thread
Results 1 to 25 of 25

Horizontal list of IDs & data needs to be vertically stacked in their own individual row

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Question Horizontal list of IDs & data needs to be vertically stacked in their own individual row

    I receive this report each week. Currently the report contains roughly 95,000 rows of data (I anticipate this to increase over time).
    END RESULT: I need to have directions and/or an understanding on how be able change the layout of this report each week to the new layout.


    Original report sample of 15 rows (out of 95,000 rows)
    ID's are listed in the columns (A:T) with the applicable related data listed in columns (U:AF) for these ID’s.
    [B]See attachment for picture of original file layout.


    New Layout needed:
    I need each ID to be moved from columns B:T and stacked vertically in column A with the related data from the original file in columns (U:AF). Therefore, each ID needs to:
    • move from columns B:T to column A and have its own individual row
    • have a copy of the related information from the original rows U:AF to be placed in the new row columns U:AF
    • then columns B:T (IDs have been moved to column A and are no longer needed) should be deleted
    • finally the related data should end up in columns B:M
    [B]See attachment for picture of Final file layout.
    Please remember the file is currently 95,000 rows.


    Original report attached with 41 ID’s listed in A2:T16 (and related information in U2:AF16):
    EverTrue - original Interactions file for Friday reports.png

    Final report attached with 41 ID’s stacked on top of each other in rows A2:A42 in (and related information now in B2:M42):
    EverTrue - Final Interactions file layout for Friday reports.png

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Also, if you can, post pictures in JPEG format. Some of us can't see PNG files on this board.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Reports in Excel file now posted - please look at the bottom of this post.
    1) Original report (how we receive the data - sample of 15 rows out of 95,000 rows)
    2) Final Layout (Mock up of how we need the data to look - same sample of 15 rows of data out of the 95,000 rows)

    Reports in JPG image now posted.
    1) Original report (how we receive the data - sample of 15 rows out of 95,000 rows)
    2) Final Layout (Mock up of how we need the data to look - same sample of 15 rows of data out of the 95,000 rows)

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Hello AliGW - I have updated the post with the excel files you requested.

  6. #6
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Hello dflak,

    I have updated the post with the image files you have requested. Thank you.

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    It looks like all you need is to remove some columns from the initial data. Here is a spreadsheet that works "outside" of both the source and destination workbooks. Fill in the source and destination path names and file names in the indicated places. Then click on the copy report button.

    What it does is open the source file, remove columns B:T and saves it under the new name.
    Attached Files Attached Files

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    You could use GROUP found in the OUTLINE feature of Excel to hide/unhide columns B:T inclusive. Notice the small 1 and 2 in the upper left of the picture. Click on the 1 and the columns B:T are hidden. Click on the 2 and all columns are visible.Group Capture.JPG
    Attached Files Attached Files
    <---------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

  9. #9
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    I need all ID's from rows B:T to be moved to their own individual row in column A AND to pull over with the related data in columns U:AF, as displayed in the pics. If you know how to do this, I would love to hear back from you.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    You have not responded to the suggestions made in posts #7 and #8 - it would be useful to know in what way they are not working for you.

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    I can't understand how your data would look. Row 6 for example has 15 IDs and row 7 has 10 IDs.

    As it is right now, your requirements don't make sense to me.

  12. #12
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    I need all ID's from rows B:T to be moved to their own individual row in column A AND to pull over with the related data in columns U:AF, as displayed in the pics. If you know how to do this, I would love to hear back from you.EverTrue - original Interactions file for Friday reports - another example.jpg
    Last edited by kdm; 11-14-2016 at 01:25 PM.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    You said this in post #9. Please look at the comments and suggestions made already and respond to each of them if you want help with this. Clearly members are not understanding what you are wanting. Thanks.

  14. #14
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Hello - Posts # 7 & 8 do not work as they skipping the first step and moving to the last step. The suggestions in #7 & 8 give a way only remove or hide columns B:T. We need to move the data from B:T into A. AND when we move that data into A, we need to retain the information in cells U:AF in the new row created.
    EverTrue - original Interactions file for Friday reports - another example.jpg

  15. #15
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Can you see the pictures or the files I attached? Here is another picture that may help. In the end, this change needs to occur to thousands of rows of data, not just the sample 15 rows.
    EverTrue - original Interactions file for Friday reports - another example.jpg

  16. #16
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Here is another example of how I would need the rows to change. Please let me know if you need any other examples...

    Original file and Mock up file.jpg

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Please provide an annotated workbook. The images you have posted are not fit for purpose: the text on them is far too tiny to read!

  18. #18
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Please see the attached files as requested. These are the same as the Excel files in the beginning of this thread except I have added colors to help identify how the file changes from original to mock up.
    Please let me know if you need anything else.

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Here is a possible solution.
    On a separate worksheet I entered this formula in A2 and filled down to convert the columns A:T to rows. This includes 0s for blank cells
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B2 of the separate worksheet I entered this formula with Ctrl + Shift +Enter and filled down. This is an Array Formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter in C3 this Array Formula. Enter with Ctrl + Shift + Enter. This will give the cell addresses of the values in column B.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In D2 enter this formula and fill down and across to extract the data from the 'Original 1st 15 rows' worksheet.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format the results to properly display the data as you want. Column E format as dates and widen column K so that the result isn't displayed as scientific notation. Other columns require word wrap and auto fit row height.
    Last edited by newdoverman; 11-14-2016 at 06:47 PM.

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    The first formula in message 19 can be slightly shortened to the following. Enter in Sheet1!A2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  21. #21
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Hello NewDoverMan,

    I tried the directions you gave an I did not get the result we are looking for... maybe you can see why? Here is what I received:
    NewDoverMan.jpg
    Attached Files Attached Files

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    You really changed things by addressing a separate file. You also didn't enter the Array formulae with Ctrl + Shift + Enter.
    This ZIP file has both files linked together and it works. I have copied the formulae down to row 100 for the finished results. The formula in column A extends down to row 600 in case you add more data.
    Extract the files to the same folder. Newdoverman Results.xlsx is the file with the formulae. The other file is the data source.
    Both files must be open at the same time if the links are to work.
    Last edited by newdoverman; 11-15-2016 at 04:41 PM.

  23. #23
    Registered User
    Join Date
    04-26-2013
    Location
    Albany, NY
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    12

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    Good morning,

    Sorry for the delay in the reply. This is really close - we are almost there. I'm was very excited when I reviewed the file you sent this morning. Could you please look into the following concern?

    The issue will be in the column heading of U80.ET.CONTACT.SUMMARY. For some reason only some of the data was placed in this column and some was not. I have highlighted in yellow some of the cells that should have content and the related CONTACT.PROSPECT.ID_ numbers for those comments. If we can get this resolved we will have the process nailed down. Then the only thing left if for me to be able to recreate it for the complete file and not just the sample. Thank you very much

    Sample 15 rows - Interactions.jpg
    Attached Images Attached Images
    Last edited by kdm; 11-22-2016 at 11:34 AM. Reason: correct picture uploaded

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    I made a very small mistake in the formula with a large error as the result. In the NewDoverMan results.xlsx workbook Sheet1 cell D3 add a $ sign in front of the C in the formula like this =IF($C3 then fill the formula across and down or down and across (whichever you like).
    The formula should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I added dummy data to the Copy of the Original 15... workbook and the values were copied over perfectly.
    Last edited by newdoverman; 11-22-2016 at 03:59 PM.

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

    Re: Horizontal list of IDs & data needs to be vertically stacked in their own individual r

    This zipped file has the results I referred to in my previous message.
    Attached Files Attached Files

+ 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. [SOLVED] Add totals to each data series in a horizontal stacked bar chart.
    By maacmaac in forum Excel General
    Replies: 2
    Last Post: 01-13-2015, 12:04 PM
  2. [SOLVED] Excluding #na data on horizontal axis in stacked chart
    By groitblat in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-18-2014, 11:17 PM
  3. Replies: 2
    Last Post: 06-14-2013, 05:28 AM
  4. Align the data vertically from Horizontal layout
    By itsmesunilb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2013, 11:26 PM
  5. [SOLVED] Multiple rows of horizontal data needing to arrange vertically (stacked)
    By jpeets645 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-07-2012, 12:07 PM
  6. Replies: 0
    Last Post: 11-27-2012, 10:32 AM
  7. changing horizontal data to be shown vertically
    By Frogger0102 in forum Excel General
    Replies: 2
    Last Post: 02-17-2010, 01:13 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