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
use $A:$DN
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!!
Dear all,
2 factors explain the hurdle :
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.
Dear all,
The change of coma doesn’t work. I cannot find other clean solution. Any idea ?
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
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 ?
i have the same issue since the same date.
is it a global problem ?
Mine is working fine. Could it be possible that the environment you use is not production?
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.
WarrenBelz
146,788
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional