Cmdlet
Get-OfficeExcelFormula
Lists native formula records, optionally filtered by worksheet, volatile functions or external references.
Syntax
Get-OfficeExcelFormula
[-Document <ExcelDocument>]
[-External]
[-Sheet <OfficeSheetSelector[]>]
[-Volatile]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeExcelFormula
[-External]
[-Path] <String[]>
[-Sheet <OfficeSheetSelector[]>]
[-Volatile]
[<CommonParameters>]#Parameter set:
PathGet-OfficeExcelFormula
[-External]
-LiteralPath <String[]>
[-Sheet <OfficeSheetSelector[]>]
[-Volatile]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Find volatile formulas without opening Excel.
Get-OfficeExcelFormula -Path .\Models\*.xlsx -Volatile | Format-Table SheetName, Address, FormulaInspect literal file names from the pipeline.
Get-ChildItem -LiteralPath .\Models -Filter *.xlsx | Get-OfficeExcelFormula -ExternalParameters
- -Document ExcelDocument
- Caller-owned workbook; omission uses the enclosing Excel content block.
- -External SwitchParameter
- Return only formulas referring to external workbooks.
- -Sheet OfficeSheetSelector[]
- Worksheet names, wildcard patterns, one-based positions or native worksheet objects.
- -Volatile SwitchParameter
- Return only formulas containing volatile functions.
- -Path String[]
- Workbook paths, including filesystem wildcard patterns.
- -LiteralPath String[]
- Literal workbook paths. FileInfo.FullName and provider PSPath bind here.
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.