Skip to content

Dataset

Microsoft Excel workbook datasets for AI training

An Excel workbook dataset is a set of the XLSX, XLSM and XLSB files a business built in Microsoft Excel: Worksheets whose cells hold both a formula and the value Excel last calculated, Tables, Defined Names, PivotTables with their caches, Charts, Power Query queries, the Data Model and VBA modules. SourceX sources it to a buyer's spec from established businesses that run Excel, scoped by team, kind of model and date range. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One business's working Excel files as original packages, with formulas, cached values, names, queries and VBA parsed out
Typical systems
Microsoft Excel for Microsoft 365 and earlier desktop versions: XLSX, XLSM, XLSB and legacy XLS workbooks with Power Query, Power Pivot and VBA
Typical history
Specified by the buyer; a workbook holds one state, so history is saved copies and SharePoint or OneDrive versions
Modality
Office files; cells, formulas and names as structured records; M and VBA as code
Delivery formats
Agreed per order; commonly original files plus JSONL per Worksheet with formula, cached value and number format
Preparation
Names and customer details replaced in visible and hidden sheets, PivotCaches, query results and document properties; formulas kept
Licensing
Rights reviewed for workbook ownership and third-party data pulled in by queries and add-ins; buyer and data owner check Microsoft's terms; permitted use set in the license
Availability
Sourced to your spec from businesses that run Excel; supply is not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
workbook_refstringPseudonymous ID for one Workbook, with its file format: XLSX, XLSM, XLSB or XLS.
worksheetsarrayEach Worksheet's name, tab order and state (visible, hidden or veryHidden), from the sheet list in the workbook part.
formula_textstringThe formula of a cell, keyed by Worksheet and A1 address, as the Worksheet part stores it, without the equals sign and with shared formulas expanded.
cached_valuestring | number | booleanThe value Excel last calculated and saved for the cell, with its cell type: number, shared string, formula string, boolean or error.
number_formatstringThe cell's number format code from the styles part, which decides whether a stored serial number is a date, a percentage or currency.
defined_namesarrayThe Workbook's Defined Names with scope, refers-to formula and hidden flag, including LAMBDA functions and Excel's built-in print and filter names.
list_objectsarrayExcel Tables, which VBA calls ListObjects: name, range, column names and calculated column formulas.
pivot_cachesarrayEach PivotCache with its source, the PivotTables that read it and whether its stored records were delivered, cleaned or removed.
power_queriesarrayPower Query queries with name, M code and load destination: a Worksheet table, the Data Model or connection only.
vba_modulesarraySource text of the VBA project's standard modules, class modules, UserForms and the ThisWorkbook and Worksheet code modules.
external_linksarrayEach external link part: the pseudonymized path of the target workbook, whether it was delivered and how many cached cells it holds.
calc_propertiesobjectCalculation mode, iterative calculation settings and the 1900 or 1904 date system, from the Workbook's properties.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "workbook_ref": "wb_02f7",
  "source_system": "Microsoft Excel",
  "file_format": "xlsm",
  "calc_properties": { "calc_mode": "auto", "iterate": false, "date_system": 1900 },
  "worksheets": [
    { "name": "Schedule", "state": "visible" },
    { "name": "lookup_rates", "state": "veryHidden", "review": "cleaned" }
  ],
  "defined_names": [
    { "name": "FreightRate", "scope": "workbook", "refers_to": "Inputs!$C$7" }
  ],
  "list_objects": [{ "name": "tblOrders", "sheet": "Schedule", "ref": "A4:N64" }],
  "cells": [
    { "sheet": "Inputs", "cell_ref": "C7", "formula_text": null, "cached_value": 0.42 },
    { "sheet": "Schedule", "cell_ref": "D5", "cached_value": 18.5,
      "formula_text": "_xlfn.XLOOKUP(tblOrders[[#This Row],[SKU]],lookup_rates!$A:$A,lookup_rates!$C:$C)" },
    { "sheet": "Schedule", "cell_ref": "G5", "formula_text": "'[1]Price List'!$D$12", "cached_value": 4.1,
      "recalc": "external_link_cached_only" },
    { "sheet": "Schedule", "cell_ref": "H5", "formula_text": null, "cached_value": 45712,
      "number_format": "d-mmm-yy", "as_date": "2025-02-24" },
    { "sheet": "Schedule", "cell_ref": "N5", "cached_value": 1892, "recalc": "match",
      "formula_text": "(tblOrders[[#This Row],[UnitCost]]+FreightRate)*tblOrders[[#This Row],[Qty]]" }
  ],
  "pivot_caches": [{ "cache_id": 3, "source": "tblOrders", "records": "cleaned" }],
  "power_queries": [
    { "name": "qOpenPOs", "load_to": "worksheet_table", "refreshable": false,
      "m_code": "let Source = Sql.Database(\"[HOST_2]\", \"[DB_1]\") in Source{[Item=\"OpenPO\"]}[Data]" }
  ],
  "vba_modules": [{ "name": "modExport", "type": "standard" }],
  "external_links": [
    { "index": 1, "target": "[SHARE_3]/Purchasing/Price List 2024.xlsx", "target_delivered": false, "cached_cells": 38 }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Formula writing and repair

Cells that pair a stored formula with Excel's own result give supervised examples that a recalculation engine can grade.

Tracing a figure to its inputs

Defined Names, structured references and cross-sheet formulas let a model learn to explain where a total comes from.

VBA and M code generation

Modules and queries arrive beside the Worksheets and Tables they were written for.

Agents that edit real workbooks

Adding a calculated column to a Table or repointing a PivotTable can be set as tasks on files staff built.

Finding broken spreadsheets

Stale caches, dead external links and a constant typed into a filled column are cases for error detection.

Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Coding agents, Private evaluation sets

What makes this data valuable

Native files

Original XLSX, XLSM or XLSB packages, not files converted from another spreadsheet product.

Cached values present

Workbooks last saved by Excel carry a result for each formula; files written by scripts or export tools may carry zeros or none.

Tables and names in use

Structured references and Defined Names state intent that bare cell addresses do not.

Few unresolvable formulas

A low share of cells that depend on external links, add-in functions or unreachable queries.

Version chains

Dated saves from SharePoint or OneDrive show how a model was built and corrected.

Check cells that hold

Balance checks that read zero in the cached values show a working model.

Record timeline

Excel workbook dataset

This page covers excel workbooks.Illustrative

Formula and last result sit in the same cell record

An XLSX or XLSM workbook is a ZIP package of XML parts, and Excel splits a cell across several of them. The workbook part lists the Worksheets and holds the Defined Names. Each Worksheet is its own part, where a cell carries its address, a type, its formula and the value Excel last calculated. Typed text is not stored in the cell, which holds only an index into a shared strings part, and a date is a serial number that only the number format in the styles part, plus the workbook's 1900 or 1904 date system, turns into a day. Read one sheet part alone and you get integers where staff saw supplier names and due dates.

Because formula and result are saved together, the dependency graph from inputs to outputs can be built from the file and every node checked against its cached value without opening Excel. The edges are in Excel's stored spelling, not the formula bar's. A function newer than the file format carries an _xlfn prefix. A structured reference to a Table is saved in its long form with #This Row, not the @ form staff typed. A spill reference such as A2# is saved as an ANCHORARRAY call. A Defined Name can be a range, a constant or a LAMBDA function. INDIRECT and OFFSET build their references while calculating, so those edges cannot be read from text.

The graph describes one moment. Each save writes the current results over the last ones, and an ordinary workbook records nothing of what a cell held before. Excel recalculates before saving by default, even in manual calculation mode, so stale or empty results turn up where that option was switched off or a script wrote the file. TODAY, NOW and RAND are cached as of the last calculation, so a recalculation will not match them and should not be scored as an error.

An Excel file carries no versions of itself. Where staff kept the workbook in SharePoint or OneDrive, earlier saves exist in that system's version history and are collected from it as separate files. Everywhere else, history is whatever copies people saved under new names, so ask which of the two a supplier means.

What a workbook points at stays behind when the file leaves. A link to another workbook is a numbered external link part that holds the target's path and a cache of the cells last read from it. The path often names a mapped drive or a person's user folder, and the cached numbers can be read but never refreshed. Power Query keeps its M code in the file, packed in a custom XML part, while the rows it loaded sit in a Worksheet as ordinary cells or in the Data Model, a compressed database part that general-purpose workbook libraries typically do not read. Functions supplied by an add-in keep their last value and return a name error when recalculated without it. VBA lives in one binary part of an XLSM or XLSB file, and a copy saved as XLSX has lost it.

Test a sample at the level of the package. Unzip one workbook, list its parts, recalculate it in an engine other than Excel and ask for mismatches sorted by cause: volatile function, external link, add-in function, VBA function or stale cache. A very hidden Worksheet does not appear in Excel's Unhide dialog, a PivotCache can keep its source rows after the sheet they came from was deleted, and rows a query loaded into the Data Model or a hidden sheet stay in the file after the visible cells are cleaned. Confirm that each was cleaned in the part where it is stored.

What to check before licensing

  • Unzip a sample workbook and list its parts. For every PivotCache, external link, custom XML part, Data Model and VBA project, ask whether it was cleaned, kept or removed.
  • List the state of every Worksheet in the sample. Hidden and very hidden sheets often hold pasted system exports with personal and customer data, so review them from the file.
  • Compare PivotCache records with what the PivotTables display. A cache can keep full source rows, including fields no PivotTable shows, so check that cleaning reached the cache.
  • Look for embedded query results. Rows loaded by Power Query or an older data connection persist as cells or in the Data Model, and connection strings can name servers.
  • Recalculate the sample outside Excel and compare with the cached values. Ask for the mismatch count by cause.
  • Read the document properties, comment authors, external link paths and VBA source for staff names, user names, server names and credentials.
  • Have counsel for the buyer and for the data owner read Microsoft's current terms on exported files and API use, and check for licensed third-party content such as market data pulled in by add-ins and vendor templates.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Do the formulas come with the workbooks, or only the values?

Both, as long as the files are delivered in Excel's own formats. An XLSX, XLSM or XLSB workbook stores each formula beside the value Excel last calculated for it. A CSV export, a PDF or a copy pasted as values keeps only the results. Ask for the original packages, with formula text, cached value and number format on every parsed cell.

Can the workbooks be recalculated outside Excel?

Mostly, with known gaps. Other calculation engines handle many of Excel's built-in functions, and coverage of newer ones varies by engine. They cannot refresh an external link or a Power Query source that stayed with the business, run an add-in function, or reproduce volatile results such as TODAY. Ask for a recalculation report that sorts every mismatch by cause.

Are earlier versions of a workbook included?

Only where they were kept outside the file. An Excel workbook holds a single state. Where staff stored it in SharePoint or OneDrive, earlier saves can be collected from that system's version history as separate dated files. Otherwise history means copies saved under different names.

What happens to VBA macros and Power Query steps?

They can be extracted as text and delivered beside the workbook they belong to, so specify that in the order. VBA sits in one binary part of an XLSM or XLSB file and is read out module by module. Power Query's M code is unpacked from a custom XML part. Ask whether VBA projects locked for viewing were included, and whether connection strings in queries were cleaned.

How is personal data in hidden sheets and PivotTable caches handled?

It has to be cleaned in the parts where it is stored, and the buyer should verify that on a sample. Very hidden sheets, PivotCache records, cached external link values and loaded query results all persist after the visible cells are edited. Ask for a list of these parts per workbook, each marked cleaned, kept or removed.

Is SourceX affiliated with Microsoft?

Microsoft Excel is named to identify the system the records come from. That does not imply a partnership with or endorsement by Microsoft. The records belong to the business that runs Microsoft Excel, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies