Fetch Google Sheets data with Excel Power Query












0















I am using Excel 2103 and Excel power query.



The fetch data from web works fantastically on most websites, however I cannot get it to work on Google Sheets



I have tried using the share URL as well as the download to Excel and Download to CSV links and the query returns no data.










share|improve this question





























    0















    I am using Excel 2103 and Excel power query.



    The fetch data from web works fantastically on most websites, however I cannot get it to work on Google Sheets



    I have tried using the share URL as well as the download to Excel and Download to CSV links and the query returns no data.










    share|improve this question



























      0












      0








      0


      1






      I am using Excel 2103 and Excel power query.



      The fetch data from web works fantastically on most websites, however I cannot get it to work on Google Sheets



      I have tried using the share URL as well as the download to Excel and Download to CSV links and the query returns no data.










      share|improve this question
















      I am using Excel 2103 and Excel power query.



      The fetch data from web works fantastically on most websites, however I cannot get it to work on Google Sheets



      I have tried using the share URL as well as the download to Excel and Download to CSV links and the query returns no data.







      microsoft-excel google-spreadsheets power-query






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 27 '15 at 12:46









      DavidPostill

      104k25225259




      104k25225259










      asked Aug 27 '15 at 12:40









      GrantGrant

      113




      113






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I was able to get this working on some data published by the Gapminder site as Google sheets. I just started from the PQ ribbon, "From Web" button, and pasted in the URL:



          http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls



          On the Navigator page I chose Data.



          Looking at the generated code, it seems PQ is smart enough to wrap an Excel function around the Web function.



          let
          Source = Excel.Workbook(Web.Contents("http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls"), null, true),
          Data_Sheet = Source{[Item="Data",Kind="Sheet"]}[Data],
          #"Changed Type" = Table.TransformColumnTypes(Data_Sheet,{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", type number}, {"Column6", type number}, {"Column7", type number}, {"Column8", type number}, {"Column9", type number}, {"Column10", type number}, {"Column11", type number}, {"Column12", type number}, {"Column13", type number}, {"Column14", type number}, {"Column15", type number}, {"Column16", type number}, {"Column17", type number}, {"Column18", type number}, {"Column19", type number}, {"Column20", type number}, {"Column21", type number}, {"Column22", type number}, {"Column23", type number}, {"Column24", type number}, {"Column25", type number}, {"Column26", type number}, {"Column27", type number}, {"Column28", type number}, {"Column29", type number}, {"Column30", type number}, {"Column31", type number}, {"Column32", type number}, {"Column33", type number}, {"Column34", type number}, {"Column35", type number}, {"Column36", type number}, {"Column37", type number}, {"Column38", type number}, {"Column39", type number}, {"Column40", type number}, {"Column41", type number}, {"Column42", type number}, {"Column43", type number}, {"Column44", type number}, {"Column45", type number}, {"Column46", type number}, {"Column47", type number}, {"Column48", type number}, {"Column49", type number}, {"Column50", type number}, {"Column51", type number}, {"Column52", type number}})
          in
          #"Changed Type"





          share|improve this answer


























          • To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

            – Mike Honey
            Jul 26 '16 at 7:05













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f963599%2ffetch-google-sheets-data-with-excel-power-query%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I was able to get this working on some data published by the Gapminder site as Google sheets. I just started from the PQ ribbon, "From Web" button, and pasted in the URL:



          http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls



          On the Navigator page I chose Data.



          Looking at the generated code, it seems PQ is smart enough to wrap an Excel function around the Web function.



          let
          Source = Excel.Workbook(Web.Contents("http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls"), null, true),
          Data_Sheet = Source{[Item="Data",Kind="Sheet"]}[Data],
          #"Changed Type" = Table.TransformColumnTypes(Data_Sheet,{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", type number}, {"Column6", type number}, {"Column7", type number}, {"Column8", type number}, {"Column9", type number}, {"Column10", type number}, {"Column11", type number}, {"Column12", type number}, {"Column13", type number}, {"Column14", type number}, {"Column15", type number}, {"Column16", type number}, {"Column17", type number}, {"Column18", type number}, {"Column19", type number}, {"Column20", type number}, {"Column21", type number}, {"Column22", type number}, {"Column23", type number}, {"Column24", type number}, {"Column25", type number}, {"Column26", type number}, {"Column27", type number}, {"Column28", type number}, {"Column29", type number}, {"Column30", type number}, {"Column31", type number}, {"Column32", type number}, {"Column33", type number}, {"Column34", type number}, {"Column35", type number}, {"Column36", type number}, {"Column37", type number}, {"Column38", type number}, {"Column39", type number}, {"Column40", type number}, {"Column41", type number}, {"Column42", type number}, {"Column43", type number}, {"Column44", type number}, {"Column45", type number}, {"Column46", type number}, {"Column47", type number}, {"Column48", type number}, {"Column49", type number}, {"Column50", type number}, {"Column51", type number}, {"Column52", type number}})
          in
          #"Changed Type"





          share|improve this answer


























          • To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

            – Mike Honey
            Jul 26 '16 at 7:05


















          0














          I was able to get this working on some data published by the Gapminder site as Google sheets. I just started from the PQ ribbon, "From Web" button, and pasted in the URL:



          http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls



          On the Navigator page I chose Data.



          Looking at the generated code, it seems PQ is smart enough to wrap an Excel function around the Web function.



          let
          Source = Excel.Workbook(Web.Contents("http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls"), null, true),
          Data_Sheet = Source{[Item="Data",Kind="Sheet"]}[Data],
          #"Changed Type" = Table.TransformColumnTypes(Data_Sheet,{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", type number}, {"Column6", type number}, {"Column7", type number}, {"Column8", type number}, {"Column9", type number}, {"Column10", type number}, {"Column11", type number}, {"Column12", type number}, {"Column13", type number}, {"Column14", type number}, {"Column15", type number}, {"Column16", type number}, {"Column17", type number}, {"Column18", type number}, {"Column19", type number}, {"Column20", type number}, {"Column21", type number}, {"Column22", type number}, {"Column23", type number}, {"Column24", type number}, {"Column25", type number}, {"Column26", type number}, {"Column27", type number}, {"Column28", type number}, {"Column29", type number}, {"Column30", type number}, {"Column31", type number}, {"Column32", type number}, {"Column33", type number}, {"Column34", type number}, {"Column35", type number}, {"Column36", type number}, {"Column37", type number}, {"Column38", type number}, {"Column39", type number}, {"Column40", type number}, {"Column41", type number}, {"Column42", type number}, {"Column43", type number}, {"Column44", type number}, {"Column45", type number}, {"Column46", type number}, {"Column47", type number}, {"Column48", type number}, {"Column49", type number}, {"Column50", type number}, {"Column51", type number}, {"Column52", type number}})
          in
          #"Changed Type"





          share|improve this answer


























          • To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

            – Mike Honey
            Jul 26 '16 at 7:05
















          0












          0








          0







          I was able to get this working on some data published by the Gapminder site as Google sheets. I just started from the PQ ribbon, "From Web" button, and pasted in the URL:



          http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls



          On the Navigator page I chose Data.



          Looking at the generated code, it seems PQ is smart enough to wrap an Excel function around the Web function.



          let
          Source = Excel.Workbook(Web.Contents("http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls"), null, true),
          Data_Sheet = Source{[Item="Data",Kind="Sheet"]}[Data],
          #"Changed Type" = Table.TransformColumnTypes(Data_Sheet,{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", type number}, {"Column6", type number}, {"Column7", type number}, {"Column8", type number}, {"Column9", type number}, {"Column10", type number}, {"Column11", type number}, {"Column12", type number}, {"Column13", type number}, {"Column14", type number}, {"Column15", type number}, {"Column16", type number}, {"Column17", type number}, {"Column18", type number}, {"Column19", type number}, {"Column20", type number}, {"Column21", type number}, {"Column22", type number}, {"Column23", type number}, {"Column24", type number}, {"Column25", type number}, {"Column26", type number}, {"Column27", type number}, {"Column28", type number}, {"Column29", type number}, {"Column30", type number}, {"Column31", type number}, {"Column32", type number}, {"Column33", type number}, {"Column34", type number}, {"Column35", type number}, {"Column36", type number}, {"Column37", type number}, {"Column38", type number}, {"Column39", type number}, {"Column40", type number}, {"Column41", type number}, {"Column42", type number}, {"Column43", type number}, {"Column44", type number}, {"Column45", type number}, {"Column46", type number}, {"Column47", type number}, {"Column48", type number}, {"Column49", type number}, {"Column50", type number}, {"Column51", type number}, {"Column52", type number}})
          in
          #"Changed Type"





          share|improve this answer















          I was able to get this working on some data published by the Gapminder site as Google sheets. I just started from the PQ ribbon, "From Web" button, and pasted in the URL:



          http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls



          On the Navigator page I chose Data.



          Looking at the generated code, it seems PQ is smart enough to wrap an Excel function around the Web function.



          let
          Source = Excel.Workbook(Web.Contents("http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdFhPbDdCTTYxM1dGc21UdE9sSkp1WEE&output=xls"), null, true),
          Data_Sheet = Source{[Item="Data",Kind="Sheet"]}[Data],
          #"Changed Type" = Table.TransformColumnTypes(Data_Sheet,{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", type number}, {"Column6", type number}, {"Column7", type number}, {"Column8", type number}, {"Column9", type number}, {"Column10", type number}, {"Column11", type number}, {"Column12", type number}, {"Column13", type number}, {"Column14", type number}, {"Column15", type number}, {"Column16", type number}, {"Column17", type number}, {"Column18", type number}, {"Column19", type number}, {"Column20", type number}, {"Column21", type number}, {"Column22", type number}, {"Column23", type number}, {"Column24", type number}, {"Column25", type number}, {"Column26", type number}, {"Column27", type number}, {"Column28", type number}, {"Column29", type number}, {"Column30", type number}, {"Column31", type number}, {"Column32", type number}, {"Column33", type number}, {"Column34", type number}, {"Column35", type number}, {"Column36", type number}, {"Column37", type number}, {"Column38", type number}, {"Column39", type number}, {"Column40", type number}, {"Column41", type number}, {"Column42", type number}, {"Column43", type number}, {"Column44", type number}, {"Column45", type number}, {"Column46", type number}, {"Column47", type number}, {"Column48", type number}, {"Column49", type number}, {"Column50", type number}, {"Column51", type number}, {"Column52", type number}})
          in
          #"Changed Type"






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 6 '16 at 5:54









          3498DB

          15.7k114762




          15.7k114762










          answered Sep 17 '15 at 4:04









          Mike HoneyMike Honey

          1,7561511




          1,7561511













          • To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

            – Mike Honey
            Jul 26 '16 at 7:05





















          • To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

            – Mike Honey
            Jul 26 '16 at 7:05



















          To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

          – Mike Honey
          Jul 26 '16 at 7:05







          To use this on your own Google Sheets file, go to File / Publish to Web. Then change the selection from Web Page to Microsoft Excel. Copy the generated link.

          – Mike Honey
          Jul 26 '16 at 7:05




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f963599%2ffetch-google-sheets-data-with-excel-power-query%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀