Cmdlet
Get-OfficeExcelFormulaAnalysis
Gets workbook formula references, functions, volatile formulas, and external links.
Syntax
Examples
Find volatile and external-link formulas before publishing a workbook.
$analysis = Get-OfficeExcelFormulaAnalysis -Path .\Model.xlsx -IncludeFormulas
$analysis.Formulas |
Where-Object { $_.IsVolatile -or $_.HasExternalReference } |
Format-Table SheetName,Address,Formula,IsVolatile,HasExternalReferenceUses OfficeIMO formula analysis so scripts can review volatile functions and external workbook references without parsing package XML themselves.
Parameters
- -IncludeFormulas SwitchParameter
- Include per-cell formula details.
- -Path String
- Workbook path.
- -Document ExcelDocument
- Workbook document.
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.