Join two CSV files on a shared column
Pull columns from one file into another by matching an ID, SKU or email, the way VLOOKUP does, but with no formulas to drag down. Rows with no match stay in the result, clearly labelled.
Free. No sign-up. Opens with sample orders and inventory so you can see it work first.
How it works
-
Start with the file to keep whole
The Open file step holds your main file, here a list of open orders. Every row in it stays in the result.
-
Look up the second file
The Join step loads the lookup file and matches on the column both share,
skuin the sample. A Left Join brings across the columns you tick and leaves blanks where nothing matched, instead of dropping the row. -
Label the matches
A Transform compares values from the two files. In the sample, each order is In stock, Short or SKU not in inventory, and anything odd is flagged: Check quantity when a value isn't a number, Duplicate SKU in inventory when the lookup file lists a SKU twice.
Why CSV Notebook
-
Private
Runs in your browser. Your files are never uploaded, so nobody else can see them.
-
Repeatable
No AI and no guesswork: the same steps on the same file give the same result every time. Your steps are saved as a notebook in your browser. Next month, open it and drop in the new file: if a column was renamed, the step that needs it stops with an error that names it, and Pro can map it for you.
-
Auditable
Every transformation step is SQL you can read, so you can check exactly what happened to your data. Each step also shows a preview of its output and a summary of what it did, so you can see the result before you export.
Worked example
| order_number | sku | quantity_ordered |
|---|---|---|
| 1001 | T-RED-M | 1 |
| 1002 | MUG-WHT | 2 |
| 1003 | T-BLK-L | 1 |
| 1004 | MUG-WHT | 1 |
| 1005 | T-RED-M | 3 |
| 1006 | HAT-GRN | 1 |
| 1007 | T-BLK-L | 12 |
| order_number | sku | quantity_ordered | inventory_stock | status |
|---|---|---|---|---|
| 1001 | T-RED-M | 1 | 50 | In stock |
| 1002 | MUG-WHT | 2 | 1 | Short |
| 1003 | T-BLK-L | 1 | 10 | In stock |
| 1004 | MUG-WHT | 1 | 1 | In stock |
| 1005 | T-RED-M | 3 | 50 | In stock |
| 1006 | HAT-GRN | 1 | SKU not in inventory | |
| 1007 | T-BLK-L | 12 | 10 | Short |
Order 1006 asks for HAT-GRN, which isn't in the inventory file. VLOOKUP would show #N/A, and an inner join would drop the order without saying so. Here it stays, with a status that says why. Order 1007 wants 12 black T-shirts and only 10 are in stock.
Try a lookup on sample data
Orders on one side, inventory on the other, joined on SKU with a status for every order. Replace either file with your own when you're ready.
Open in CSV NotebookFrequently asked questions
How is this different from VLOOKUP?
VLOOKUP returns one column per formula, needs the lookup column on the left, and breaks when someone inserts a column. A Join brings across as many columns as you tick and matches by column name, so inserting a column doesn't break it, and the same step runs again on next month's files.
What if the lookup file has the same key twice?
Then each matching row comes through, so that order appears twice in the result. VLOOKUP would silently use the first match instead. The sample labels those rows Duplicate SKU in inventory so you can see them. Fix the lookup file, or remove its duplicates before joining. Rows with a blank key never match anything.
Inner, left or full join: which do I need?
Left keeps every row of your main file, matched or not, which is what the sample uses. Inner keeps only rows found in both files. Full also keeps rows that exist only in the second file, which is how you compare two versions of a file. You can switch in the Join step.
Do the two key columns need the same name?
No. You pick the column for each file separately. The values do have to match exactly, including capitals and spaces, so add a Format step to trim or lowercase the key first if the files disagree.
Are numbers compared as numbers?
Only if you ask. CSV Notebook keeps every value as the exact text from the file, and text comparison puts 9 after 10. The sample wraps both columns in csvn_num(...), which turns plain numbers into numbers and anything else (a blank, abc, 1,000) into nothing, so those rows get Check quantity instead of a wrong answer. SQL's own CAST would quietly treat them as 0.