Published
Merge and compare Excel (.xlsx) and CSV tables with AI: no manual VLOOKUP
When you need to merge Excel tables or compare two Excel files that have mismatched headers, trailing spaces in SKUs, and thousands of rows, manual VLOOKUP formulas quickly break with #N/A errors. In Twelver, upload 2 to 10 .xlsx, .xls, or .csv files and let an isolated Python 3.12 sandbox (pandas, openpyxl, up to 10 files / 120s / 640 MB RAM) join rows by key column (SKU, order ID, tax ID, email), drop duplicates, isolate mismatches, and export a clean multi-sheet .xlsx with live =SUM and =SUMIFS formulas.
Merge or compare your spreadsheets right here
Attach 2 to 10 .xlsx, .xls, or .csv files below and specify your join or comparison rule — the Python sandbox runs the exact merge and prepares a downloadable workbook.
Try it right in the Twelver chat
Upload 2–10 .xlsx or .csv files and name the key column to merge or compare
Core workflows: joining and reconciling tables without VLOOKUP
- Left, inner, or outer joins without VLOOKUP. Pull unit costs, warehouse stock, categories, or payment statuses from one file into another by SKU, order ID, tax ID, or email — without reordering columns or worrying about broken range references.
- Reconcile two versions of a price list or statement. Compare old vs. new vendor rates, orders vs. bank settlements, or two budget revisions: Python detects added and removed rows, computes currency and percentage deltas, and isolates discrepancies on an Exceptions tab.
- Stack monthly or regional exports into one dataset. Upload up to 10 period files at once; the sandbox aligns differing column names and order, tags each row with its period and source file, and builds a consolidated summary.
- Normalize messy join keys automatically. Most
#N/Aerrors come from hidden spaces, mixed letter case, stripped leading zeros in SKUs or tax IDs, or inconsistent hyphens.pandasstandardizes join keys before merging while keeping original values available for audit.
| Dimension | Manual VLOOKUP / Power Query | Ordinary text-only chatbot | Twelver Python sandbox |
|---|---|---|---|
| Multi-file handling | Requires manual links, folder queries, and refresh setup | Truncates long tables and silently drops rows from context | Processes up to 10 files (.xlsx, .xls, .csv) in a single run |
| Join & total accuracy | Exact when configured, but VLOOKUP breaks easily with #N/A | Guesses totals and misses key mismatches across large tables | Exact pandas joins with printed row counts and control totals |
| Messy key cleanup | Needs helper columns (TRIM, TEXT, UPPER) across every sheet | Fixes keys inconsistently on longer lists | Normalizes spaces, case, and leading zeros uniformly in code |
| Deliverable output | Real workbook, but formulas require ongoing manual maintenance | Flat Markdown text in chat — no multi-tab file to download | Downloadable .xlsx: clean data, live =SUM/=SUMIFS summary, Exceptions tab |
| Turnaround for ad-hoc checks | 15–40 minutes to wire up, debug #N/A rows, and format totals | Fast reply, but every number must be rechecked manually | 1–2 minutes to upload, compute in Python, and download the workbook |
Worked example: reconciling two supplier price lists with warehouse stock
Consider a typical procurement check: you have last quarter’s supplier rate card (price_old.xlsx), the updated price list (price_new.xlsx), and a current warehouse stock export (stock.csv). The price lists contain uppercase SKUs with trailing spaces, while the warehouse export stores numeric SKUs with leading zeros. Reconciling all three files takes five steps:
- Upload all three files in one chat. Name the SKU column as the join key and ask to flag any price increase above 10%.
- Normalize keys before joining. The Python script trims whitespace, standardizes letter case, and preserves leading zeros as text so valid matches are not dropped.
- Run exact joins in pandas. The new price list is matched against the old one and enriched with warehouse quantities, computing price deltas (absolute and percent) and inventory value.
- Isolate exceptions on a dedicated tab. Discontinued SKUs, newly added items with zero stock, and price jumps over 10% are copied to an Exceptions tab with a clear reason label.
- Download the multi-sheet .xlsx workbook. You get three ready-to-share tabs: Reconciled Prices, Summary with live
=SUMand=SUMIFSformulas by category, and Exceptions for supplier follow-up.
Ready-to-use merge and comparison prompts
Open any draft below, attach 2 to 10 .xlsx, .xls, or .csv files, and press Send in chat.
1. Merge two files by ID/SKU without VLOOKUP and remove duplicates
Merge the two attached spreadsheets (.xlsx or .csv) by key column (SKU, order ID, tax ID, or email). Normalize keys first by trimming spaces, unifying case, and preserving leading zeros. Drop exact duplicates, perform the join, verify control totals, and return a downloadable .xlsx workbook with tabs: Merged Data, Summary using live =SUM and =SUMIFS formulas, and Unmatched Keys.
Open draft in chat2. Compare two price lists or orders vs. payments with an Exceptions tab
Compare the two attached Excel or CSV files — for example, an old vs. new supplier price list or orders vs. payments. Identify added and removed rows, calculate price or amount deltas in currency and percent, flag mismatches, and isolate all unmatched rows on a separate Exceptions tab. Return a downloadable .xlsx with a Summary tab using live =SUM and =SUMIFS formulas.
Open draft in chat3. Stack monthly exports into one normalized master workbook
Combine the attached monthly .xlsx or .csv exports into one normalized master table. Standardize column names, dates (YYYY-MM-DD), and numeric formats, add period and source-file columns, deduplicate overlapping rows, and return a downloadable .xlsx with Master Data and Period Summary tabs driven by live =SUM and =SUMIFS formulas.
Open draft in chatSandbox limits and verifying control totals
.csv first. On financial, payroll, or inventory reconciliations, always verify the control totals and row counts on the Exceptions tab before sharing or filing.What to read next
- AI for Excel — custom formulas, filling existing workbook templates, and automated spreadsheet calculations.
- AI for spreadsheets and tables — creating tables from scratch from briefs or PDFs, cleaning exports, and importing into Excel or Google Sheets.
- AI for accountants — reconciling trial balances, bank statements, and counterparty ledgers.
- Compare two Word documents — spotting redlines and clause changes between two contract versions.
- All document analysis chapters.
Frequently asked questions
How can AI merge two Excel tables without VLOOKUP?
How do I compare two Excel files and highlight differences?
What if the key columns have extra spaces, different casing, or leading zeros?
How many files and rows can be merged in one run?
Merge multiple spreadsheets or compare two Excel files in the Twelver chat — attach up to 10 .xlsx, .xls, or .csv files, or open one of the draft prompts above.
Try it yourself
Everything in this guide runs inside Twelver
One chat for text, images, video, music and voice — no separate services or subscriptions.
Open Twelver chat