Consolidate Excel Reports with DeepSeek Harness

Three department expense sheets, 1,800 rows, one prompt: DeepSeek Harness filters, calculates, sorts and merges them into a reviewed summary workbook — no plugin, no formulas, no VBA.

Last updated: 2026-09-20

Summary workbook opened in Excel after DeepSeek Harness consolidated three expense sheets into a detail sheet and a stats dashboard
The final workbook: detail rows merged from three department sheets, plus the dashboard.

Finance work has a classic shape: several sheets of the same kind of records, a pile of conditions for what may be merged, a few calculations, a sort order — and a deadline. This guide walks through a real recorded case in which three department expense sheets (marketing, teaching-research, R&D) with roughly 1,800 rows become one summary workbook with a detail sheet and a stats dashboard.

The lesson up front: you don't need an Excel plugin or a single formula. What moves the quality needle is writing your business rules down before you talk to the agent — the harness reads your files and writes the code itself.

TL;DR

  • 1,800 raw rows across three sheets in — 600 verified rows out, merged into a workbook with a detail sheet and a stats dashboard.
  • No Excel plugin required: standard mode is enough, because the agent reads the sheets and writes the merge code itself.
  • The quality lever is your rules list — filters, field mapping, calculations, sort/dedup and acceptance criteria, written down before the prompt.

From messy sheets to a reviewed summary

  1. 1

    Write your business rules down first

    Before touching the AI, the course handout spells out the merge rules as a checklist: which rows qualify (document date, amount, invoice status, approval status, payment status — every condition must hold), and anything that fails stays out of the summary. If you can't write this list, the agent can't get the merge right either.

    Course handout listing the Excel merge filter conditions: document date, amount, invoice, approval and payment status must all qualify
    Rules first: the handout defines which rows may enter the summary.Watch at 1:20
  2. 2

    Map every summary field to its source

    Next the handout maps each column of the summary table back to the column it comes from in the source sheets, adds the calculation rules for amounts, and defines how ties are sorted and duplicates dropped. Ambiguity here is where merges go wrong, so spell out every field.

    Handout section mapping each summary-table field to its source column, with calculation and dedup rules for the merge
    Field mapping: every summary column traces back to a source column.Watch at 1:40
  3. 3

    Stage the source files and the template

    Three expense sheets plus a summary template sit in one folder. The template already has two sheets — detail rows and a stats dashboard — so the agent is given the shape of the answer, not just the raw data. Put the folder somewhere the harness workspace can reach.

    DeepSeek Harness web UI file panel listing the three department expense sheets and the summary template staged in the workspace
    Files staged: three source sheets plus the summary template.Watch at 3:04
  4. 4

    Know what the raw data looks like

    Each source sheet holds around 600 expense rows: document numbers, dates, departments, applicants, amounts and a handful of status columns — 1,800 rows in total. Far past what you'd want to filter by hand, and routine work for the agent.

    Raw expense sheet in Excel with hundreds of rows of document numbers, dates, departments and amounts before the merge
    One of the three source sheets — around 600 rows each.Watch at 3:20
  5. 5

    Show it the target: the summary template

    The template fixes the columns of the merged output and the layout of the dashboard sheet. Pointing the agent at a concrete template turns a vague 'merge these files' into a checkable specification — this one step does more for accuracy than any clever wording.

    Summary workbook template with a blue header showing the detail columns and the stats dashboard sheet the agent must fill
    The template defines the output: a detail sheet and a dashboard.Watch at 3:44
  6. 6

    Write one complete prompt

    The handout's final prompt bundles everything in order: the background, the file paths, the row counts, the field definitions, the filter conditions, the field mapping, the calculation rules, the sort and dedup rules, the two-sheet requirement, the template reference, the acceptance criteria, and exactly where the output file should be written.

    Course handout showing the complete consolidation prompt with background, file paths, filter conditions and acceptance criteria ready to copy
    One prompt carries the whole spec — copy it as-is.Watch at 5:00
  7. 7

    Paste it into a fresh session

    Open a new conversation in the same workspace, paste the prompt, press enter. The agent explores the workspace, reads all three source sheets and drafts its plan — nothing to upload, nothing to configure.

    Fresh DeepSeek Harness session with the consolidation prompt pasted into the input box, ready to send
    New session, same workspace, paste, enter.Watch at 5:15
  8. 8

    Long task? Play a round while it works

    A merge this size takes a while. The course author keeps a mini-games plugin installed and plays the dinosaur runner while waiting. One thing to expect: because the finished workbook goes to your Downloads folder — outside the workspace — the agent pauses and asks for write permission first. Approve once and it continues.

    Dinosaur mini-game running in a corner panel of DeepSeek Harness while the agent consolidates the Excel sheets in the background
    Long task — the course author plays the dino game while waiting.Watch at 5:30
  9. 9

    Read the result summary

    The agent closes with a receipt rather than silence: 1,800 raw rows across three sheets, 600 rows extracted into the summary after the filters, per-department and per-category totals, and notes on any rows that failed validation.

    Result summary in DeepSeek Harness showing 1,800 rows processed and 600 rows extracted into the Excel summary with per-department totals
    The receipt: rows in, rows out, per-department totals.Watch at 6:10
  10. 10

    Check the acceptance notes

    The report ends with the acceptance checklist from the prompt re-checked against the output — every rule passing. The finished workbook opens with the detail sheet filled and the stats dashboard populated, ready for review.

    Acceptance notes in DeepSeek Harness confirming every consolidation rule passed and the summary file reached the target folder
    Acceptance checklist: all rules re-checked, all passing.Watch at 6:20

FAQ

What people ask before their first spreadsheet merge in DSH.

Do I need an Excel plugin to merge sheets in DeepSeek Harness?

No. The harness reads .xlsx files and writes its own calculation code — this case ran in standard mode with no extra plugin. Office suites such as dsh-univer-office are optional and mainly useful for previewing and editing documents inside the web UI.

Does my spreadsheet data leave my computer?

The files stay where they are; the agent reads them from the workspace and writes the merge code itself. What reaches the model are the text excerpts it chooses to reason about. Writing the result outside the workspace, for example into Downloads, triggers a one-time write-permission prompt.

My rules are more complex — multi-level approvals, multiple currencies. Will it still work?

Complexity is fine; ambiguity is not. Write the conditions as an explicit AND/OR list with exact field names, the way the handout does. Clearer rules mean a more stable result, and the acceptance checklist tells you when the output has drifted.

What else is this workflow good for besides finance?

Any 'merge many rows by rules' job: sales pipelines, attendance logs, inventory counts, survey results. The pattern stays the same — rules list, source files, target template, acceptance criteria.

Related guides

Keep going: office workflows, project delivery and fixes.

Source & credits

Screenshots in this guide come from the course episode below and are used with attribution to explain the workflow; every step deep-links back to the exact timestamp.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.