LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
 
Posts: n/a
Default sort 2 or more occurrences

Convert the addresses (modified for readability)
into numbers and add headers as shown:
bin2 bin3
111222333444 333222333444
111222333444 111222444555
111222333555 111222333555
111222444555 111222333444
333222333444 0
0
123123321321 0
111222444555 0
333222333444 0
111222333555 0
1115 0

Name the columns bin2 and bin3.
The header <bin2 is located at A1.
In the first cell of bin3, enter this array formula
=MAX(bin2*(COUNTIF(bin2,bin2)1))
In the second cell of bin 3, enter this array formula
=MAX(IF((bin2<bin3 2:2)*(COUNTIF(bin2,bin2)1),bin2,0))
Then drag the fill handle until zeros appear.
Note: Each cell gets its own CTRL+SHIFT+ENTER
Credit: Harlan Grove

 
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
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
data sort is not including all columns in sort Tracy Excel Discussion (Misc queries) 1 October 4th 05 12:16 AM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM


All times are GMT +1. The time now is 09:04 AM.

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"