# formatCell

Source: /xlsx-format/api-reference/functions/formatcell

Format a cell's value into its display string representation.

Returns the cached `cell.w` if already computed, otherwise formats the value
using the cell's number format string or XF style information.

```ts
formatCell(cell: CellObject, value?: any, options?: any): string
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` cell ` | [` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>) | Yes | The cell object to format |
| ` value ` | ` any ` | No | Optional override value; if omitted, uses `cell.v` |
| ` options ` | ` any ` | No | Optional settings (e.g. `dateNF` for a default date format) |

## Returns

` string `

The formatted display string, or empty string for null/blank cells
