Office tasks
Merge several Excel files into one sheet with Duaer
In Duaer, upload several xlsx files, read every row, tag each with its source file, remove duplicates, and export one combined sheet. No formulas and no AI credits.
Merge Excel files in Duaer
- Add Form Trigger with one File field labelled Sheets, Multiple Files on, Accepted File Types .xlsx,.xls.
- Add Code, rename it Split files, and paste the code below for one item per file.
- Add Extract from File with Operation Extract From XLSX. Keep the defaults when headers are in row one; set Sheet Name under Options to read one sheet. Each row becomes an item.
- Add Edit Fields, turn on Include Other Input Fields, and add source with {{ $('Split files').item.json.fileName }}.
- To drop duplicates, add Remove Duplicates and compare on a key column such as order number.
- Add Convert to File with Operation Convert to XLSX for one combined sheet.
const out = [];
for (const item of $input.all()) {
for (const key of Object.keys(item.binary ?? {})) {
out.push({
json: { ...item.json, fileName: item.binary[key].fileName },
binary: { data: item.binary[key] },
});
}
}
return out;When column names differ
Duaer merges by column name. The same column named Amount in one file and Total in another becomes two columns. Rename them to one name in Edit Fields before exporting.
Questions
Does merging Excel files in Duaer cost credits?
No AI credits. Reading, de-duplicating, and exporting in Duaer do not call a model.
Can Duaer merge a mix of CSV and Excel files?
Yes, read them separately: in Duaer, split by extension with Switch, use Extract From CSV and Extract From XLSX, then join with Merge.
In this section
Read a file with Extract from File in Duaer
In Duaer, Extract from File reads JSON items or text from a file on binary. The default Operation is Extract From CSV.
NodesWrite a file with Convert to File in Duaer
In Duaer, Convert to File turns the current JSON items into a file on binary. The default Operation is Convert to CSV.
NodesRemove duplicate items in Duaer
In Duaer, Remove Duplicates drops items that repeat in the current input. It can also drop values already seen in earlier executions.
Office tasksExtract PDF invoices into an Excel sheet with Duaer
In Duaer, upload a batch of PDF invoices, read their text, let the invoice extraction employee return vendor, amount, tax ID, and date, then export one Excel sheet.