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

Compiling Excel Data

(0) ShareShare
ReportReport
Posted on by 39

I wish to create a workflow that would open all the files located in a subfolder, read the data from said excel files, and write down the extracted data in the new worksheet that corresponds correctly to the headers. (as some worksheets have their columns interchanged, etc.) 

 

Currently, I have created the following workflow for accomplishing the task:- 

aSagCoder_0-1707305453639.png

aSagCoder_1-1707305491868.png

aSagCoder_2-1707305518875.png

aSagCoder_3-1707305559449.png

 

However, I keep encountering certain issues in this flow - 

 

1. I am unable to identify a way to dynamically read and write values that correspond with their respective headers. 

2. When executed, the 'Write to Excel Worksheet' action seems to behave in a peculiar manner. It does write in the row immediately below the headers' row, but it also seems to overwrite the data previously written, as given below - 

aSagCoder_4-1707306839956.png

aSagCoder_5-1707306895794.png

 

3. Additionally, some values are being written in the wrong header and I wish to avoid that from happening whenever a new file is read for compilation. 

 

Do suggest me some ways to handle these anomalies occurring in my project. I'd highly appreciate some insight into what I am doing wrong here.  

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @aSagCoder 

    1. Use Run .net action to write the data and interchange the columns. and please explain this point clearly so that i can give a try

    2.the data is over writing because you need to append the row values so that 

    use get free row or column activity and give freerow as input to the row property in Write to excel worksheet property as shown below

    UshaJyothi20_0-1707368106065.png

    3.Fore this please explain your scenario clearly about your input and required output

     

    Hope this helps,

    Usha.

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
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard