SOLVED

Import Data from Excel Online to Excel (offline)

Copper Contributor

Scenario:
I have an office 365 excel document that is synced up with a Microsoft survey form. I then have an offline excel file that I would like to read those survey responses in. The offline excel file is required because we need to run excel macros. 

Is there a way to import the contents of an entire sheet from an Excel Online document into my offline excel file? I have looked through the Data > Get Data options, and I don't see anything that jumps out at me that could be of use. But I have not dealt with getting information from external sources that were not also located on the same computer. Please note, that the intent of all this is to send the excel file to other computers, but still maintain that connection to the Excel Online information. 

 

Thanks

14 Replies
When you open your Online Excel file there is an option called "Edit" drop down
Edit in excel
Edit in Online Excel
Choose to edit in Online Excel and then it will open in desktop excel now you will have all the options

Let me know

I was already aware of the ability to edit the excel using native excel, however, the file is not a macro-enabled document. So I'm wondering if there is a way to avoid re-creating everything by just extracting the data I need from the excel online. 

 

Any ideas?

best response confirmed by phague (Copper Contributor)
Solution

From terminology point of view - there are no excel online files and excel native files. There are only excel files which you may access from Excel online web app (and in this case it shall be on OneDrive or Sharepoint) or from Excel desktop app.

 

Generated by Microsoft Forms file is on OneDrive by default, you may pick-up the table from that file (and transform as necessary) by Power Query using Excel desktop app from within the file located at any place. The only you need is the connection to you OneDrive. If you share that file with other people you also need to share the OneDrive file with these people to give them possibility to refresh the data.

Sergei,

Understood. I believe the process you outline is what I followed (stumbled through) originally. I had both files saved on my OneDrive, and I added the data using Data > Get Data > From File > From Workbook. Everything works fine on the machine where I imported/linked that data. However, If I open that .xlsm file on another machine, or share it with another user, they cannot refresh the data because the source is not found. 

Is there a way to use relative paths with the data source? When I open the .xlsm file on my other computer, with a different username, the source fails to load because the data source is using absolute paths, which points to my synced folder on OneDrive. 

 

Is there a workaround for that? I apologize if I am understanding this concept incorrectly. Annotation 2018-12-17 152152.jpg

I believe I have solved my problem. I'm not sure if it was the proper way, but I was able to grant access to both myself on a different machine, and another user on his machine (using Office 2010 w/ the power query plugin). What I did:

1. Open Data > Queries & Connections

2. Right click my query and click edit. 

3. In the power query editor window, click Advanced Editor

4. Modified the source parameter value to Excel.Workbook(Web.Contents("the sharepoint address of the file"). 

 

That seemed to work for me. Please let me know if there is a better way!

 

Thanks all.

That's since your source is local folder synced with OneDrive. That shall be cloud part like

https://contoso-my.sharepoint.com/personal...

 

Yes, exactly, finally that will be Excel.Workbook(Web.Contents("https://...). But you may use From File->From Workbook connector if select cloud path instead of local one

@phague 

 

Any update, friend? Didn't work for me...

@mgouveia 

What exactly doesn't work?

So, my excel was telling the access was forbidden, but I found that my connections weren't loged to my SharePoint account (witch was unexpected to me because in the account settings of excel it was showing my SharePoint connection), and it was configured to connect anonymously.

In the end I finally could import from the excel online, but I actually used the web import tool, not changing the query path. But I think the problem was the same...
The connection configuration.
And now I might be able to do it both ways.

Thank you for your time!!!

@mgouveia 

Try to check if Data->Get Data->Data Source setting is correct for this source.

 

But in general it's much better to use From File->From Sharepoint folder connector. Use root URL for Sharepoint site, filter on your file and get content after that.

I have a similar problem: 2 excel file saved in 2 different folder in Sharepoint.
I have my master data excel in one folder and some user need to see some column from my master excel in an other file saved in a shared folder.
With Get Data -> from file -> from Sharepoint folder can the user with no permission to view the master file can have the updated information in the shared file?
thank you

@Dropje 

Nope, if users have no access to your master file they can't update information from it. Someone who has access both to shared and master file have to update shared file for such users.

Get Data -> Form File is just another interface to users if the open the file directly in SharePoint. They may see result in browser/app or in Power Query interface, but result based on permissions is the same.

@Sergei Baklan thank you for the reply. 

 

I will think about a way to share the information from the master tracker to other user, if there is anything that can update automatically the excel maybe I can work with the list in sharepoint and update the information in that one.

I will try...

1 best response

Accepted Solutions
best response confirmed by phague (Copper Contributor)
Solution

From terminology point of view - there are no excel online files and excel native files. There are only excel files which you may access from Excel online web app (and in this case it shall be on OneDrive or Sharepoint) or from Excel desktop app.

 

Generated by Microsoft Forms file is on OneDrive by default, you may pick-up the table from that file (and transform as necessary) by Power Query using Excel desktop app from within the file located at any place. The only you need is the connection to you OneDrive. If you share that file with other people you also need to share the OneDrive file with these people to give them possibility to refresh the data.

View solution in original post