To merge Excel files with Power Automate Desktop, list the input workbooks, read each source into a data table without its header row, and append the rows to a new workbook. Keep the result outside the input folder, open sources read-only, and compare the final row count and totals before using the file.
This walkthrough is a documentation-based starter flow with manual review checkpoints—not a production-ready import service. Its sample arithmetic has been checked locally, but the flow has not been executed in a Windows/Excel session for this article.
Before you build: confirm this is the right workflow
Use a Windows environment that meets Power Automate’s desktop requirements, with desktop Excel available for the Excel actions. This is not a cloud flow, an online Excel connector, or a macOS recipe. Check your organization’s installation, licensing, and data permissions; unattended scheduling is outside this guide.
All source files must have the same worksheet layout and column order. The starter flow does not map columns, deduplicate records, validate arbitrary workbooks, or recover from every error. First build it with the two fictional files below, not a folder of business originals.
If you only need a refreshable table from a folder, also consider Excel’s Power Query folder connector. This article is for readers who specifically need a desktop flow using the documented %Variable.Property% expression style. If your flow rejects that style, stop and check its expression mode rather than mixing syntaxes.
Create two tiny input workbooks
Create these folders and save the source workbooks with only one worksheet named Data:
C:\AIMetaDesk\MergeDemo\Input\01-north.xlsx
C:\AIMetaDesk\MergeDemo\Input\02-south.xlsx
C:\AIMetaDesk\MergeDemo\Output\
In 01-north.xlsx, enter this table in A1:D3:
| Date | Region | Item | Amount |
|---|---|---|---|
| 2026-11-02 | North | Notebook | 120 |
| 2026-11-03 | North | Pen | 80 |
In 02-south.xlsx, enter this table in A1:D2:
| Date | Region | Item | Amount |
|---|---|---|---|
| 2026-11-04 | South | Folder | 50 |
These are fictional practice values, not revenue evidence. Enter Amount as numbers. For this exact comparison exercise, format the Date cells as Text before entering the ISO-style strings; date conversion is not being tested. Do not add totals, blank separator rows, or formatting far below the data. Save and close both workbooks before listing the input files.
Expected result: one header row, three data rows, and SUM(D2:D4) equal to 250. Those values are calculated from this sample, not observed product output.
Build the desktop flow
Use the English action names below to find each action. Microsoft Learn documents these Excel actions and their parameters; labels can vary by installed language or version.
1. List only the source files
Add Get files in folder with Folder set to C:\AIMetaDesk\MergeDemo\Input, File filter *.xlsx, subfolders off, and sorting by Name in ascending order. Keep the output list as Files.
Inspect the list in the variable viewer. For this exercise it must contain exactly the two source paths. If it contains no files, a temporary lock file beginning with ~$, or an unrelated workbook, stop and fix the input set. Do not continue by ignoring unexpected files. Folder-action reference.
2. Create the result and write its header once
Use Launch Excel to create a blank workbook. Rename the produced instance variable to ResultExcel and keep the window visible while building.
Use four Write to Excel worksheet actions against %ResultExcel%: write Date to A1, Region to B1, Item to C1, and Amount to D1. Keep these actions outside the loop.
3. Loop through the input list
Add For each over %Files%, naming the current item CurrentFile. Inside it, launch the workbook at %CurrentFile.FullName%, turn on the read-only option, and name that instance SourceExcel. Microsoft documents list iteration and the file-path property.
Set the source’s active worksheet explicitly to Data using Set active Excel worksheet; do not depend on whichever sheet happened to be saved as active. Pause here and confirm the visible header is Date, Region, Item, Amount. A missing sheet or changed header is a stop-and-review condition in this starter flow, not a reason to append anyway.
4. Read data without copying the header as a row
Read all available values from %SourceExcel% into ExcelData. Use typed values and enable the setting that treats the first line as column names. This removes that line from the data rows. The reference says the typed/plain/formatted-value selector was introduced in PAD 2.58; older builds use a different text-value toggle, so confirm the installed version before copying the settings.
For the first input, inspect the table: there should be two data rows and four columns in the expected order. The second input should have one row. This manual inspection is part of the exercise; automatic schema enforcement has not been implemented here.
5. Append, then close the source
Inside a condition that %ExcelData.RowsCount% is greater than zero, get the result workbook’s first free row using Get first free column/row from Excel worksheet. Write %ExcelData% to %ResultExcel%, column A, row %FirstFreeRow%, with writing set to a specified cell. Retrieve the row again for each file rather than fixing it at row 2.
After the condition, close %SourceExcel% without saving. Keep that close action inside the loop so each source instance is handled. The data-type reference documents the row-count property.
6. Save a separate review file
After the loop, save %ResultExcel% as C:\AIMetaDesk\MergeDemo\Output\combined-review-01.xlsx in .xlsx format, then close the result instance. For a second test, choose an unused name such as combined-review-02.xlsx; do not rely on an untested overwrite behavior.
If an action fails, stop, inspect which instances are still open, and close the test workbooks without saving unintended changes. Do not treat a partly built result as complete or add a skip-all-errors rule.
Accept or reject the result
Check the small sample first
Open the saved result and verify all of the following:
- Exactly four used rows: header plus three records.
- Header appears once and column order remains Date, Region, Item, Amount.
- North has two records and South has one; all three Item values remain intact.
- Amount cells are numeric and
SUM(D2:D4)is 250. - Source data and source filenames have not changed.
Any failed condition makes the result review required, even if the flow finishes without an error. A correct total alone does not prove that the right records were imported.
Diagnose the first failing check
| Symptom | Inspect first |
|---|---|
| Header repeats | Whether the first input line was treated as column names, and whether output-header writes sit outside the loop |
| Earlier rows disappear | Whether the append row was recalculated for each file and whether the write uses ResultExcel |
| Too many rows on the next run | Input list: it must exclude previous outputs and unrelated workbooks |
| Values land in the wrong columns | Source schema and active sheet; stop rather than guessing a mapping |
| Workbook cannot open | Actual path, Excel availability, file lock, permissions, and whether it opens manually |
Before adapting this flow to real work, add automatic schema checks, file-level logs, explicit duplicate rules, failure handling, and an output-approval step. Never delete originals as part of this starter exercise. There is no throughput or time-saving claim here.
Related guide
If your inputs start as CSV exports, preserve leading zeros and long IDs before loading them into Excel. Check the source values before using those workbooks in a merge.
Sources and validation scope
Microsoft Learn pages checked on October 22, 2026: Excel actions, folder actions, loops, variable properties, and desktop requirements.
This English adaptation was prepared with AI assistance from AI Meta Desk’s Korean guide. Action names and relevant documented parameters were checked, and the sample’s row counts and arithmetic were reviewed. A live desktop-flow run, licensing check for your tenant, and production reliability test were not performed. The sample tables are inline; this article does not offer a tested English download package.
2 thoughts on “Merge Excel Files with Power Automate Desktop: One Header, Checked Rows”
Comments are closed.