-
Notifications
You must be signed in to change notification settings - Fork 543
excel cell get
zmworm edited this page Mar 18, 2026
·
51 revisions
Get cell values, formatting, and row/column properties.
Path: /{SheetName}/A1, /{SheetName}/A1:D10, /{SheetName}/row[N], /{SheetName}/col[A]
| Attribute | Type | Description |
|---|---|---|
value |
any | The cell's display value |
type |
string |
Number, String, SharedString, Boolean, Error
|
formula |
string | Formula expression (e.g., =SUM(A1:A10)) |
empty |
boolean | Whether the cell is empty |
link |
string | Hyperlink URL or internal reference |
font.bold |
boolean | Bold text |
font.italic |
boolean | Italic text |
font.strike |
boolean | Strikethrough text |
underline |
string | Underline style |
font.color |
string | Font color (hex RGB) |
font.size |
string | Font size (e.g., "12pt") |
font.name |
string | Font family name |
bgcolor |
string | Background fill color (hex RGB) |
border.left |
string | Left border style |
border.right |
string | Right border style |
border.top |
string | Top border style |
border.bottom |
string | Bottom border style |
border.left.color |
string | Left border color (hex RGB) |
border.right.color |
string | Right border color (hex RGB) |
border.top.color |
string | Top border color (hex RGB) |
border.bottom.color |
string | Bottom border color (hex RGB) |
wrap |
boolean | Text wrapping enabled |
alignment.horizontal |
string | Horizontal alignment |
halign |
string | Horizontal alignment (alias) |
alignment.vertical |
string | Vertical alignment |
numFmtId |
number | Number format ID |
numberformat |
string | Number format string |
merge |
string | Merge range if cell is part of a merged area |
| Attribute | Type | Description |
|---|---|---|
height |
number | Row height |
hidden |
boolean | Whether the row is hidden |
| Attribute | Type | Description |
|---|---|---|
width |
number | Column width |
hidden |
boolean | Whether the column is hidden |
customWidth |
boolean | Whether a custom width is set |
# Get a single cell
officecli get data.xlsx /Sheet1/A1/Sheet1/A1
value: Revenue
type: SharedString
font.bold: true
font.size: 12pt
font.name: Calibri
font.color: 333333
# Get a cell range
officecli get data.xlsx /Sheet1/A1:D10
# Get a row
officecli get data.xlsx /Sheet1/row[5]/Sheet1/row[5]
height: 20
hidden: false
# Get a column
officecli get data.xlsx /Sheet1/col[A]
# Get as JSON
officecli get data.xlsx /Sheet1/A1 --json- Cell - Overview of cell operations
- Cell set - Modify cell properties
- get - Excel - All Excel get paths
Based on OfficeCli v1.0.6