+ Reply to Thread
Results 1 to 5 of 5

Collect and sort data from an unsorted column

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    Excel 2007
    Posts
    18

    Collect and sort data from an unsorted column

    Hi,

    In column A I have a lot of names (occuring on every 5th row). They're not sorted.

    All these names I want to list and sort in column G (without empty rows).

    Please see example attached.

    Any suggestion for how to do this with a macro?
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Collect and sort data from an unsorted column

    Why do you need a macro for it?

    You just sort the data as is and it will remove all the blanks for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Collect and sort data from an unsorted column

    Thanks for your reply Arlette,

    Yes. I think I do. Because this is just a part of a bigger dynamic document, and I need to sort the data now and then in a quick operation. Like just click on a button for instance.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Collect and sort data from an unsorted column

    Here it is - I just recorded the steps and then just modified it a little to remove the unwanted statements -

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Collect and sort data from an unsorted column

    Exactly what I was looking for!

    Thanks Arlette!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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