+ Reply to Thread
Results 1 to 4 of 4

Calculating total road distance and duration with google distance matrixes api

  1. #1
    Registered User
    Join Date
    07-26-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    MS Office 10
    Posts
    2

    Question Calculating total road distance and duration with google distance matrixes api

    Hi,

    I used a simple method to calculate route distance with these instructions: "Calculate travel time and distance between two addresses using Excel + Maps API" by chandoo

    My problem is that i cannot calculate totals or actually anything with the results. Results appear on the cell as "2,3 km", but cannot be changed to number format to calculate totals..

    They just appear 0 in my pivot, i dont know what to do.. Can you guys help??

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

    Re: Calculating total road distance and duration with google distance matrixes api

    Welcome to the forum.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Calculating total road distance and duration with google distance matrixes api

    If you are extracting the data through an API under text format, in another column add this formula to extract the numerical values:
    Please Login or Register  to view this content.
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    07-26-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    MS Office 10
    Posts
    2

    Re: Calculating total road distance and duration with google distance matrixes api

    Thank you so much PaulM100! This did the trick

+ 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. Road distance calculation using latitudes and longitudes
    By AV114 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2018, 07:52 AM
  2. calculate distance and duration using google map
    By liorom in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2018, 12:46 PM
  3. [SOLVED] Calculating distance between many GPS points and sorting by distance
    By jackalek in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-14-2014, 08:27 AM
  4. [SOLVED] Google Distance Matrix API - Distance and Time
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 08:42 PM
  5. Google distance and time
    By A[L]C in forum Excel General
    Replies: 5
    Last Post: 12-21-2011, 08:39 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