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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automate desktop excel...
Power Automate
Answered

Automate desktop excel using PA desktop

(0) ShareShare
ReportReport
Posted on by 3

Hello everyone,

I am new in using Power automate and I started my own project to practice what I've learned and I got stuck in the beginning. Can you help me to sort columns by the date?
What is my goal:
- read excel file
- sort the expenses by the month
- create new sheet with result columns sorted one next to each other by the month
(I attached sample of my excel data)

sedaaver_0-1686046174512.png


Problem is that I wanted to find a solution also when the excel do not have a headers.
I shouldn't be that difficult, right?

Thank you in advance!
Veroni

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @sedaaver,

    Do you want to sort Expense column based on month in your excel file?

     


    @sedaaver wrote:


    Problem is that I wanted to find a solution also when the excel do not have a headers.
    I shouldn't be that difficult, right?


    I am afraid that it is not possible in Power Automate, we must provide the column name when we sort columns. 

    The OData orderby expects the columns and their sorting order.

    e.g. descending by month
    DateTime desc

     

    As a workaound, you could write a script in your excel file and then use the Run Script action. 

    Here is a similar thread for your reference:

    Sort excel table using power automate - Power Platform Community (microsoft.com)

     

    To generate a new file with the sorted result, you just need to:

    vqiaqimsft_0-1686108744664.pngvqiaqimsft_1-1686108769149.png

     

  • sedaaver Profile Picture
    3 on at

    Thank you so much, I will give it a try 🙂
    Best regards,

    Veroni

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard