Prev Previous Post   Next Post Next
  #4   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default


Is there a way I can get Excel to sort w, x, y and z as 3 digit numbers? I
would like the result of the sort to be:-

Source:211.19.215.70, 1051, WAN -
Source:211.19.215.70, 1677, WAN -
Source:211.177.154.134, 1030, WAN -
Source:211.190.195.138, 2876, WAN -


Personally, I'd break up the IP addresses into 4 separate cells in a row
and do sorts on those to get to where you want to be. Someone else here
may have a better solution.

For example, you find the "w" part of the address w.x.y.z in cell A1 by
creating helper columns for values dot1, dot2 and dot3 then find w,x,y
and z:

dot1 = find(".",A1)
dot2 = find(".",A1,dot1+1)
dot3 = find(".",A1,dot2+1)

w = left(A1,dot1-1)
x = mid(A1,dot1+1,dot2-dot1-1)
y = mid(A1,dot2+1,dot3-dot2-1)
z = right(A1,len(A1)-dot3)

Good luck...

Bill
 
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
Problem sorting in Excel Kat Excel Discussion (Misc queries) 2 January 19th 05 03:29 PM
Difficult Sorting Problem Rob Excel Discussion (Misc queries) 2 January 5th 05 03:05 PM
Crazy Sorting Problem..... Neal Excel Discussion (Misc queries) 1 December 30th 04 06:56 PM
Sorting problem Klaus Excel Discussion (Misc queries) 3 December 4th 04 01:55 AM
Sorting problem Chris Excel Worksheet Functions 1 November 3rd 04 11:27 PM


All times are GMT +1. The time now is 04:54 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"