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 / PAD. Extracting data f...
Power Automate
Unanswered

PAD. Extracting data from one Excel file into multiple Excel forms.

(0) ShareShare
ReportReport
Posted on by 3

Hello,

 

I am trying to extract data from forms filled from one Excel file into several Excel files with a template of the form in Power Automate Desktop.

 

So far I have done this:

1. Start the Excel file that I want data extracted from. %ExcelInstance%

2. Start Excel file with template I want to use. %ExcelTemplate%

3. Copy cells from %ExcelTemplate%

4. Read from Excel sheet and store into %ExcelData%

5. "For each" loop with %CurrentItem% in %ExcelData%

In Loop:

6. Start Excel, to create an empty Excel file. %ExcelTarget%

7. Paste Template into empty Excel file.

8. Write to Excel using %CurrentItem% as value

 

With this it creates a new Excel file for each row I am extracting, pasting in the template I want to use and writing in the data. Unfortunately it writes it in one row, while I want it to write the data down column B instead so that it fits the template. Is there a way to make it write the row down a column instead? 

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    First of all: why don't you just fill in the template, then Save As it somewhere once you've written the data? Or, copy the template into a new file, then write the data. Your method seems a bit quirky...

     

    Now for your problem:

    Datarows (which your %CurrentItem% is) are always written horizontally into the sheet, and this behavior cannot be changed. There is also no "rotate variable" to quickly change the datarow into a list (which are written vertically)

    So you have two options:

    1. Using a loop on your %ExcelData% write into Excel, using a row counter variable to shift the write-to row downwards for each loop round.
    2. Create a list variable by looping your %ExcelData% then write this list to Excel.
  • Emil_NOR Profile Picture
    3 on at

    Hello Henrik, thanks for your reply.

     

    The forms are originally filled in an app and the results are all collected into an excel spreadsheet, with one row per form. This is fine as a master document, but clunky to read through when going through specific forms. This is why I want to extract each row of data into a template so that I get one form per file.

     

    I am still very new to PAD, how would I go about doing these solutions? 

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    I'm still trying to understand your challenge then. Are you struggling with your %ExcelData% containing an empty column?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard