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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,334)