Skip to content

excel cell get

zmworm edited this page Mar 18, 2026 · 51 revisions

Excel: Cell - get

Get cell values, formatting, and row/column properties.

Path: /{SheetName}/A1, /{SheetName}/A1:D10, /{SheetName}/row[N], /{SheetName}/col[A]

Cell Attributes

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

Row Attributes

Attribute Type Description
height number Row height
hidden boolean Whether the row is hidden

Column Attributes

Attribute Type Description
width number Column width
hidden boolean Whether the column is hidden
customWidth boolean Whether a custom width is set

Examples

# 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

See Also


Based on OfficeCli v1.0.6

Clone this wiki locally