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 Automate
Unanswered

Sort an excel table

(0) ShareShare
ReportReport
Posted on by 13

I have a simple flow that takes information from a form and adds it to an excel table, I would like the flow to proceed and sort the excel table by the date column, newest to oldest, before saving it.

I thought this would be quite straightforward but having spent the afternoon trying apparently it is not?

 

I have used:

   When a new response is submitted

   Get response details

   Add a row into a table

 

Can anyone enlighten me what next and how please?

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Kevor 

     

    Office Scripts would be the best bet.  Use the office script recording tool in Excel Online, record the actions you describe, give the script a name and call the office script action on the file you mention after you have inserted the row, if you really wanted to be efficient, insert the row and order the rows with an office script.  I have a few demos on my YT but the Microsoft docs are very good for this too with some good examples. Introduction to Office Scripts in Excel (microsoft.com)

     

    Please consider accepting my answer as a solution if it helps to solve your problem.

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

  • Kevor Profile Picture
    13 on at

    Thanks for your reply, however whenever I try to record a script in Excel online I get the error "We're unable to save your script. An unexpected error occurred while generating and saving your script....."

     

    I was able to record a macro in the desktop app of Excel but I can't seem to reference it within power automate.

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