# Get-OfficeExcelSummary

Gets a compact structural summary of an Excel workbook.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: ExcelSummary

**Module**

`PSWriteOffice`

**Aliases**

`ExcelSummary`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[GetOfficeExcelSummaryCommand.cs:30](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelSummaryCommand.cs#L30) 

Gets a compact structural summary of an Excel workbook.

## Syntax

```
Get-OfficeExcelSummary
[-IncludeSchema]
[-IncludeSheets]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officeexcelsummary-switchparameter-switchparameter-string)

Parameter set: `Path`

```
Get-OfficeExcelSummary
-Document <ExcelDocument>
[-IncludeSchema]
[-IncludeSheets]
[<CommonParameters>]
```

[#](#method-get-officeexcelsummary-exceldocument-switchparameter-switchparameter)

Parameter set: `Document`

## Examples

### Summarize workbook contents before release.

```powershell
$summary = Get-OfficeExcelSummary -Path .\report.xlsx -IncludeSheets
$summary |
    Select-Object -Property SheetCount, TableCount, ChartCount, PivotTableCount
$summary.Sheets |
    Select-Object -Property Name, State, UsedRange
```

Returns workbook-level counts plus per-sheet tables, charts, pivots, links, comments, and used ranges.

## Parameters

**-IncludeSchema SwitchParameter optional**

Include OfficeIMO inspection snapshot details for schema discovery.

**-IncludeSheets SwitchParameter optional**

Include per-sheet details in the returned object.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Path to the workbook.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

Workbook to inspect.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:C0AA7F7703575A70623F96D8F9C2A66946C9ACEEFA97AB0B4C923C1DF7D9B4B5 -->
