cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nancy1
New Member

How to get data from multiple worksheets in one excel file?

Hi,

Recently I got a question when I build a flow. When I got a new excel file in SharePoint documents, I will read the excel data and then integrate with old data. However, some people will upload an excel with multiple sheets, how could I classify the sheet what I need? For example, there are more than three worksheets in excel, "Sheet1", "Sheet2", "Sheet3" and "Sheet4". I only need the data from "Sheet1" and "Sheet3". 

 

6 REPLIES 6
v-zhos-msft
Solution Sage
Solution Sage

Hi @Nancy1 ,

I am afraid that there is no way to achieve your needs in Microsoft Flow currently.

There is no action about select a worksheet.

However, you can use the 'List rows present in a table' action to select the table from the worksheet you want.

For example, on my side, the Table1 and Table2 are in Sheet1, Table3 is in Sheet2.

Capture.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I think I have found the solution. use "Sheet1!A1:Sheet!Y10"

Sheet1!A1: Sheet1Z1 

 

....

Hi @Nancy1 ,

I am glad to hear that your issue was successfully resolved.

If there is anything else we can do for you, please feel free to post in the forum.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Nancy1 , sorry to reopen this thread, but i am facing the same issue. How did you solve it? if i put in the values as you mention here, i get an error.. would it be possible for you to kindly paste a screenshot of the syntax?

 

Thank you and best regards,

 

Vittorio

kseniia-p
New Member

Maybe the topic is not actual, but for anyone who will face the same issue.

 

Reference to sheet as Sheet1! didn't help me. But using desktop PA, it can be achieved by activating sheet you want to read from.

Power Automate desktop Read data from Excel activity reads data only from active sheet.

So first you should Set worksheet you want as active.

To set it as active you should specify it by index (starting from 1), or by sheet name.

If you do not know names, you can also Get all worksheets beforehand.
Hope it helps.

kseniiap_3-1624543149142.png

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,397)