+ Reply to Thread
Results 1 to 7 of 7

data alignment

  1. #1
    Registered User
    Join Date
    09-25-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    data alignment

    Greetings!!,

    i have an output from ip2location as in attached excel.. i wish to align the data in proper columns and rows.. as in the required output.. could this be done programatically?

    Best Regards,
    Mahesh
    Last edited by maheshr68; 05-02-2012 at 10:26 AM. Reason: update in output format

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data alignment

    Try this:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 05-02-2012 at 10:40 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-25-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: data alignment

    Greetings!! JBeaucaire,

    this works neat & great, however only the "Domain" is not written.. please let know what changes are to be included..

    Best Regards,
    Mahesh

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: data alignment

    try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-25-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: data alignment

    Greetings!! Jindon,

    looks like there are some inconsistencies in script.. latitude, longitude is not written for most of rows.. anyways.. not an issue.. will try to rectify JBeaucaire's script or your's. I am closing the thread with many best regards for both..

    Best Regards,
    Mahesh

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: data alignment

    I excluded them since I didn't see them (they are far right).
    Missed them.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: data alignment

    My bad, your data has a hidden space after Domain... change this line of code:
    Please Login or Register  to view this content.

    (edited above in original macro, too)

+ 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