+ Reply to Thread
Results 1 to 3 of 3

[Solved]Sorting two arrays

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    uk
    MS-Off Ver
    2010
    Posts
    6

    [Solved]Sorting two arrays

    Hi all!
    I have two arrays that output as two columns next to each other. Like this:
    ID Responses
    1 4
    2 3
    3 2
    4 5
    5 1

    I would like to sort the responses column and have it show as this:
    ID Responses
    4 5
    1 4
    2 3
    3 2
    5 1

    I am guessing that I need to some how merge them into one array so I can sort them as one entity rather than sorting two columns separately.

    Here is my sample data and the macro I use to pull the data i need for the two arrays. sample.xlsm

    Thanks
    Last edited by zaoth; 07-18-2014 at 09:49 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Sorting two arrays

    Could try this? It would be pasted in your code after you place the data in taskA

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    07-17-2014
    Location
    uk
    MS-Off Ver
    2010
    Posts
    6

    Re: Sorting two arrays

    Quote Originally Posted by Arkadi View Post
    Could try this? It would be pasted in your code after you place the data in taskA

    Please Login or Register  to view this content.
    Oh my! Thank you! That looks so simple too. Thank you for the quick reply

+ 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] Sorting through arrays of data
    By engineernoob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 06:09 AM
  2. VBA arrays in a range: sorting
    By zeno1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 02:28 PM
  3. Sorting arrays using VBA?
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 02:41 PM
  4. [SOLVED] referencing/sorting arrays
    By Tim Kredlo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2005, 11:20 AM
  5. VBA - Collections/Arrays/Sorting
    By William Benson in forum Excel General
    Replies: 5
    Last Post: 05-31-2005, 10:05 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