> For the complete documentation index, see [llms.txt](https://boxlang.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boxlang.ortusbooks.com/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcellvalue.md).

# SpreadsheetGetCellValue

Gets the value for a for an Excel spreadsheet object cell.

## Method Signature

```
SpreadsheetGetCellValue(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 a single cell value:

```js
// Read a cell value
var spreadsheet = SpreadsheetRead( "/path/to/file.xlsx" );
var cellValue = SpreadsheetGetCellValue( spreadsheet, 1, 1 );
println( "Cell A1 contains: " & cellValue );
```

Extract data with type checking:

```js
// Get cell values and check types
var spreadsheet = SpreadsheetNew();
SpreadsheetAddRow( spreadsheet, [ "Name", "Age", "Active" ] );
SpreadsheetAddRow( spreadsheet, [ "John", 30, true ] );

var name = SpreadsheetGetCellValue( spreadsheet, 2, 1 );
var age = SpreadsheetGetCellValue( spreadsheet, 2, 2 );
var active = SpreadsheetGetCellValue( spreadsheet, 2, 3 );

println( "Name: " & name & " (Type: " & typeof(name) & ")" );
```

Build arrays from cell values:

```js
// Extract entire row as array
var spreadsheet = SpreadsheetRead( "/path/to/file.xlsx" );
var rowData = [];
var colCount = SpreadsheetGetColumnCount( spreadsheet );

for ( var col = 1; col <= colCount; col++ ) {
    rowData.append( SpreadsheetGetCellValue( spreadsheet, 1, col ) );
}

println( "Row data: " & rowData );
```

## Related

* [SpreadsheetSetCellValue()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetsetcellvalue.md) - Set cell values
* [SpreadsheetClearCell()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetclearcell.md) - Clear cell contents
* [SpreadsheetGetCellType()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcelltype.md) - Get cell data type
* [SpreadsheetGetCellFormat()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetgetcellformat.md) - Get cell formatting
* [Cell Operations Guide](https://github.com/ortus-boxlang/boxlang-docs/tree/v1.x/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/cell-operations.md) - Working with cells


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
