Merge and compare Excel (.xlsx) and CSV tables with AI: no manual VLOOKUPAI for working with documents: analyze PDF, Word and Excel files

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.

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/A errors come from hidden spaces, mixed letter case, stripped leading zeros in SKUs or tax IDs, or inconsistent hyphens. pandas standardizes join keys before merging while keeping original values available for audit.
DimensionManual VLOOKUP / Power QueryOrdinary text-only chatbotTwelver Python sandbox
Multi-file handlingRequires manual links, folder queries, and refresh setupTruncates long tables and silently drops rows from contextProcesses up to 10 files (.xlsx, .xls, .csv) in a single run
Join & total accuracyExact when configured, but VLOOKUP breaks easily with #N/AGuesses totals and misses key mismatches across large tablesExact pandas joins with printed row counts and control totals
Messy key cleanupNeeds helper columns (TRIM, TEXT, UPPER) across every sheetFixes keys inconsistently on longer listsNormalizes spaces, case, and leading zeros uniformly in code
Deliverable outputReal workbook, but formulas require ongoing manual maintenanceFlat Markdown text in chat — no multi-tab file to downloadDownloadable .xlsx: clean data, live =SUM/=SUMIFS summary, Exceptions tab
Turnaround for ad-hoc checks15–40 minutes to wire up, debug #N/A rows, and format totalsFast reply, but every number must be rechecked manually1–2 minutes to upload, compute in Python, and download the workbook
Manual VLOOKUP/Power Query setup vs. a text-only chatbot vs. Twelver's isolated Python sandbox for multi-table merges and reconciliations.

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:

  1. Upload all three files in one chat. Name the SKU column as the join key and ask to flag any price increase above 10%.
  2. Normalize keys before joining. The Python script trims whitespace, standardizes letter case, and preserves leading zeros as text so valid matches are not dropped.
  3. 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.
  4. 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.
  5. Download the multi-sheet .xlsx workbook. You get three ready-to-share tabs: Reconciled Prices, Summary with live =SUM and =SUMIFS formulas 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 chat

2. 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 chat

3. 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 chat

Sandbox limits and verifying control totals

Each Python 3.12 sandbox run handles up to 10 input files within 120 seconds and 640 MB of RAM. For gigabyte-scale database dumps or millions of raw rows, filter the relevant slice to .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

Frequently asked questions

How can AI merge two Excel tables without VLOOKUP?
Upload both files (.xlsx, .xls, or .csv) to Twelver and name the shared key column — such as SKU, order ID, tax ID, or email. The isolated Python 3.12 sandbox runs an exact pandas join, removes duplicates, and exports a clean .xlsx with live =SUM and =SUMIFS formulas.
How do I compare two Excel files and highlight differences?
Attach both versions of the spreadsheet and ask to reconcile them by key: list added and removed rows, calculate price or amount deltas, and place unmatched records on a separate Exceptions tab inside a downloadable .xlsx file.
What if the key columns have extra spaces, different casing, or leading zeros?
Mention key normalization in your prompt or start from the draft above. Before joining, the Python script trims whitespace, standardizes letter case, and preserves leading zeros as text — eliminating the most common causes of #N/A mismatches.
How many files and rows can be merged in one run?
A single sandbox run supports up to 10 input files within 640 MB of RAM and 120 seconds of execution time. That covers most CRM, ERP, bank, and marketplace exports; for multi-gigabyte dumps, filter a smaller period to CSV first.

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
Rate your experience