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 / How can I get LAST ROW...
Power Automate
Unanswered

How can I get LAST ROW of Excel file in PowerAutomate?

(0) ShareShare
ReportReport
Posted on by 4

 

 

 

I am importing data from Power Vİrtual Agents to Excel via Power Automate. I need to keep the data last row in Excel the varriable. Excel is dynamically updated. I want to get last row in Excel. I have an Excel file. It has 3 column in a table. I want to get the last row of which is the column I want. But unfortunately I couldnt it. I need help about that.  I want to take columns in the last row and compare them.  These data are date and time. 

 

My second question is that there is date and time data in the cell i will import from excel. Can I compare  the sizes of this data? 

 

I have the same question (0)
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at

    Hi @mertyuksel 

     

    You can use Get First free row on column action, so this will give you the free row index

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    As Srini mentioned, you can use the Get first free column/row from Excel worksheet that will give you the first free row. This means that your last row is %FirstFreeRow-1%, as the first free row is the row right after the last non-empty row.

     

    To your other question, yes, you should be able to use date and time values in comparisons. Depending on whether Excel interprets it as a valid date and time, you may either be able to do the comparison right after you read data from Excel, or (if it doesn't interpret it as a date and stores it as a text), you may need to use Convert text to date time on it first.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • mertyuksel Profile Picture
    4 on at

    I use Excel when creating flow in Automate tool.  My question about Power Automate Tool.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do you mean a cloud flow in Power Automate? If that's the case, you're in the wrong forums, because this forum is intended for Desktop flows using Power Automate Desktop. That is why we recommended using actions that are specific to Power Automate Desktop.

     

    The correct forum to post cloud flow related questions is here: https://powerusers.microsoft.com/t5/Building-Flows/bd-p/BuildingFlows 

     

    See this article on how to get the last row in an Excel table using Power Automate cloud flows: https://www.powertechtips.com/get-last-excel-row-power-automate/

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • johnnyongesa Profile Picture
    8 on at

    First free row does not work when you have an empty row in between populated rows

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard