+ Reply to Thread
Results 1 to 13 of 13

Rearranging vertical data to horizontal

  1. #1
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    225

    Rearranging vertical data to horizontal

    Hi Guys,

    I have a list of products and the equipment used to make these products based on the process.
    The processes are arranged vertically on multiple rows. I need to rearrange them horizontally on one row.
    The yellow highlighted cells is one product that has 4 processes and each process may take more than one equipment (columns E to L). So I need these equipment to be arranged in one row (on columns M to T)
    In other words, I should get Saizoner, MX_DRUM, STX_32 and KLOCKNER_2 in M4 to T4

    I am attaching the file as well.

    Thank you guys

    Table.jpg
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,902

    Re: Rearranging vertical data to horizontal

    The results in the attached copy of your table were achieved by putting the following array entered formula* in M4 and, after activating, dragging across to T4 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Next the 'Compression' columns were filled using the following modification of the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    225

    Re: Rearranging vertical data to horizontal

    Thank you JeteMc,

    I needed to add more columns for "Blistering" and I followed the same formula for "Compression" but I didn't get matching results.
    Blistering.png

    This is what I used (array formula)

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,902

    Re: Rearranging vertical data to horizontal

    When I opened the file the formula in AA4 read: =IFERROR(INDEX(I$4:I$1081,SMALL(IFERROR((ROW($4:$1081)-3)/(($H$4:$H$1081="Blistering")*($F$4:$F$1081=$F325)),FALSE),1)),"")
    After changing the formula as follows (and dragging across to column AC then down to row 10) it showed CH150_GF in AB10 as I would expect: =IFERROR(INDEX(I$4:I$1081,SMALL(IFERROR((ROW($4:$1081)-3)/(($H$4:$H$1081="Blistering")*($F$4:$F$1081=$F4)),FALSE),1)),"")
    Let us know if you have any questions.

  5. #5
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    225

    Re: Rearranging vertical data to horizontal

    I am not sure what it is but something is missing
    Look at row 439

    That's what I have on AA4
    Please Login or Register  to view this content.
    Blistering.jpg
    Last edited by mq1973; 08-28-2017 at 07:46 PM.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Rearranging vertical data to horizontal

    This may be an overly ambitious (read complicated) approach. In M4:T4 non-array entered. Double click the fill handle. (Make sure calculation is set to Automatic.) It takes about 4-5 seconds to calculate.

    I have not done a painstaking check of the returns. What I have checked works so far.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS I forgot to mention ... if you are willing to have 2-4 helper columns this formula can be made much smaller. It will likely speed up calculations as well. Just let me know.
    Attached Files Attached Files
    Last edited by FlameRetired; 08-28-2017 at 08:56 PM. Reason: Post Script
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Rearranging vertical data to horizontal

    I went ahead with the helper columns (2 of them) They can be moved out to XFC:XFD if you wish and re-hidden. The formula in U4:V4 and filled down calculates the lower and upper row boundaries of each 'Bulk' group.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The formula (still non-array) in M4 down and across is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This calculates much faster than my previous formula.
    Last edited by FlameRetired; 08-28-2017 at 09:43 PM. Reason: Additional notes.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,902

    Re: Rearranging vertical data to horizontal

    The formulas have been modified and hopefully now return expected results, however I would encourage continued testing/observation.
    The modification to the formula for 'Blistering' has been highlighted, it now reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The other formulas have been similarly updated.
    Let us know if you have any questions.
    Attached Files Attached Files

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Rearranging vertical data to horizontal

    Quote Originally Posted by FlameRetired View Post

    I have not done a painstaking check of the returns. What I have checked works so far.
    No it doesn't. Needs a rework.

  10. #10
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    225

    Re: Rearranging vertical data to horizontal

    Quote Originally Posted by JeteMc View Post
    The formulas have been modified and hopefully now return expected results, however I would encourage continued testing/observation.
    The modification to the formula for 'Blistering' has been highlighted, it now reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The other formulas have been similarly updated.
    Let us know if you have any questions.
    This works like charm

    Thank you so much JeteMc

  11. #11
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    225

    Re: Rearranging vertical data to horizontal

    Quote Originally Posted by FlameRetired View Post
    This may be an overly ambitious (read complicated) approach. In M4:T4 non-array entered. Double click the fill handle. (Make sure calculation is set to Automatic.) It takes about 4-5 seconds to calculate.

    I have not done a painstaking check of the returns. What I have checked works so far.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS I forgot to mention ... if you are willing to have 2-4 helper columns this formula can be made much smaller. It will likely speed up calculations as well. Just let me know.
    Thank you FlameRetired, This actually works, expect one thing. Please see row 740
    This is really interesting. I checked everything else and its perfect. Just this row 740 is not showing the matching data (where it says FILLING_CAPSULE)

    Cap Filling.jpg

    Please see the attached file (sheet 1)
    Last edited by mq1973; 08-29-2017 at 12:31 AM.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,902

    Re: Rearranging vertical data to horizontal

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Rearranging vertical data to horizontal

    Quote Originally Posted by mq1973 View Post
    Thank you FlameRetired, This actually works, expect one thing. Please see row 740
    This is really interesting. I checked everything else and its perfect. Just this row 740 is not showing the matching data (where it says FILLING_CAPSULE)

    Please see the attached file (sheet 1)
    That is because the formula depends upon matching/near matching headers to 'Line Name' items. That's also true of my second formula/upload. I had never noticed FILLING_CAPSULE until now.

    To make either formula work would require a redesign of the data layout.

    This needs a different approach. I haven't looked at his(/her?) solution in detail, but apparently JeteMc cracked it.

+ 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: 16
    Last Post: 06-01-2017, 06:01 PM
  2. Horizontal Data to Vertical
    By mmagnin in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-18-2014, 12:45 AM
  3. [SOLVED] Horizontal data in vertical
    By ashfaquebwd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2013, 03:50 AM
  4. convert data horizontal to vertical
    By vorabha in forum Excel General
    Replies: 8
    Last Post: 02-10-2013, 03:53 PM
  5. Vertical to Horizontal data help!
    By hbrown78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2012, 09:57 PM
  6. [SOLVED] Data horizontal to vertical
    By sureshpunna in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2012, 03:36 AM
  7. [SOLVED] Vertical to Horizontal data
    By trosasco in forum Excel General
    Replies: 5
    Last Post: 06-15-2012, 08:48 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