How to merge two CSV or Excel files
Merging means one of two things. Either the files have the same columns and you want one long table, or they share a key and you want columns from one added to the other. Both take a minute, without formulas.
Stack files with the same columns
Open NoEgress and drop all the files at once, for example twelve monthly exports. On the Start page, click Combine files and choose Append rows.
Columns are matched by name, not position, so a file with its columns in a different order still lines up. A column missing from one file is left blank for its rows.
Look up columns from another file
This is the VLOOKUP case: orders in one file, customer details in another. Click Combine files, choose Join on key, and pick the column both files share, such as customer_id.
Choose Left to keep every row of the first file, with blanks where there is no match, which is what VLOOKUP does. Choose Inner to keep only rows found in both.
Find the rows that did not match
After a lookup, check what failed to match before you trust the result. A missing customer, or an ID with a stray space, silently leaves blanks.
SELECT o.*
FROM orders o
LEFT JOIN customers c
ON o.customer_id = c.customer_id
WHERE c.customer_id IS NULL;Watch for repeated keys
If the lookup file has the same key twice, every matching row is duplicated in the result. VLOOKUP quietly takes the first match; a join returns both. Remove duplicates on the key in the lookup file first.
Frequently asked
Is this faster than VLOOKUP?
Usually, and it doesn’t slow the file down afterwards. The join runs once in DuckDB, so there are no formulas to fill down or recalculate.
Do the files have to be the same format?
No. You can merge a CSV with an Excel sheet, a JSON file or a Parquet file. Each one becomes a table once it is open.
How do I see what changed between two versions instead?
Use Compare two files on the Start page, or read the guide on comparing two CSV files.
More guides
How to query a CSV file with SQL
How to open large CSV files Excel can't handle
How to run SQL on an Excel spreadsheet
How to analyze confidential data without uploading it
How to compare two CSV files and find what changed
Data quality checks to run before trusting a dataset
How to query a JSON file with SQL
DuckDB online: run DuckDB in your browser with nothing to install
How to ask a local AI model about your CSV or Excel data
How to remove duplicate rows from a CSV or Excel file
How to split a CSV or Excel file into multiple files by column