Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rF9xpnDPoNADpzaGoziLwb
Power Automate - General Discussion
Unanswered

Dynamic Table Range in Excel Online "Create Table" node

Like (1) ShareShare
ReportReport
Posted on 20 Sep 2019 10:42:35 by

Hi,

 

Every day, we save an Excel file on our Sharepoint environment and create an Excel Table in the file. 

The content of the Excel file is different every day. Different number of rows as well.

 

When I use the "Create Table" node from the Excel Online package, I need to specify the Table Range.

Every file contains columns A to column DN. But the rows are different. 

It tried the table Range "A:DN" but when I do that, it creates a lot of empty rows at the end of the data table. So I think I have to specify the number of rows as well.

 

For example today I have 412 rows. So the table range is "A$1:DN$412". 

 

My question is: Do I really need to specify the number of rows in the table range? and if so: How can I extract the number of rows from an Excel file?

 

Thanks!

 

Marco

  • luden Profile Picture
    3 on 15 Mar 2024 at 18:54:44
    Re: Dynamic Table Range in Excel Online "Create Table" node

    use $A:$DN

  • kskillins Profile Picture
    on 10 Jan 2024 at 13:26:23
    Re: Dynamic Table Range in Excel Online "Create Table" node

    Turns out there is a way!!

     

    In the "Table Range" we decided to use an excel formula:  =OFFSET('SheetName'!A1,0,0,SUBTOTAL(103,'SheetName'!$A:$A),16)

     

    We did specify the number of columns (16), however, the number of rows is now dynamic.  Tested and functioning!!

  • Pedra Profile Picture
    6 on 02 Aug 2023 at 16:58:55
    Re: Dynamic Table Range in Excel Online "Create Table" node

    Dear all,

    2 factors explain the hurdle :

    1. semicolumn instead of coma required => yes !
    2. language : in my case, profile in french and french as default language for the web. Before, i used the OFFSET and SUBTOTAL functions and now DECALER and SOUS.TOTAL
  • CP153319 Profile Picture
    on 02 Aug 2023 at 11:04:51
    Re: Dynamic Table Range in Excel Online "Create Table" node

    See my post above, about Office Scripts. You create a new script with the code I provided and then call on the script in Power Automate to add the table. The file must be in SharePoint or Onedrive for this to work. 

  • Claud2 Profile Picture
    6 on 02 Aug 2023 at 06:14:32
    Re: Dynamic Table Range in Excel Online "Create Table" node

    Dear all,

     

    The change of coma doesn’t work. I cannot find other clean solution. Any idea ?

     

     

  • Pedra Profile Picture
    6 on 01 Aug 2023 at 15:13:07
    Re: Dynamic Table Range in Excel Online "Create Table" node

     Same issue same date. 
    666lestat => I didn't understand your change "coma by semicolon" ...you mean, in the formula ?

    like 
    =OFFSET(Orders!A1;0;0;SUBTOTAL(103;Orders!$A:$A);45)

    instead of

    =OFFSET(Orders!A1,0,0,SUBTOTAL(103,Orders!$A:$A),45)

    I did the change BUT not working

  • 666lestat Profile Picture
    61 on 01 Aug 2023 at 14:55:53
    Re: Dynamic Table Range in Excel Online "Create Table" node

    i found the solution, i change the coma by semicolon and it works.

    I don't understand why. It worked from month with coma.

    Any idea ?

  • 666lestat Profile Picture
    61 on 01 Aug 2023 at 14:12:37
    Re: Dynamic Table Range in Excel Online "Create Table" node

    i have the same issue since the same date.

    is it a global problem ?

  • Cristinacn Profile Picture
    Microsoft Employee on 01 Aug 2023 at 03:23:14
    Re: Dynamic Table Range in Excel Online "Create Table" node

    Mine is working fine.  Could it be possible that the environment you use is not production? 

  • Ecooney0071 Profile Picture
    7 on 31 Jul 2023 at 18:16:55
    Re: Dynamic Table Range in Excel Online "Create Table" node

    You could be right about the MS Update, I personally have not noticed it breaking.  The first thing I would do is take a peek at the incoming data on the spreadsheet.  Things can go haywire if you are getting a blank row in between populated rows, and sometimes even a blank cell when a value is expected to be there.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,788 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard