Get Google Sheet Data in Excel with Power Query

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ส.ค. 2024
  • 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...
    DOWNLOAD the example workbook here
    📖 www.howtoexcel...
    SUBSCRIBE & get my 3 FREE eBooks
    📧 www.howtoexcel...
    CONNECT with me on social
    Facebook: / howtoexcelblog
    Twitter: / howtoexcelblog
    LinkedIn: / john-macdougall
    Thanks for all your support!

ความคิดเห็น • 99

  • @naboolae
    @naboolae 4 ปีที่แล้ว +17

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

    • @keysersoze4330
      @keysersoze4330 2 ปีที่แล้ว +1

      and then a hero comes along

    • @NickRaven78
      @NickRaven78 9 หลายเดือนก่อน

      Thanks
      @@keysersoze4330

  • @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 :))

  • @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. 👍

  • @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. 😀

  • @alexanderjones4472
    @alexanderjones4472 2 ปีที่แล้ว

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

  • @balbirkumar2451
    @balbirkumar2451 3 ปีที่แล้ว +1

    You taught very simply

  • @rhayes3281
    @rhayes3281 3 ปีที่แล้ว +4

    This was incredibly helpful and super concise. Thank you!

  • @Hatersongs
    @Hatersongs 4 ปีที่แล้ว +2

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

  • @hardansofyan9221
    @hardansofyan9221 2 ปีที่แล้ว

    Supper helpfull, Thank you from Indonesia 🙏🙏🙏

  • @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

  • @RageDauntlessWinters
    @RageDauntlessWinters 3 ปีที่แล้ว

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

  • @growingmusicians
    @growingmusicians ปีที่แล้ว

    you are a savior darling.

  • @georgiivanov1902
    @georgiivanov1902 ปีที่แล้ว +1

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

  • @richardreyes8184
    @richardreyes8184 ปีที่แล้ว

    Great explanation! Thank you!

  • @TonyaBrewton
    @TonyaBrewton 7 หลายเดือนก่อน

    Thank you for doing this ! 🎉

  • @darrylmorgan
    @darrylmorgan 4 ปีที่แล้ว +1

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

  • @evelic
    @evelic ปีที่แล้ว

    Fantastic. Thank you so much.

  • @siavoshkasravi398
    @siavoshkasravi398 2 ปีที่แล้ว +3

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

  • @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

  • @cordeiromonteiro7337
    @cordeiromonteiro7337 2 ปีที่แล้ว

    It feels like magic... thank you.

  • @worldofdata
    @worldofdata ปีที่แล้ว +1

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

  • @Struggle000
    @Struggle000 3 ปีที่แล้ว +1

    Thank you a lot, that was very helpful!

    • @HowToExcelBlog
      @HowToExcelBlog  3 ปีที่แล้ว

      You're welcome David! Glad it helped.

  • @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!!

  • @longhorneye
    @longhorneye 4 ปีที่แล้ว +1

    Good job. It was that what I looked for

  • @elfridhasman4181
    @elfridhasman4181 4 ปีที่แล้ว +1

    Thank You Very Much

  • @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.

  • @kramateusz
    @kramateusz 11 หลายเดือนก่อน

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

  • @fuad471
    @fuad471 3 ปีที่แล้ว

    Thank you helped a lot man !

  • @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

  • @avininyoutuification
    @avininyoutuification 3 ปีที่แล้ว

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

  • @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?

  • @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.

  • @OMGdon
    @OMGdon 2 ปีที่แล้ว

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

  • @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?

  • @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

  • @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.

  • @joseluna304
    @joseluna304 ปีที่แล้ว

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

  • @MANGESH561
    @MANGESH561 3 ปีที่แล้ว

    great! very useful

  • @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...

  • @choolwenamoobe2328
    @choolwenamoobe2328 3 ปีที่แล้ว

    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?

  • @ezz.electronics
    @ezz.electronics 3 ปีที่แล้ว +1

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

  • @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.

  • @Magdoulin
    @Magdoulin ปีที่แล้ว

    The tailored link does not get the file tabs, no

  • @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?

  • @user-eu1ul6dj6n
    @user-eu1ul6dj6n 5 หลายเดือนก่อน

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

  • @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.

  • @bashirjafiya5828
    @bashirjafiya5828 2 ปีที่แล้ว

    Godlike!

  • @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.

  • @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?

  • @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

  • @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?

  • @justoojedaaguirre9942
    @justoojedaaguirre9942 3 ปีที่แล้ว +1

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

  • @bombalabelaka4390
    @bombalabelaka4390 2 ปีที่แล้ว

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

  • @guptaprashantkumar
    @guptaprashantkumar 4 ปีที่แล้ว +1

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

  • @zoueinexchange5767
    @zoueinexchange5767 2 ปีที่แล้ว

    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

  • @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.

  • @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

  • @raymondreinhard2292
    @raymondreinhard2292 4 ปีที่แล้ว

    Could it work excel to spreadsheet?

  • @nitakumariray9446
    @nitakumariray9446 4 ปีที่แล้ว

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

  • @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.

  • @justinnoor4915
    @justinnoor4915 4 ปีที่แล้ว +1

    Pretty nifty