IMPORTHTML, IMPORTXML Functions - Google Sheets Tutorial to Extract from Web Pages to Spreadsheets 2

  • Published on Jan 28, 2017
  • Learn how to use IMPORTHTML, IMPORTXML Functions to extract information from websites to spreadsheets.
    Find more advanced XPATH video here
    Final Worksheets
    Google Sheets
    Company Page

Comments • 54

  • Shaikh Mohij
    Shaikh Mohij 10 days ago

    If website required password username then waht to do

  • rjd
    rjd 28 days ago

    When I use importHTML it frequently won't update. If I go in and change the table from 1 to 3 and back again, it finally loads. What is the best way to function to load?

  • pankaj thakur
    pankaj thakur Month ago +1

    sir plz make video on how i extract live data continue from sites in google sheet plz sir make video on it i m waiting for this concept,

  • BHARGAV Khatri
    BHARGAV Khatri Month ago +1

    I have one link of my office data that i am importing but i get error of "Resource at url contents exceeded maximum size"
    Do you have any solution for that

  • Alex Smith
    Alex Smith 2 months ago

    How does one import data behind a credentialed barrier?

  • Dennis Goodine
    Dennis Goodine 2 months ago

    what if the website is a ".php"

  • Rony Joseph
    Rony Joseph 5 months ago

    Great video, thanks.:)
    CAn i import the contents from RU-clip: "" to sheets? I tried importhtml with 'list' element, but entire list is not coming up.
    Please help, Thanks.

    • Rony Joseph
      Rony Joseph 5 months ago

      @Learn Google Spreadsheets Yeah, I understood. Thanks very much for replying. I've copied the contents of your RU-clip Channel (Cmd+A) and arranged to get the list.
      This is the sheet with list of your channel videos:

    • Learn Google Spreadsheets
      Learn Google Spreadsheets  5 months ago +1

      RU-clip now loads a lot of its HTML using JavaScript, so these functions are not likely to work very well.

  • BHARGAV Khatri
    BHARGAV Khatri 5 months ago +1

    need solution of "Resource at url contents exceeded maximum size." error

  • ZERO 0
    ZERO 0 5 months ago

    How to download csv file store on®ion=ind&culture=en-US&version=SAL&cur=&reportType=bs&period=12&dataType=A&order=asc&columnYear=10&curYearPart=1st5year&rounding=3&view=raw&r=322320&denominatorView=raw&number=3 in google sheets
    Import data formula not working
    But when i enter this link in IDM then such file got download
    Pls help

  • James Wotring
    James Wotring 6 months ago +1

    With this kind of import, does it update automatically if the table was updated on the website? if not is there a way to do that?

  • Sunny Jones
    Sunny Jones 8 months ago

    Thanks a lot brother..... May God bless you much

  • Nick Giaimo
    Nick Giaimo 8 months ago

    Can you import tables from Google Docs?
    I want to update a table in a Google Doc and the data automatically be updated in a Google Sheet

    • Nick Giaimo
      Nick Giaimo 8 months ago

      Learn Google Spreadsheets okay thanks!
      Random Question: If I create a script project file in one spreadsheet, how can I import that project file into another spreadsheets?

    • Learn Google Spreadsheets
      Learn Google Spreadsheets  8 months ago +1

      You'll need to write a script for that.

  • Vivek Sawant
    Vivek Sawant 8 months ago

    how can i reduce refresh time from 1 hr to 15 min?

  • Rebel Resin
    Rebel Resin 9 months ago

    Great video my friend. At the end of the video you had mentioned you can do this with a product grid. Is there a video on this? Or any help on that would be amazing

  • Jibin peter james
    Jibin peter james 9 months ago

    I tried to grab data from NSE India website and finds not working with the function =importhtml(“”,”table”,1). Can you suggest possible corrections..

  • Travis DeJong
    Travis DeJong 10 months ago

    I managed to import my data from Wikipedia but I can't delete or change text.

  • Mike Rust
    Mike Rust 11 months ago

    That was very useful, thank you for the help!

  • Олжас Тольмухамет

    if data on website changins its changing in real-time in sheet?

  • Stefano Tampieri
    Stefano Tampieri Year ago

    How can I do to import matches list from this site ?

  • A1
    A1 Year ago

    Do you know how I can extract one single data into a cell .. of this line : =IMPORTHTML(""&$A$2,"table", 11) . For example the Marketcap in B4

  • Micol Sinagra
    Micol Sinagra Year ago +1

    Thank for your explanation! It works! GREAT ☺😀
    But i need more help. What do I have to do when in a web page there is table with a 'information details' button, which actually is an hyperlink to another page?
    Does it exist any formula or solution that can help me?
    May I write you in private, please?
    Thanks for your precious support!

    • Sanjib Pramanik
      Sanjib Pramanik 10 months ago

      So, you can click on the 'information details' button through your web browser to open the page, then copy the url, and use it on formula, but you also need inspect that the content of the page is html or XML, if it XML then use 'importxml' formula. I don't know exactly but this may help you.

  • MicroMark Llc
    MicroMark Llc Year ago

    can you help us use import xml in googledocs.. from :
    I also tried importing with
    =IMPORTXML("","//div//table[@class='table-1i1M26QY- tableWithAction-2OCRQQ8y-']")
    it says Import content is empty
    Kindly assist to import OSCILLATORS &

  • AceShot
    AceShot Year ago

    How do i import specific price from a website to google sheets (Ex: ""
    price tag is 5899
    and i want it to display only the price in spread sheet)

  • Muhammad Usman
    Muhammad Usman Year ago

    Hi, can I get data from this website using the import function.

  • think about technology

    How to importXML from Truecaller on Google shit

  • Rafsan Jani Hoby
    Rafsan Jani Hoby Year ago

    Hi, I think its only work on Wiki, I try other sites but it does not work.
    Any way to use other sites or directory sites?

    • A1
      A1 Year ago +4

      oh, i guess i got the answer here. What do you do in case the sites is made of javascript?

    • Learn Google Spreadsheets
      Learn Google Spreadsheets  Year ago +2

      It will work on sites where HTML is fully loaded on initial page load. Any page that is built by adding content with JavaScript won't work.

  • Muhammad Nauman
    Muhammad Nauman Year ago

    one more thing , my web contain agent data .i checked the source the name of agents are in //a/href . in tried this in function as //a/@href but its showing wrong data. any help woould be appreciated.

  • Muhammad Nauman
    Muhammad Nauman Year ago

    Hi tried this & succeed but importXML only pulling 1st page my web contains approx 100 .please advise how to pull all pages with on functions

  • Jelena Adamlje
    Jelena Adamlje Year ago

    Doesn't work:-)

  • Vinod Poptani
    Vinod Poptani 2 years ago
    i m unable to import this table data in sheets please help me

  • Vinod Poptani
    Vinod Poptani 2 years ago +3

    i tried lot of times every time i got errors help me

    • Gia Mar
      Gia Mar 2 months ago

      @Michael Lepori One thing to take in count, in some countries as mine,, the "," should be replace with ";", other case doesn't work

    • TitMouseMees
      TitMouseMees 4 months ago +1

      @Onarconene legend

    • Onarconene
      Onarconene 6 months ago +1

      do =IMPORTHTML("";"table";1) instead of =IMPORTHTML("","table",1)

    • Michael Lepori
      Michael Lepori Year ago +1

      =importxml("xxx";"//table//tr//td[4]") --> use double /

  • Mike Saad
    Mike Saad 2 years ago

    Thank you for this...I'm a little stuck still on trying to figure out how to grab the live currency value for NEO's price value here I've tried your method but still can't pull it up. Any thoughts how to grab just the present price?

  • Ivan
    Ivan 2 years ago +1

    "ERROR" when I copy your formula in my own google sheets. Can you help me please ?

    • JasonNosajasoNosaj
      JasonNosajasoNosaj Year ago +1

      An updated formula in the sample spreadsheet would be helpful

  • Mach
    Mach 2 years ago

    Man you would try more difficult site.. like ecommerce

  • Don Gato
    Don Gato 2 years ago

    thanks my friend,
    Greetings from Chile

  • tasmedic
    tasmedic 2 years ago

    Thanks ever so much for this. It encourages me to play with the functions, which, for me, is the best way of learning stuff like this!!

  • Om Detox
    Om Detox 2 years ago

    Thanks for the help. How can you now get the url from the items in the list? lets say I want to have a list of all the communities and the link to the pages about those communities?

    • Learn Google Spreadsheets
      Learn Google Spreadsheets  2 years ago +1

      This should do it

  • Mike McCartney
    Mike McCartney 2 years ago

    Superb, thanks