LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default obscure array sort

Its an array of 20 integers. I want to sort them 4 at a time. Like your
result 1 below.
John


Shane Devenshire wrote:
Hi John,

How about a little more info - is the a VBA array or are you using VBA
to sort a range in the spreadsheet? What do you mean by 4 elements at a
time - do you want to sort 4 elements internally or do you want to sort
a large collection keeping every four elements together?

1
5
4
3
6
10
8
7


Result 1:
1
3
4
5

6
7
8
10

Bob
Cratchet
1054 West 1st Street
Washington DC
Adam
Smith
43 Glover Blvd
London

Result 2: sorted in blocks of 4 elements based on the first line:
Adam
Smith
43 Glover Blvd
London
Bob
Cratchet
1054 West 1st Street
Washington DC

Thanks,
Shane


"John" wrote in message
...
How do you sort an array 4 elements at a time (or n elements at a time)?

John


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
obscure problem Kelly Armitage Excel Discussion (Misc queries) 2 October 3rd 07 01:14 PM
Obscure Function KW_Counter Excel Worksheet Functions 2 February 21st 07 02:40 PM
Obscure Function KW_Counter Excel Worksheet Functions 2 February 20th 07 10:12 PM
Obscure userform problem jwhite100[_2_] Excel Programming 0 November 9th 05 08:51 AM
Obscure Question Brian Sells Excel Discussion (Misc queries) 2 March 6th 05 09:09 AM


All times are GMT +1. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"