Get Google Sheet Data in Excel with Power Query

Поделиться
HTML-код
  • Опубликовано: 12 фев 2020
  • Learn how to import Google Sheet data into Excel using power query. You'll always have the latest Google sheet data with the click of a refresh button in Excel. 👇
    Check out my full courses and ebooks here
    👉 www.howtoexcel.org/courses/
    DOWNLOAD the example workbook here
    📖 www.howtoexcel.org/downloads/
    SUBSCRIBE & get my 3 FREE eBooks
    📧 www.howtoexcel.org/newsletter/
    CONNECT with me on social
    Facebook: / howtoexcelblog
    Twitter: / howtoexcelblog
    LinkedIn: / john-macdougall
    Thanks for all your support!

Комментарии • 99

  • @naboolae
    @naboolae 3 года назад +15

    In case anyone needs the link
    docs.google.com/spreadsheets/d/{ID}/export?format=xlsx&id={ID}

  • @Hatersongs
    @Hatersongs 4 года назад +2

    Absolutely brilliant!! Saved me a massive headache. Great clear and working tutorial thanks!

  • @orikuper4433
    @orikuper4433 2 года назад +1

    Thank you so much. For about 2 weeks I've been having issues with web queries that worked fine until then. So it's been a nightmare to deal with. And now after seeing your video I just bring them to a new place in Gsheets, and then bring them into my normal excel from there. Thanks again. So good!!! :-)

  • @EoinH100
    @EoinH100 4 года назад +3

    This is brilliant, I had tried one from another video and figured you couldn't do it any more. this will save me about 3 hours a week in scheduling. thanks a million!!!

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад +1

      Glad to hear! There's usually a better way to be found. 👍

  • @alexanderjones4472
    @alexanderjones4472 2 года назад

    This has just made my week. This solved all my problems I was having!! Thank you!!!

  • @nsoans
    @nsoans 4 года назад +5

    Damn!! you made it so simple for me to understand the steps.. Thanks a ton, really helpful, John.

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад +1

      Glad to hear it helped you out Nelson. 😀

  • @rhayes3281
    @rhayes3281 3 года назад +4

    This was incredibly helpful and super concise. Thank you!

  • @richardreyes8184
    @richardreyes8184 Год назад

    Great explanation! Thank you!

  • @RageDauntlessWinters
    @RageDauntlessWinters 3 года назад

    you're a life, time and life saver SIR!

  • @trongpham9999
    @trongpham9999 3 года назад

    wow, many thanks, so easy to get data from Sheets to Excel =))

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад

    Hi John. Cool trick! Thanks for sharing :)) Thumbs up!!

  • @darrylmorgan
    @darrylmorgan 4 года назад +1

    Wow!I Just Learned Something New To Me!Awesome Tutorial Thank You John :):):)

  • @TonyaBrewton
    @TonyaBrewton 6 месяцев назад

    Thank you for doing this ! 🎉

  • @cordeiromonteiro7337
    @cordeiromonteiro7337 2 года назад

    It feels like magic... thank you.

  • @hardansofyan9221
    @hardansofyan9221 Год назад

    Supper helpfull, Thank you from Indonesia 🙏🙏🙏

  • @evelic
    @evelic 10 месяцев назад

    Fantastic. Thank you so much.

  • @MANGESH561
    @MANGESH561 2 года назад

    great! very useful

  • @Struggle000
    @Struggle000 3 года назад +1

    Thank you a lot, that was very helpful!

  • @growingmusicians
    @growingmusicians 11 месяцев назад

    you are a savior darling.

  • @fuad471
    @fuad471 3 года назад

    Thank you helped a lot man !

  • @longhorneye
    @longhorneye 4 года назад +1

    Good job. It was that what I looked for

  • @balbirkumar2451
    @balbirkumar2451 3 года назад +1

    You taught very simply

  • @marielnalli7324
    @marielnalli7324 3 года назад +2

    thanks! this is so helpful... i wonder if there is a way to do this with a whole folder from google drive, which contains several gsheets

  • @avininyoutuification
    @avininyoutuification 2 года назад

    Thanks you John .awesome..one question though : will it import the macros from the original Google sheet?

  • @elfridhasman4181
    @elfridhasman4181 3 года назад +1

    Thank You Very Much

  • @georgiivanov1902
    @georgiivanov1902 Год назад +1

    Great video! How about applying the same process for a private workbook?

  • @bashirjafiya5828
    @bashirjafiya5828 2 года назад

    Godlike!

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад +8

    Hi John.. discovered another way to do this. Change the end portion of the shared link from: edit?usp=sharing to: export?format=xlsx. Tried it a few times and it works even if multiple sheets and named ranges in the Google Sheets document. It is an interesting option! Hope you find it useful :))

  • @OMGdon
    @OMGdon 2 года назад

    @How To excel, Excellent advice! But how to make reverse operation - Get Excel data in Google Sheet?

  • @Softwaretrain
    @Softwaretrain 4 года назад +1

    Woooow fantastic.
    Thanks alot.
    Could you please tell me how does it work if I want to get data from folder exist in google drive or drop box?

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Not sure that's possible with power query alone.

  • @amjadhameed5932
    @amjadhameed5932 4 года назад

    Thanks for sharing this usefully trick.
    it worked when google sheet contains one tab.
    it did not worked with more tab.. I am using 2019 EXCEL version .. thanks so much

    • @alexeyevteev9839
      @alexeyevteev9839 4 года назад

      it definitely works in excel 365

    • @ekoprasetiyo
      @ekoprasetiyo 3 года назад

      If you use more than one tab, in gsheet choose file then publish it to web. And choose xlsx. Then the rest is same in power query

  • @choolwenamoobe2328
    @choolwenamoobe2328 2 года назад

    Thank you for the video.
    I managed to create everything and it worked fine. But when I close and open the table (excel), the link is lost and I have to re-link it to be able to sync the data from Google Sheet. Would you have a solution to that so that when I close and open the excel the next day, I can just refresh and the data is imported from Google Sheet to excel?

  • @dewetroets9211
    @dewetroets9211 4 года назад +1

    Hi, I've copied and replaced {ID} as per your instructions but i keep on getting the Document option as per your first example and not the sheet names listed in the PQ "landing page". Any suggestions?

  • @sallylim5521
    @sallylim5521 2 года назад

    Hello this helped me alot thank you! i now have a new problem - i added a new column in my google sheet and the data is not able to refresh now. what should i do?

  • @worldofdata
    @worldofdata 10 месяцев назад +1

    can we authenticate any how as we dont want to use the public share link option?

  • @srinivaskandru5034
    @srinivaskandru5034 3 года назад

    At 2:10, But where did you get that magic string from, Johnny? Every time I need to import a Google sheet, what should I do? Where it is available?

  • @kramateusz
    @kramateusz 10 месяцев назад

    Where does that first link come from in the text editor? Copy it from the screen?

  • @ollisedona-verdevalley9914
    @ollisedona-verdevalley9914 3 года назад

    Hi! This was working so well in September and now it isn't. My Google sheet columns A-F are populated but Excel PQ pulls null values into Excel columns A-F when I refresh in PQ. Can you please help me?

  • @nithiniloveu
    @nithiniloveu 4 года назад

    I did all the steps mentioned still power query is loading the table and html format like shown first. My company uses Microsoft 2013

  • @raymondreinhard2292
    @raymondreinhard2292 4 года назад

    Could it work excel to spreadsheet?

  • @joseluna304
    @joseluna304 Год назад

    Is this just a snapshot or by modifying the Excel table it will modify the Google sheets?

  • @siavoshkasravi398
    @siavoshkasravi398 2 года назад +3

    It has a BIG security flaw. Making documents public is something that should never be done.

  • @Sai-jh5ti
    @Sai-jh5ti 3 года назад +1

    Jon, is there any equivalent feature to power query from Google sheets?

    • @HowToExcelBlog
      @HowToExcelBlog  3 года назад

      You can try the QUERY function in google sheets. It's not equivalent, but does allow you to get data by writing your own SQL.

  • @nithinraj7397
    @nithinraj7397 3 года назад

    IF WE EDIT THE IMPORTED DATA IN EXCEL AND DO REFRESH, WILL IT UPDATE IN SHEETS TOO? IF NOT, IS THERE ANY WAY TO DO LIKE THAT?

  • @ryanangel3355
    @ryanangel3355 Год назад

    Excel does not seem to have this web feature you are using on the Microsoft essentials basic plan. Is that correct? I can't see all the options you see

  • @mikewallison4386
    @mikewallison4386 2 года назад +1

    I have a crazy situation where I can only share the Google sheet within my organization. Is there a workaround for this situation? I was able to publish the sheet as a webpage and then connect to the webpage but it's messy.

  • @TEMUCHINYONGA
    @TEMUCHINYONGA 2 года назад

    Thank you very much.
    But I must add that, on the Google Spreadsheet, you must delete all the Rows and Columns that are blank/unused since now the Excel includes them by marking as "null", which takes too much time and resources to periodically update or load initially.
    My only hesitation is, as we are juggling the links around to use directly from Google Drive, I am sure that Google is way aware of this problem/limitation and I'm afraid to rely on the Google Drive and the Google Documents to use on Excel in the long run; Google may do something in the future to render all the years of work go in vain in a second since the Google Document were not originally intended to use as data source for Excel documents...

  • @ezz.electronics
    @ezz.electronics 3 года назад +1

    How can do in opposite direction by export data from excel to google sheet with power query?

  • @vincentraimbault8825
    @vincentraimbault8825 3 года назад +1

    Hello, thx for the video. What if the google sheets is protected by a password? It seems that power query is unfortunately not able to connect. Thanks for the answer?

    • @HowToExcelBlog
      @HowToExcelBlog  3 года назад

      Yes, I think so. I have not explored any other option.

  • @eduardogosling7063
    @eduardogosling7063 4 года назад +1

    Thanks for the info. Exactly what I need. But... I got a message during connection saying - "Relationship tag contains incorrect attribute. Line 2, position 86." Can you help on that?

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Was that a power query message? Does anything load?

    • @eduardogosling7063
      @eduardogosling7063 4 года назад +1

      @@HowToExcelBlog Nothing is downloaded. It starts the connection and PQ message only says "Relationship tag contains incorrect attribute. Line 2, position 86." However... I noticed that the (ID) you mentioned is the same for a Google file with several workbooks in the same file. I believe PQ/Excel/Google is getting lost when there are more than just one workbook.

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Interesting. That might be the case, I never tried getting data from multiple google sheets.

  • @bombalabelaka4390
    @bombalabelaka4390 2 года назад

    how to import it with excel 2016? my excel new web query just show YAHOO only

  • @Magdoulin
    @Magdoulin Год назад

    The tailored link does not get the file tabs, no

  • @user-us6ld8oq6x
    @user-us6ld8oq6x Год назад

    Hi it didn't work for me as I get an HTML data. I followe the exact instructions and yet....
    I saw a blog on this issue and there was an example link to try and it works!!!
    do not understand what is the different between those two

  • @nitakumariray9446
    @nitakumariray9446 4 года назад

    not working in excel 2016 massage"The command you selected is not available from this shortcut menu."appears

  • @trongpham9999
    @trongpham9999 3 года назад +1

    How to get a 4 mini charts (at the headers) at 3:01
    pls show me

    • @HowToExcelBlog
      @HowToExcelBlog  3 года назад

      There's an option you can check in the View tab in power query editor.

  • @realpulsecoin
    @realpulsecoin 3 года назад +1

    Can I do the same with Excel online?

    • @HowToExcelBlog
      @HowToExcelBlog  3 года назад +1

      No power query is only available in desktop Excel.

  • @justoojedaaguirre9942
    @justoojedaaguirre9942 3 года назад +1

    is it possible to extract those data if the view is restricted?

  • @GauravAgarwal247
    @GauravAgarwal247 3 года назад

    In 0:42 you have selected "Anyone with the link". What if the document belongs to a user who has restricted sharing permissions outside the domain? Will it work in that case?

    • @tomerindigo3263
      @tomerindigo3263 3 года назад

      same question :) I have also this situation

  • @user-eu1ul6dj6n
    @user-eu1ul6dj6n 4 месяца назад

    error: we couldn't authenticate with the credentials provided , how to resolve this ?

  • @suriyaganesh6463
    @suriyaganesh6463 4 года назад +1

    Is this possible with anyone at "X" with this link ?

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Not sure I understand what you mean 🤔

    • @suriyaganesh6463
      @suriyaganesh6463 4 года назад

      @@HowToExcelBlog You have instructed to share the link which is accessible by anyone. I want to know is this possible where I want to share to only selective set of people.

  • @zoueinexchange5767
    @zoueinexchange5767 Год назад

    Didn't work for me, using excel 2016, keeps giving: an error has occurred in the script on this page, syntax error in regular expression

  • @justinnoor4915
    @justinnoor4915 4 года назад +1

    Pretty nifty

  • @guptaprashantkumar
    @guptaprashantkumar 4 года назад +1

    Power query is not updating after few days, it says operation timed out while connecting to google sheet.