+ Reply to Thread
Results 1 to 6 of 6

extracting information from a URL

  1. #1
    Registered User
    Join Date
    03-26-2019
    Location
    Skien, Norway
    MS-Off Ver
    2019
    Posts
    3

    Question extracting information from a URL

    Hello,

    So I am trying create some kind of beginner excel sheet where i can fill in two locations (location1 and location 2), and use google maps (google . com) to calculate the distance between them.

    I've managed to create the link, where i can enter location1 and location2, and get the link to the googlemaps page where i can find the distance. for example "/search?q=duestien+15+to+birgittesgate+19"
    Now I want to automate the system where I can just enter the locations and the sheet automatically looks up and pastes the value into a cell.

    My version of Excel is Norwegian, but i can easly translate the formulas from eng to norwegian.

    if someone could help me to use the "LOOKUP" function (I suppose) to retrieve this data that would be wonderful.

    Sincerely,
    Kasper Christensen

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: extracting information from a URL

    This is not a beginner excel application -- this is a pretty advanced use, actually, because you're trying to automate a bunch of external web connections, and you'll probably need some kind of way to process and clean input, and manage output, and there's a lot of room for error handling too?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    03-26-2019
    Location
    Skien, Norway
    MS-Off Ver
    2019
    Posts
    3

    Re: extracting information from a URL

    Not really sure what you mean by handeling inputs and outputs. I've already created some formulas to change the inputs into a google . com link. And what i ment I suppose was that i'm a beginner trying to create this sheet. What I'm looking for is how to find the correct matrix etc in the browser, to tell the lookup formula where to look.

    I suppose it should look something like this =LOOKUP(9E+300,--LEFT(REPLACE(A1,1,SEARCH("cid=",A1)+3,""),ROW($A$1:$A$20))), only with different cells, names and numbers.

    EDIT:
    Or i suppose it would be easier with some kind of API and use webservice and filterxml?
    Last edited by KasperChr; 03-27-2019 at 03:47 AM.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: extracting information from a URL

    Good morning KasperChr
    Quote Originally Posted by KasperChr View Post
    EDIT:
    Or i suppose it would be easier with some kind of API and use webservice and filterxml?
    With that comment in mind, have you looked at Forum Guru Kyle123's solution here : https://www.excelforum.com/tips-and-...ml#post2678041

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  5. #5
    Registered User
    Join Date
    03-26-2019
    Location
    Skien, Norway
    MS-Off Ver
    2019
    Posts
    3

    Re: extracting information from a URL

    Quote Originally Posted by dominicb View Post
    Good morning KasperChr

    With that comment in mind, have you looked at Forum Guru Kyle123's solution here : (had to remove the link because im not qualified to post them just yet)

    HTH

    DominicB
    Morning to you too sir,

    I did not, but i ended up using API and the webservice and filterxml functions. Probably easier to write it all down in code, but for now it works so I think I'll stop messing with it before I'm way ahead of my knowlage of excel.

    How do I mark the thread as solved?

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: extracting information from a URL

    Hi KasperChr

    To mark the thread as solved just go to Thread Tools (right at the top) and click on "Mark this thread as solved".
    Don't worry about it this time though - I've done it for you.

    DominicB

+ 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. Extracting Information
    By printing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2015, 04:14 PM
  2. Extracting information
    By RD_stu in forum Excel General
    Replies: 11
    Last Post: 06-16-2009, 06:46 AM
  3. Extracting Information
    By ONGExcel in forum Excel General
    Replies: 2
    Last Post: 11-27-2007, 07:42 AM
  4. Information Extracting
    By Dastard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2006, 03:02 PM
  5. Information Extracting
    By Dastard in forum Excel General
    Replies: 0
    Last Post: 08-24-2006, 03:02 PM
  6. Extracting Information
    By badpuppie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2005, 03:10 PM
  7. Extracting Information
    By badpuppie in forum Excel General
    Replies: 0
    Last Post: 05-20-2005, 02:45 PM

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