+ Reply to Thread
Results 1 to 5 of 5

Sorting Question

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Sorting Question

    Hi,

    For my company I am going through data that involves click fraud and get reports that are unorganized and messy. Is it possible to take the data from the reports and plug them into a custom template and the template organizes it. Each report is sorted by IP address and then has cells containing other information about what the IP was doing. So basically I want the report to show me only IP's that appear multiple times. The original reports are not all the same size because it is clicked-based so for every click on the website the report gathers the IP that clicked. So the template would have to be able to adjust to different sizes of data. Can anyone help out?

    I can't supply a report because it will contain sensitive information but if someone would like to see what the report looks like I can remove the information and fill it with example numbers.

    Thanks

  2. #2
    Registered User
    Join Date
    07-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Sorting Question

    I would select the report, sort it by the ip address then select conditional formatting/highlight duplicate values from the home tab. That seems like a task so uncomplicated I wouldn't attempt much more.

    Zack

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sorting Question

    sorting ip is not straight forward (mind you finding duplicates is) you might find the following useful anyway

    10.10.10.100
    10.10.10.9
    10.10.10.200
    10.5.10.15
    sorts as

    10.10.10.100
    10.10.10.200
    10.10.10.9
    10.5.10.15

    you need to pad out the octets to 3 digits or convert to real value one way is to put this in an adjacent column then sort assuming ip starts in a1
    =((VALUE(LEFT(A1, FIND(".",A1)-1)))*256^3)+((VALUE(MID(A1, FIND(".",A1)+1, FIND(".",A1, FIND( ".",A1)+1)- FIND(".",A1)-1)))*256^2)+((VALUE(MID(A1, FIND(".",A1, FIND( ".",A1)+1)+1, FIND(".",A1, FIND( ".",A1, FIND( ".",A1)+1)+1)-FIND(".",A1, FIND( ".",A1)+1)-1)))*256)+(VALUE(RIGHT(A1, LEN(A1)-FIND(".",A1, FIND( ".",A1, FIND( ".",A1)+1)+1))))
    you then get

    10.5.10.15
    10.10.10.9
    10.10.10.100
    10.10.10.200
    or try this udf put in new module then us as =ipsort(a1) this pads out the octets then you can sort
    eg
    10.5.10.15 becomes 010.005.010.015

    Please Login or Register  to view this content.
    code from DMcRitch http://www.office-archive.com/4-exce...e8631f02bf.htm
    Last edited by martindwilson; 07-02-2012 at 05:02 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-02-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sorting Question

    The report does come with the IP's sorted but it is over 1000 IP's. I need a way to take the report and put it into a template that will somehow only show the IP's that appear more than "X" times. Is something like this possible? Not every report has the same number of IP's though.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sorting Question

    try like this change e3 to a new value
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1