+ Reply to Thread
Results 1 to 6 of 6

seperate coordinate string from multipolygon kml

Hybrid View

  1. #1
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: seperate coordinate string from multipolygon kml

    What you need is text processing, something Excel does rather poorly. Since it appears your data is insensitive enough to upload here, it may be insensitive to upload to Google Drive. Which is a roundabout way of suggesting that you use Google Sheets to handle this. If your cells D2 and D3 are representative,

    D4: =regexreplace(D2,">[^<].*",">")
    D5: =transpose(split(regexextract(D2,"[-,. 0-9]+"),","))

    D18: =regexreplace(D3,">[^<].*",">")
    D19: =transpose(split(regexextract(D3,"[-,. 0-9]+"),","))

    The D4 and D18 formulas extract the initial tags from D2 and D3, respectively, and the D5 and D19 formulas each produce multiple cells with individual coordinates from D2 and D3, respectively.

    I don't believe you've provided an exhaustive sample of the strings you're dealing with, this is a text parsing exercise, and Excel simply isn't good at that compared to many other tools. Google Sheets is only a bit better. If you use an advanced text editor like Notepad++, it'd be better still. However, scripting languages with build in support for regular expressions would be the best tools you could use for something like this.

    You could do this in VBA, but I believe there are so much better options that I won't pursue that.
    Last edited by hrlngrv; 02-13-2020 at 05:42 PM.

  2. #2
    Registered User
    Join Date
    01-26-2020
    Location
    Amsterdam
    MS-Off Ver
    16
    Posts
    17

    Re: seperate coordinate string from multipolygon kml

    Thanks for the comments and proposed solutions! I saw there was an error in my excel (appologies), but I am sure I can use your solutions. Very much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Length and distance from the line coordinate and point coordinate
    By sanju2323 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2019, 03:13 PM
  2. [SOLVED] Formula to Seperate streetname from street+Postcode string
    By FredFitzgerald in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-19-2016, 08:21 AM
  3. Seperate a string into Rows / Columns based on a symbol
    By tweaver in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-14-2016, 06:55 PM
  4. Seperate Text from String
    By krunk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-25-2014, 10:37 AM
  5. How can I seperate numbers followed by a comma from a string
    By jaymullasseril in forum Excel General
    Replies: 2
    Last Post: 07-30-2011, 01:36 AM
  6. return value of X coordinate and Y coordinate?
    By sbmoller in forum Excel General
    Replies: 1
    Last Post: 09-22-2007, 06:54 AM
  7. Seperate cell string into individual cells
    By ERudy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2006, 02:50 AM

Tags for this Thread

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