# QueryGetCell()

return the value of a specific query cell

```
QueryGetCell( query=query, column_name=string, row_number=number );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| query | query | Yes | query to get cell value from |  |
| column_name | string | Yes | name of the column |  |
| row_number | number | No | row number (1-n) | -9999 |

# Examples

```cfml
qry=queryNew("aaa");
QueryAddRow(qry);
	QuerySetCell(qry,"aaa","a");
QueryAddRow(qry);
	QuerySetCell(qry,"aaa","b");
writeDump(QueryGetCell(qry,"aaa"));
writeDump(QueryGetCell(qry,"aaa",1));
```







# Categories

[Queries](../../categories/query.md)

# See Also

[query.getCell()](../objects/query/getcell.md)