sorting ip addresses

slodave

New Member
Joined
Mar 13, 2002
Messages
1
I need to sort ip addresses in numerical order. 131.17 should be before 131.111. What do I need to do to get these to sort correctly?
Thanks,
David

xxx.xx.131.111
xxx.xx.131.118
xxx.xx.131.120
xxx.xx.131.17
xxx.xx.15.172
xxx.xx.131.173
xxx.xx.131.174
xxx.xx.5.175
xxx.xx.131.20
This message was edited by slodave on 2002-03-14 14:04
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
If all the IP addresses start with 131 then you can get rid of it and then sort and afterwards add 131 back in.

Hope this helps.
Kind regards,Al.
 
Upvote 0
On 2002-03-14 13:34, slodave wrote:
I need to sort ip addresses in numerical order. 131.17 should be before 131.111. What do I need to do to get these to sort correctly?
Thanks,
David

xxx.xx.131.111
xxx.xx.131.118
xxx.xx.131.120
xxx.xx.131.17
xxx.xx.131.172
xxx.xx.131.173
xxx.xx.131.174
xxx.xx.131.175
xxx.xx.131.20

If your IP list begins in cell A2 enter the formula, =MID(A1,12,3)+MID(A1,8,3)*1000, into cell B2, Fill Down and sort on the column B values.
This message was edited by Mark W. on 2002-03-14 14:06
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,287
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top