# Find-OfficeExcel

Finds text in worksheet values. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[FindOfficeExcelCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/FindOfficeExcelCommand.cs#L22) 

Finds text in worksheet values.

## Syntax

```
Find-OfficeExcel
[-CaseSensitive]
[-Exact]
[-Path] <String>
[-Range <String>]
[-Regex]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-find-officeexcel-switchparameter-switchparameter-string-string-switchparameter-string-int32-string)

Parameter set: `Path`

```
Find-OfficeExcel
[-CaseSensitive]
-Document <ExcelDocument>
[-Exact]
[-Range <String>]
[-Regex]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Text] <String>
[<CommonParameters>]
```

[#](#method-find-officeexcel-switchparameter-exceldocument-switchparameter-string-switchparameter-string-int32-string)

Parameter set: `Document`

## Examples

### Find status values and export their addresses.

```powershell
$matches = Find-OfficeExcel -Path .\Report.xlsx -Text Ready -Sheet Summary
$matches |
    Select-Object -Property Sheet, Address, Value |
    Export-Csv -Path .\ReadyCells.csv -NoTypeInformation
```

Returns matching cells with sheet, address, row, column, and value metadata for review or proof.

## Parameters

**-CaseSensitive SwitchParameter optional**

Use case-sensitive matching.

**-Exact SwitchParameter optional**

Require an exact cell text match instead of substring matching.

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

Workbook path to inspect.

**-Range String optional**

A1 range to search. Defaults to each selected worksheet's used range.

**-Regex SwitchParameter optional**

Treat -Text as a regular expression.

**-Sheet String optionalaliases: WorksheetName**

Worksheet name. Defaults to all sheets for path/document use and current sheet inside an ExcelSheet block.

**-SheetIndex Int32 optional**

Worksheet index when using a workbook object or path.

**-Text String requiredposition: 1**

Text or pattern to find.

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

Workbook to inspect outside the DSL context.

## 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:05D4125B5670889B2C52A321A9676882064916A590489B016170CD7A17193EC9 -->
