+ Reply to Thread
Results 1 to 6 of 6

Smart Sort, Single To Multiple Columns

  1. #1
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Smart Sort, Single To Multiple Columns

    Good Morning,

    I have a list of data that will be imported from a source which will give me a list of names (column A on example) and a grouping (column B on example).

    I need some form of sort that will interrogate column B and then put the corresponding item in column A into the correct unique column headed by grouping (D1-J8 on example).

    If these could also be alphabetically sorted that would be a bonus.

    Any and all help appreciated.

    Thanks, Ed.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    58,988

    Re: Smart Sort, Single To Multiple Columns

    In D4:

    Please Login or Register  to view this content.
    Click on CTRL+SHIFT+ENTER to confirm this, then copy across and down by dragging.

    Indexing alphabetically may well require a helper column.
    Ali


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


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Re: Smart Sort, Single To Multiple Columns

    Ali,

    Thanks, I've tried this and it doesn't quite work unfortunately. It returns the correct first result in each destination column but then seems to apportion the others randomly.

    Ed

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    58,988

    Re: Smart Sort, Single To Multiple Columns

    Sorry! Slight error. Try this instead:

    Please Login or Register  to view this content.
    remembering to apply using CTRL+SHIFT+ENTER.

  5. #5
    Registered User
    Join Date
    06-01-2015
    Location
    Derby, England
    MS-Off Ver
    2013
    Posts
    87

    Re: Smart Sort, Single To Multiple Columns

    Ali,

    Brilliant, thanks.

    Ed

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    58,988

    Re: Smart Sort, Single To Multiple Columns

    You are welcome!

    EDIT: I hail from Derby originally (Long Eaton, actually, but I was born in Derby ...)

+ 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] Copy data from multiple columns and paste into single columns
    By daniel_t in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2015, 11:20 AM
  2. [SOLVED] Sort by multiple columns with sort criteria cell dependent
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-24-2014, 02:22 AM
  3. Replies: 9
    Last Post: 12-15-2013, 10:05 PM
  4. Replies: 5
    Last Post: 05-25-2013, 07:12 AM
  5. Sort first column of multiple workbooks from a single directory
    By lmolokin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 05:15 PM
  6. Macro to sort multiple ranges in a single sheet
    By imogul in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2011, 01:46 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