# Get-OfficeExcelNumberFormatPreset

Lists OfficeIMO Excel number format presets and their format codes.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Source**

[GetOfficeExcelNumberFormatPresetCommand.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelNumberFormatPresetCommand.cs#L19) 

Lists OfficeIMO Excel number format presets and their format codes.

## Syntax

```
Get-OfficeExcelNumberFormatPreset
[-Culture <CultureInfo>]
[-Decimals <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelnumberformatpreset-cultureinfo-int32)

Parameter set: `Default`

## Examples

### List number format presets

```powershell
Get-OfficeExcelNumberFormatPreset
```

Shows the preset names usable with -ColumnFormat and -Style and the format codes they produce.

### See formats for another culture

```powershell
Get-OfficeExcelNumberFormatPreset -Decimals 1 -Culture de-DE
```

Shows the presets with one decimal place as they are written for German workbooks.

## Parameters

**-Culture CultureInfo optional**

Culture name used for currency symbols, such as en-US or pl-PL.

**-Decimals Int32 optional**

Decimal places used for decimal, percent, currency, and scientific presets.

## 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).

<!-- PowerForge markdown artifact sha256:06B7787A309B35FB41ECC4E3668650E033303A55FE2D0EF0E1E45AA395B0BE41 -->
