web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Counting rows in excel...
Power Automate
Unanswered

Counting rows in excel table

(0) ShareShare
ReportReport
Posted on by

Hello I have a flow currently that creates a table in an email when an item is created in SharePoint. I want to get the value of the number of rows to enter in  my email. How do I go about doing that?

 

flow1113.PNGflow13.PNG

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    numberOfRows.PNG

    Use a compose step after your list rows action. Then use the following code:

    length(outputs('List_rows_present_in_a_table')?['body/value'])

    Use the output of your compose where you want to show the row count.

     

    Please...

    If I answered your question Accept it as a solution ✔️ 

    If I helped you out, please give me some Kudos 👍

    Thanks 😙

  • Community Power Platform Member Profile Picture
    on at

    Thank you, that did work. Is there a condition so I will only get one email? When I ran this I got 5 emails, one for each row I am assuming?

     

    Thank you

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Do you have an apply each that you are not showing in your screenshot? Please try to take a screenshot of the whole flow as one. Instructions on my blog here:

    https://www.tachytelic.net/2020/10/screenshot-entire-flow-power-automate/

     

    If your problem is fixed, can you mark it as answered and then post a new question about your 5 emails? It should be an easy fix.

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Yes I did have an apply to each. Thanks for the screen shot instructions too

  • thelemontree10 Profile Picture
    17 on at

    the list row just list maximum of 256 rows. If you go into settings, it can extend more but not exceed 5000. Can we have another ways without using List Rows ?

  • jdaniel1 Profile Picture
    83 on at

    Yeah, I just ran into the same problem. all these threads keep saying use compose. Which works fine, but it only spits out 256 rows. How do we get a full easy method of row count? Where in the setting do you change it? I couldn't find it. 

     

    I would prefer not writing up a full for each loop just to get a count. the file we have is fairly big, 24,000 rows roughly. So, we want to build a flow, but only test the first few rows initially. 

  • daquilje Profile Picture
    5 on at

    Thank you Paulie78 for showing me how to count the number of records in a table.

     

    I would like to utilize this functionality to keep track of how many records are in a table, and create a trigger of "when a table in excel online is updated"

     

    Best,

    Joey

  • DeborahJoy Profile Picture
    19 on at

    Thank for this! Although years later, really helped with something I'm trying to do.

    One question - is there a limit to the number of rows the Length function can count in a SP list (as there is with CountRows)? I couldn't find this information anywhere. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard