+ Reply to Thread
Results 1 to 6 of 6

Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

  1. #1
    Registered User
    Join Date
    08-25-2022
    Location
    Perth, Australia
    MS-Off Ver
    Office 365
    Posts
    2

    Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    Hi,

    I have a sheet that requires the input of a latitude and longitude into adjacent cells.

    I would like to be able to right-click on a Google map to get the coordinates and then paste directly into the cells with the coordinates being split into the seperate cells.

    I find that the coordinates end up pasting into 1 cell and then I have to manually use the text to columns to split the data.


    So, when I right-click and paste into the Latitude cell it comes out like this
    bad text to columns.png


    I would like it to automatically come out like this.
    good text to columns.png

    Thanks in advance for any help

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,096

    Re: Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    Welcome to the forum.

    There is nothing you can do about the way that the data is copied to your clipboard, but if you are prepared to have a data dump somewhere in your workbook, you can set up a formula to pull the lattitude and longitude values separately into two columns.

    Provide a sample data dump in a workbook if you'd like to pursue this option.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-25-2022
    Location
    Perth, Australia
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    Ok, I wondered if that was the case.

    I can semi-automate via a power query which may be my tidiest option.

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,096

    Re: Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    Yes, that's one simple way.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  5. #5
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    215

    Re: Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    Another work around is to import the latitude and longitude reference as a string. Then split it by finding the position of ", " and extracting the references using =MID(GridRef, Before ", ", Len) and =MID(GridRef, After", ", Len).

    I attach an example workbook.
    Attached Files Attached Files
    Regards,

    Stephen

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,096

    Re: Automate GPS coordinates from Google maps pasting into 2 adjacent cells.

    @swaatcha

    That's what I suggested first in post #2. Thanks for putting flesh on the bones.

+ 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. [SOLVED] Get google maps place name from lat/long coordinates in excel
    By sabha in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-06-2019, 11:07 AM
  2. Coordinates to Create Google Maps Image VBA
    By harrisj_ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2015, 05:55 AM
  3. Replies: 4
    Last Post: 02-23-2014, 07:32 PM
  4. Help with inserting a link to google maps from cells in a spreadsheet
    By handhglassworks in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2014, 09:50 AM
  5. Broken Formula to Hyperlink longitude and latitude cells to google maps
    By Nola ADA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 09:48 AM
  6. Creating a link to view on google maps from cells
    By yenom2 in forum Excel General
    Replies: 3
    Last Post: 10-18-2012, 07:09 PM

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