cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
efialttes
Community Champion
Community Champion

Create Table in Excel with two Worksheets

So, I have successfully created a Table in an Excel with one Worksheet by using the "Create table" action from Excel Online (Business) connector, targeting as "Table range" the following:

A1:E1

Now I manually add a second Worksheet (named Hoja2) and modify the Flow, so in "Create table" I target as "Table range" the following:

Hoja2!A1:E1

Flow executiong fails.


CreateTable2worksheets.pngMy Flow is extremely simple, please find enclosed a screenshot

Is this use case (i.e. targeting an specific worksheet) currently supported?

Thank you in advance!

 

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

11 REPLIES 11
lreinhard7
Helper V
Helper V

Hi, 

Have you found a solution for this issue?

Best regards, 

Ludwig

v-yamao-msft
Community Support
Community Support

Hi @efialttes,

 

I assume that Hoja2 is the Sheet name. let’s say that the table that you are going to create has the same name with the worksheet. In the Table name field, please enter the worksheet name and try again.

I have made the following test. There are several sheets in the list, now I am going to format Sheet5 as a table. In the Table name field, enter the sheet name and it just works fine.

1.PNG 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yamao-msft

Thanks for the tip!

Not sure I understood you. I have followed your advice and verified that:

 

-if I add a new worksheet manually, leave as the first worksheet on the right, and then execute the flow, the table is created on the first worksheet on the right, no matter the name assigned to the Table. So if I create a new Worksheet named Hoja3, leave it on the right; then execute the flow attempting to create Table named "Hoja5", the Table is created on Worksheet named Hoja3.

 

-if I add two new worksheets manually (Hoja4 and Hoja5, where Hoja5 is the first worksheet on the right), and then execute the flow targeting a new table name, the new table is not created on the first worksheet on the right (Hoja5) but on Hoja4, no matter the name assigned to it.

 

-If I execute the flow again, targeting a new table name, expecting new Table would be created on Hoja5, however flow execution fails. If I execute the flow again changing the range to avoid overlappings, the new Table is created on Hoja4.

 

 Am I missing something? If not, current implementation looks a bit weird

Thanks again for your help!

 

 

 

 

 

 

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

Anonymous
Not applicable

Hi everyone.

I've been trying to create tables in a particular worksheet for some time now.

I don't know if it's relevant, but I'm using the Excel online (Enterprise, not onedrive) - Create table.

My personal notes on the matter:

- It seems that the table is created in the Active Worksheet (dependant on which sheet was active the last time the excel file was saved)

- It doesn't matter the name specified for the table (at least in my case)

 

- I got it working by specifying the Worksheet name in the table range, similarly to what was initially stated in this post.

So in the table range field you would use (very important to be precise with ' and ! symbols):

='WORKSHEET_NAME'!AX:BY

WORKSHEET_NAME = Name of the desired worksheet as seen in excel

AX:BY = Range desired for the table, A,B = Columns, X,Y = Rows

 

Example:

='Hoja2'!A1:E1

 

Hope this helps

origdgg

Hi,

I have a problem where.

I have a document that I receive per email, and I had to archive the attachment in one folder. However, I have to take the information from one worksheet to another Excel. the problem is, the attach do not have any table created and I have tried several approaches unsuccessful.

 

this is base on the last comment.

1.png

2.png

Could you please help me?

thanks

@Kamacete

If your challenge is to build an excel table on an excel file which originally didn't have, this article covers the topic

https://sharepains.com/2018/10/17/microsoft-flow-read-large-excel-files-within-seconds-without-creat...

 

If you face problems when implementing it, my suggestion is to open a new thread. Most superusers tend to pay attention to new unanswered topics, and this seems to have several replies already

Thanx!

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

Hi,

I didn't solve this problem until now.

there is no other way?

This works, thank you so much!

great! thanks! that worked!

nowhere is the exact syntax written to chose a specific worksheet. People say you need an excel script.

But of course it has to be much simpler!

This is the solution!

PBILover
Frequent Visitor

@Tobee : What solution did you used?

 

Hi

 

The critical thing that I took from this article was the syntax for the naming of the table range. Because if you want to enter rows in an excel, this can be done only in pre-defined tables. So one needs to create a table. But the ‘Create table’ action misses the field ‘Worksheet’. You have to enter the worksheet name directly in the field of the table range.

The syntax of the table range is as follows: ‘name_of_worksheet’!A1:Z1

Where Z stands for the last column you want to enter data.

It is enough to enter one row because if you enter new rows via Power Automate (PA) the table is extended automatically.

 

I created flows with which I export data from SP lists to excel on a regular basis (like snapshots, e.g. every day).

Every month I create automatically a new excel file named yyyyMM.xlsx where yyyy and MM are the current year and month.

Every day, I create automatically a new worksheet plus table named with the day: yyyyMMdd.

To distinguish easily between worksheet and table, I call them wyyyyMMdd and tyyyyMMdd.

As a matter of fact, I generate the file with the worksheet and table even a day before I need it. So I acutually create the worksheet and table of tomorrow (= today + 1 day).

In the picture of the flow section you can see that I generate the name of the day in a compose action:

formatDateTime(addDays(utcNow(), 1), 'yyyyMMdd')

 

So this flow section

  • Composes first the content of an empty excel file. See here how to do this: https://www.youtube.com/watch?v=RB_ySjhm9Sg
  • Creates the excel file in a SP library using the ‘Create file’ action and the content of the empty excel file.
  • Creates a worksheet in the new file. Name of worksheet: wyyyyMMdd
  • Creates a table named tyyyyMMdd with the table range ‘wyyyyMMdd’!A1:Z1

 

Very useful info can also be obtrained from this video:

https://www.youtube.com/watch?v=Kupz71dWYyY

 

If you need more info, fell free to contact me again.

 

Cheers

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (4,040)