How can I get the underlying linkaddress of an excel cell using AutoIt v.3 ?
Or, how can I follow this link? Is not an external link, the link opens only another existing sheet in the same workbook.
Related
as I'm not a web developer by any means, this is me just asking a question for that I have not found a solution for.
I have a google sheet with multiple pages/sheets within it. the file is embeded in an iframe inside a webpage and I pulled the url and can open it directly using the url. the following link is just an example as I can't share the actual link since I am not allowed to:
https://docs.google.com/spreadsheets/d/e/{key}/pubhtml?widget=true&headers=false
I have tried this:
https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key={key}
and is not working I get an error:
Sorry, unable to open the file at present.
Please check the address and try again.
the file is not meant for anyone to download nor share. Furthremore, since it is continuosely manually updated by author and I need to keep track of updates, taking screenshots is not efficient since the file is too big.
is there any way I can download the actual sheet to my device (so I can compare file updates over the long run)
Thank you.
I believe your goal as follows.
You want to download a Google Spreadsheet.
You are the owner of Google Spreadsheet.
The Spreadsheet is published as the Web publish. So the URL of Spreadsheet is https://docs.google.com/spreadsheets/d/e/2PACX-1vTl9bcwMSjoxYj406evzJefFodkVEUlV2KIq34Y5V8BFWJygAFrPSA7L5d89TASDUjkPG4b2SfN2rpe/pubhtml?widget=true&headers=false.
Issue and workaround:
Unfortunately, the Google Spreadsheet cannot be directly downloaded as the Google Spreadsheet. It seems that this is the current specification. In this case, it is required to export the Google Spreadsheet as other mimeType. For example, it's XLSX format, PDF format and CSV format. But the URL of https://docs.google.com/spreadsheets/d/e/2PACX-1vTl9bcwMSjoxYj406evzJefFodkVEUlV2KIq34Y5V8BFWJygAFrPSA7L5d89TASDUjkPG4b2SfN2rpe/pubhtml?widget=true&headers=false cannot directly export. So, in this answer, as a workaround, I would like to propose to use the URL for exporting Google Spreadsheet as other mimeType.
When your URL is used, the URL for exporting is as follows.
Modified url:
https://docs.google.com/spreadsheets/d/e/2PACX-1vTl9bcwMSjoxYj406evzJefFodkVEUlV2KIq34Y5V8BFWJygAFrPSA7L5d89TASDUjkPG4b2SfN2rpe/pub?output=xlsx
In this case, when you access to above URL using browser, your Spreadsheet can be exported as a XLSX file.
When output=xlsx is modified to output=pdf and output=csv, you can export as a PDF file and a CSV file, respectively.
When you want to export the specific sheetm please use the sheet ID like gid=0. The URL is as follows.
https://docs.google.com/spreadsheets/d/e/2PACX-1vTl9bcwMSjoxYj406evzJefFodkVEUlV2KIq34Y5V8BFWJygAFrPSA7L5d89TASDUjkPG4b2SfN2rpe/pub?output=xlsx&gid=0
Note:
When you want to make users downloading the Spreadsheet, you can add the tag a as follows.
Download
Is there a way to link to another sheet within a Google Sheets workbook using the target's sheet name?
I've seen other posts that show how to do this but they rely on getting the sheet's gid. I can't use that because I need this to work in Excel and Google Sheets and my workbooks are being created dynamically with a Node script.
In Excel I can write =HYPERLINK("#'NameOfSheet'!A1", "Click here"). But this doesn't work in Google Sheets. It creates a link but when you click it nothing happens.
Just try to use the sheet's URL instead, to link to other sheet or tab. Just for example:
=HYPERLINK("https://docs.google.com/spreadsheets/d/10HufqWRKiK_iR45Z52ABTiba0Lq1wVMIRxdefSI3NA/edit#gid=0", "Link text here")
Notice that this also changes when you link to another tab:
#gid=0
I want fetch the table details from https://www.edelweiss.in/market/nse-option-chain in a gogle sheet, I had used the formula
=IMPORTHTML("https://www.edelweiss.in/market/nse-option-chain","table",1) , but getting the empty error.
Unfortunately, the =IMPORTHTML cannot be used because the website you're trying to get the data from load the data dynamically.
Possible solution
A possible solution to gather the data might be found if you follow these steps:
1. Identify the the URL that is making the request with the data you want
You can do this by using the Google Chrome Console and checking the Network Tab and filtering the requests by XHR.
2. Import the IMPORTJSON library and use Apps Script
Install the library by accessing this link here. You should install the library by using Apps Script and going to Tools -> Script Editor -> add the ImportJSON.gs.
3. Use the formula in your Sheet
You could use the formula like this:
=ImportJSON("THE_LINK_FOUND_AT_STEP_1")
Reference
ImportJSON Library
I am trying to connect google sheet with power bi using R Studio, there is a video on youtube by stephnie locke, but that is just a short video and dont help completely. any one there which can help properly and completely.
If you're not limited to R Studio, there is another way to access Google Sheet data from Power BI:
Sample data:
Get shareable link of the Google Sheet (Permission at least Anyone with the link can view):
Modify the shareable link and add the following parts:
From:
https://docs.google.com/spreadsheets/d/google-sheet-guid/edit?usp=sharing
To:
https://docs.google.com/spreadsheets/d/google-sheet-guid/export?format=xlsx&id=google-sheet-guid
e.g.
https://docs.google.com/spreadsheets/d/1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA/edit?usp=sharing
->
https://docs.google.com/spreadsheets/d/1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA/export?format=xlsx&id=1ohAz8SD6viEGIrcor-JC-vCt2yRbgY1c-7Uflv-_hrA
Create a blank query in Power BI and get the source as below:
let
Source = Excel.Workbook(Web.Contents("the-link-in-step-2"), null, true)
in
Source
If you drill into the Table cell you should be able to see the data and work from there.
An easier way:
Go to Get data, search Web.
Select Web
Select Web
on the URL.
-> Modify the URL.
From:
https://docs.google.com/spreadsheets/d/emphasized textgoogle-sheet-guid/edit?usp=sharing
To:
https://docs.google.com/spreadsheets/d/google-sheet-guid/export?format=xlsx&id=google-sheet-guid
Paste.
Paste link
And there is your sheet.
Select your sheet
To build upon #Joseph A's perfect answer, if you would like to make it refreshable after publishing your report to the Power BI service from Desktop:
Navigate to the workspace where the report is published (i.e. My Workspace)
Click Datasets
Under Actions, click the ellipses and choose Settings
Expand Data source credentials and click Edit Credentials
Change Authentication method to Basic
Enter User Name and Password of Google Docs account where the file resides and click Sign In
Your report can now be refreshed and updated (manually or scheduled) to reflect changes in your Google Sheets doc!
I have a shared xls file in One Drive. Which i want to view though Excel Online.
The Link would be sent to users through mails. The user will open it in browser by clicking it.
Just like the Google Docs Viewer
https://docs.google.com/viewer?url=http://spreadsheetpage.com/downloads/xl/time%2520sheet.xls
But, in Microsoft Excel Online and the file is in One Drive itself.
Thanks in advance.
Use WL.api to provide the path of the file stored on onedrive. This function returns a URL if it succeeds. You have to send this link through email. User will be able to view the invoice stored on your onedrive by clicking on this link using excel online.
:-)