+ Reply to Thread
Results 1 to 11 of 11

Help with vertical to horizontal sorting

  1. #1
    Registered User
    Join Date
    10-02-2024
    Location
    Ireland
    MS-Off Ver
    Excel 365 v.2407, build 16.0.17830.20210
    Posts
    4

    Help with vertical to horizontal sorting

    Gauge sorting.JPG

    Looking for any help sorting table 1 to table 2

  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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    Welcome to the forum.

    Which latest version do you have? Please be SPECIFIC in your profile (it matters).

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-02-2024
    Location
    Ireland
    MS-Off Ver
    Excel 365 v.2407, build 16.0.17830.20210
    Posts
    4

    Smile Re: Help with vertical to horizontal sorting

    My apologies.

    Thanks for the welcome.

    The Excel version is 2407, build 16.0.17830.20210.

    Sample workbook is attached now.
    Attached Files Attached Files

  4. #4
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    Is this 365? If so, that's the important detail for your profile - please add it.

  5. #5
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    Assuming 365, paste this into E15 and ENTER:

    =LET(u,UNIQUE(B4:B43),g,WRAPROWS(C4:C43,4),HSTACK(u,g))

  6. #6
    Registered User
    Join Date
    10-02-2024
    Location
    Ireland
    MS-Off Ver
    Excel 365 v.2407, build 16.0.17830.20210
    Posts
    4

    Re: Help with vertical to horizontal sorting

    It is 365.

    Thanks very much for the assistance.

    That formula works.
    The issue I have now is that not all parts require 4 gauges. Some require 2,3,4,5, or possibly 6 gauges. Is there a way to set an automatic wrap?

    I have uploaded an updated version of the table to show what I mean.
    Attached Files Attached Files

  7. #7
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    So why did you not provide more realistic data to begin with?

    I'll start again.

  8. #8
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    Try this instead:

    =LET(u,UNIQUE(B4:B47),HSTACK(u,IFNA(DROP(REDUCE("",u,LAMBDA(x,y,VSTACK(x,TOROW(FILTER(C4:C47,B4:B47=y,""))))),1),"")))
    Last edited by AliGW; 10-02-2024 at 07:55 AM. Reason: Formula corrected.

  9. #9
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  10. #10
    Registered User
    Join Date
    10-02-2024
    Location
    Ireland
    MS-Off Ver
    Excel 365 v.2407, build 16.0.17830.20210
    Posts
    4

    Re: Help with vertical to horizontal sorting

    Excellent work. Thanks very much.

  11. #11
    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. 2410 (Windows 11 23H2 64-bit)
    Posts
    87,542

    Re: Help with vertical to horizontal sorting

    You're welcome.

+ 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: 15
    Last Post: 12-31-2017, 03:06 PM
  2. Replies: 16
    Last Post: 06-01-2017, 06:01 PM
  3. Sorting from horizontal to vertical
    By mambo84 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-13-2011, 02:10 PM
  4. Horizontal to vertical
    By aaslezak in forum Excel General
    Replies: 4
    Last Post: 03-30-2009, 11:47 AM
  5. Vertical to Horizontal
    By billykiller05 in forum Excel General
    Replies: 3
    Last Post: 12-06-2007, 12:04 PM
  6. from horizontal to vertical
    By mlecho in forum Excel General
    Replies: 5
    Last Post: 05-06-2007, 06:47 AM
  7. Vertical into Horizontal
    By dthmtlgod in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2006, 12:40 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