Intro The finance department of Alfa Juliett needs your help combining multiple Excel files into one. What you will learn Primarily: Combine .xlsx or .csv files Advanced Excel work Secondarily: Work with files and folders Client Name Alfa Juliett (finance department) Process Name CombineExcel Description The finance department of Alfa Juliett wants a Power Automate for desktop flow, that:Download the example files hereDynamically can combine multiple Excel files into oneCan work with both .xlsx and .csv files Hints Create an Input variable with the path to the folder where your files are%FilePath%Get files in folderRetrieve all files from your chosen folderFile filter: Only look at e.g., .xlsx filesYou can choose to include subfoldersGet current date and timeTo use it as dynamic folder labelingConvert datetime to textCreate folderTo move the files into when done%FilePath%\%FormattedDateTime%Launch ExcelCreate a new Excel instance for our final Excel sheet (with our merged sheets)%ExcelInstanceResult%For eachNow we will iterate through each of our Excel filesCurrentFile in FilesGet first free column/row from Excel worksheetRefer to the ExcelResult sheet, we created to store our results inAt the first for each iteration, the result Excel sheet is blank, but as it gets filled up, we need to know where to start writingLaunch ExcelNow it’s time to start opening each of the Excel sheets we want to merge%ExcelInstanceCurrent%Read from Excel worksheetPick All available values from worksheet in the drop-downRead all the available values from the CurrentFile%ExcelDataCurrent%Write to Excel worksheetWrite the %ExcelDataCurrent% to the %ExcelInstanceResult%Write mode: On specified cellColumn: ARow: %FirstFreeRowResult%Now we write below our current dataClose ExcelClose the CurrentFileOutside the For each, place another close Excel, that closes the result Excel sheet and choose to:Save document asExcel Workbook (.xlsx)%FilePath%\Result\%FormattedDateTime%Get the first free column and first free row of the CurrentFile%ExcenInstanceCurrent%AdvancedFinally we need to add headers to the resultBefore the For each place a Set variable%FirstRun% = YesIn the For each after the Launch Excel place a Get first free column/row from Excel worksheet, that gets the first free colum/row from the CurrentFileRight after an If, where %FirstRun% = YesCopy cells from Excel worksheetStart column: AStart row: 1End column: %FirstFreeColumnCurrent – 1%End row: 1Paste cells to Excel worksheetPaste mode: On specified cellColumn: ARow: 1Set variable:%FirstRun% = No