# SpreadsheetGetCellType

Gets the Excel data type of a cell.

## Method Signature

```
SpreadsheetGetCellType(spreadsheetObj=[any], row=[any], column=[any])
```

### Arguments

| Argument         | Type      | Required | Description                  | Default |
| ---------------- | --------- | -------- | ---------------------------- | ------- |
| `spreadsheetObj` | `ANY`     | `true`   | The spreadsheet object.      |         |
| `row`            | `NUMERIC` | `true`   | The row number (1-based).    |         |
| `column`         | `NUMERIC` | `true`   | The column number (1-based). |         |

## Examples

Get the data type of a cell:

```js
// Check cell data type
var spreadsheet = SpreadsheetNew();
SpreadsheetSetCellValue( spreadsheet, 1, 1, "Text" );
SpreadsheetSetCellValue( spreadsheet, 1, 2, 42 );
SpreadsheetSetCellValue( spreadsheet, 1, 3, true );

var type1 = SpreadsheetGetCellType( spreadsheet, 1, 1 );
var type2 = SpreadsheetGetCellType( spreadsheet, 1, 2 );
var type3 = SpreadsheetGetCellType( spreadsheet, 1, 3 );
```

Validate data before processing:

```js
// Check types before conversion
var spreadsheet = SpreadsheetRead( "/path/to/file.xlsx" );
var cellType = SpreadsheetGetCellType( spreadsheet, 2, 1 );

if ( cellType == "string" ) {
    var value = SpreadsheetGetCellValue( spreadsheet, 2, 1 );
}
```

## Related

* [SpreadsheetGetCellValue()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcellvalue.md) - Get cell value
* [SpreadsheetSetCellValue()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetsetcellvalue.md) - Set cell value
* [SpreadsheetGetCellFormat()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcellformat.md) - Get cell formatting


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcelltype.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
