![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
I have a simple although large list of email addresses in a single column. I need to sort them by their URL instead of alphabetically from the front of the address. Can anyone tell me how I could sort the list evaluating each cell from the end of the text working inwards to the beginning? Any help greatly appreciated. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
|
|
|
|
|
|
#3 | |
|
New Member
Join Date: May 2002
Posts: 2
|
Well say you had the following in a column:
dave@abc.com jim@bacon.ws zippy@rainbow.net kerry@cow.com john@abc.com chris@dog.nz george@rainbow.net After the sort macro/function the list would look like this: dave@chicken.com john@chicken.com kerry@cow.com jim@bacon.ws george@rainbow.net zippy@rainbow.net chris@dog.nz They are now in order evaluating from the right to left. This has the effect of bunching email addresses together with others of the same URL. Making it easy to see how many people are at the same site. Quote:
|
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
If all your email addresses are this simple then you could do it with "text to columns" function and the "sort" function ( both found on the data menu).
If all data is in Row A:A - copy data to B:B (leaving a copy in A:A as well) - select B:B and do a "text to columns" with a period as your delimter. - insert a column between the right column of text "i.e .com" and the left string "i.e. gary@fish" - select column with left string and do another "text to columns" but this time @ is your delimiter - select all rows (ie A:D) and use data...sort function - sort order will be from right most column first ... ie. sort order colD, ColC, ColB - ColumnA will now be sorted as well [ This Message was edited by: Nimrod on 2002-05-11 02:08 ] [ This Message was edited by: Nimrod on 2002-05-11 02:09 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|