# decodeRow

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

Decode a row string (1-based) to a zero-based row index.

```ts
decodeRow(rowstr: string): number
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` rowstr ` | ` string ` | Yes | Row string, possibly with a "$" absolute marker (e.g. "5" or "$5") |

## Returns

` number `

Zero-based row index
