Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Sorting IP Addresses

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am trying to sort a spreadsheet based on ip addresses. I cant seem to figure out how here is an example
    machine ip address
    test1 111.222.222.123
    test2 111.222.222.132
    test3 111.222.222.111
    basically I want to sort on the last 3 digits
    any info would be appreciated. thanks

    [ This Message was edited by: cision_eq on 2002-04-10 06:24 ]

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,648
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-10 06:24, cision_eq wrote:
    I am trying to sort a spreadsheet based on ip addresses. I cant seem to figure out how here is an example
    machine ip address
    test1 111.222.222.123
    test2 111.222.222.132
    test3 111.222.222.111
    basically I want to sort on the last 3 digits
    any info would be appreciated. thanks

    [ This Message was edited by: cision_eq on 2002-04-10 06:24 ]
    Lets say that the sample is in A1:B3.

    In C1 enter and copy down:

    Change the formula to:

    =RIGHT(B1,LEN(B1)-LEN(SUBSTITUTE(B1,".","")))+0

    Then sort on column C.

    Aladin




    [ This Message was edited by: Aladin Akyurek on 2002-04-10 06:51 ]

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =RIGHT(B1,LEN(B1)-LEN(SUBSTITUTE(B1[ This Message was edited by: Aladin Akyurek on 2002-04-10 06:51 ]
    Aladin, this formula won't work for...

    111.222.222.12

  5. #5
    New Member
    Join Date
    Dec 2013
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Sorting IP Addresses

    There's a good Excel spreadsheet tool that has a function to convert IP addresses to decimal numbers. Once that's done sorting is very easy.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •