> For the complete documentation index, see [llms.txt](https://docs.coherent.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherent.global/assistant/agent/workflows/compare-workbooks.md).

# Compare workbooks

Agent can compare workbooks and summarize the differences between versions.

Use this workflow when you need to understand what changed, whether the changes look expected, and which differences deserve closer review.

## When to use this workflow

Use this workflow when you need to understand what changed between two workbook versions.

Common use cases include:

* Reviewing changes before publishing a workbook.
* Comparing a prior version to a current version.
* Checking whether formulas, values, or sheets changed.
* Preparing a summary of material differences.
* Investigating why two versions produce different outputs.

## Example prompts

* "Compare the attached workbook with the open workbook."
* "Show the material differences between these two versions."
* "Compare formulas and values between these files."
* "Create a concise change summary for the workbook comparison."
* "Compare outputs first, then list formula changes that may explain them."

## Recommended steps

1. Open one workbook and attach the other, or attach both files.
2. Tell Agent which file is the baseline and which file is the new version.
3. Ask for the level of detail you need.
4. Review any saved comparison output Agent creates.
5. Ask follow-up questions about specific sheets, ranges, or changed outputs.

## Useful comparison options

Ask Agent to focus the comparison when the workbooks are large. For example:

* "Compare only formulas and named ranges."
* "Compare the Summary and Output sheets first."
* "Ignore formatting differences."
* "Group changes by sheet and show only material differences."

## Tip

For large workbooks, ask Agent to summarize material differences first, then drill into specific sheets or ranges.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coherent.global/assistant/agent/workflows/compare-workbooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
