Microsoft Excel

App · Spreadsheets · 62 actions

Manage and edit Excel workbooks stored in OneDrive or SharePoint.

Actions

ActionWhat it does
Add chartAdd a chart of a range of cells to a worksheet.
Add named rangeGive a range of cells, or a formula, a name that other formulas can use.
Add or update rowBeta.
Add rowAdd a row below the last filled row of a worksheet, with each value under its column heading.
Add rows to tableAdd rows to the end of a table.
Add table columnAdd a column to a table.
Add worksheetAdd a new worksheet to a workbook.
Auto-fit columnsWiden or narrow the columns in a range to fit their contents.
Clear cellsClear the contents, the formatting, or both, from a range of cells.
Clear table filtersClear every column filter on a table, so all its rows show.
Clear worksheetBeta.
Convert table to cellsTurn a table back into ordinary cells, keeping the data.
Create tableTurn a range of cells into a table.
Delete cellsDelete a range of cells, moving the cells around them up or to the left to fill the gap.
Delete chartDelete a chart from a worksheet.
Delete tableDelete a table.
Delete table columnDelete a column from a table.
Delete table rowDelete one row of a table.
Delete workbookBeta.
Delete worksheetDelete a worksheet from a workbook.
Find rowsFind the rows of a worksheet whose cell in one column matches a value, such as every row whose Email is ada@example.com.
Find table rowsBeta.
Format cellsSet a range's column width, row height, alignment and text wrapping.
Format numbers in cellsSet how numbers show in a range of cells, such as dates, currency or percentages.
Get chart imageGet a picture of a chart, as PNG image data.
Get tableRead a table's name, style and whether it shows a header row and a totals row.
Get table cellsGet a table's cell address and values, so other steps can work on those cells.
Get worksheetRead a worksheet's name, position and whether it's visible.
Insert cellsInsert blank cells, moving the cells already there down or to the right.
List chartsList the charts on a worksheet.
List commentsList the comments in a workbook.
List named rangesList a workbook's named ranges and named formulas.
List pivot tablesList the pivot tables on a worksheet.
List table columnsList a table's columns and their positions.
List tablesList the tables in a workbook, or on one worksheet.
List workbooksFind Excel workbooks in your OneDrive or a SharePoint document library.
List worksheetsList the worksheets in a workbook.
Merge cellsMerge a range of cells into one.
Move chartMove a chart so it sits over a given cell, or stretches between two cells.
Protect worksheetProtect a worksheet so its cells can't be changed.
Read all filled cellsRead every filled cell on a worksheet, without needing to know where they are.
Read cellsRead the values in a range of cells, such as A1:C3.
Read named rangeRead a named range's cell address and current values.
Read table rowsRead the rows of a table.
Reapply table filtersApply a table's column filters again, so they take in data that changed since.
Recalculate workbookRecalculate the formulas in a workbook.
Refresh all pivot tablesUpdate every pivot table on a worksheet from its source data.
Refresh pivot tableUpdate one pivot table from its source data.
Rename worksheetRename a worksheet in a workbook.
Run workbook functionWork out one of Excel's functions (VLOOKUP, SUM, PMT and so on) using a workbook's data, without writing it into a cell.
Set chart dataChange which cells a chart shows.
Sort cellsSort a range of cells by one or more columns.
Sort tableSort a table by one or more of its columns.
Unmerge cellsSplit merged cells back into separate cells.
Unprotect worksheetRemove a worksheet's protection so its cells can be changed again.
Update chartRename, resize or move a chart.
Update rows by columnBeta.
Update tableRename a table or change its style, header row or totals row.
Update table rowReplace the values in one row of a table.
Update worksheetMove a worksheet along the tabs or hide or show it.
Write cellsWrite values into a range of cells, replacing what's there.
Write formulasWrite formulas into a range of cells.

Add chart

Add a chart of a range of cells to a worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chart typechart_typetextRequired
Excel chart type, for example 'ColumnClustered', 'Line', 'Pie' or 'BarStacked'.
Source datasource_datatextRequired
Range the chart plots, in A1 notation, for example 'A1:C4'.
Series byseries_bytext
Whether rows or columns become the data series.One of: Auto, Columns, Rows. Default: Auto.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

heightnumber
Height in points.
idtext
Chart ID.
leftnumber
Distance from the left of the worksheet, in points.
nametext
Chart name.
topnumber
Distance from the top of the worksheet, in points.
widthnumber
Width in points.
Example output
{
  "height": 216.0,
  "id": "{2D421098-FA19-41F7-8528-EE7B00E4BB42}",
  "left": 0.0,
  "name": "Chart 1",
  "top": 0.0,
  "width": 360.0
}

Add named range

Give a range of cells, or a formula, a name that other formulas can use.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
NamenametextRequired
The name to define, for example 'SalesData'.
ReferencereferencetextRequired
What the name points at, as a formula-style reference, for example '=Sheet1!$A$1:$D$10'.
Commentcommenttext
A note stored with the name.
Worksheetworksheet_idtext
Scope the name to one worksheet. Leave empty to scope it to the whole workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

commenttext
The comment stored with the name.
nametext
The item's name.
scopetext
Either 'Workbook' or the owning worksheet's name.
typetext
What the name refers to, for example 'Range'.
valuetext
The formula or range the name resolves to.
visibletrue/false
Whether the name is visible in Excel's name manager.
Example output
{
  "comment": "Source for the Q3 report",
  "name": "SalesData",
  "scope": "Workbook",
  "type": "Range",
  "value": "Sheet1!$A$1:$D$10",
  "visible": true
}

Add or update row

Beta. Change the rows of a worksheet whose cell in one column matches a value, or add a row with that value when none does, so a sheet keeps one row per customer or order. The sheet's first filled row is its column headings.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Match on columncolumntextRequired
Beta. The heading of the column that identifies the row, such as Invoice or Email. Headings are the sheet's first filled row, matched whatever their case.
MatchesvaluetextRequired
Beta. The value that identifies the row, such as an order number. A new row gets it in that column. Case and spaces at either end don't matter, and a cell matches by its value or by the text Excel shows for it.
Cells by column headingcellsobjectRequired
Beta. The row's cells by column heading, for example {"Name": "Ada", "Amount": 120}. A heading the sheet doesn't have stops the step.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addedtrue/false
Beta. True when no row matched and a new one was added.
countnumber
Beta. How many rows were changed or added.
rowslist
Beta. The rows written, top to bottom.
Example output
{
  "added": false,
  "count": 1,
  "rows": [
    {
      "range_address": "A5:C5",
      "row_number": 5
    }
  ]
}

Add row

Add a row below the last filled row of a worksheet, with each value under its column heading. For a sheet set up as a table, use Add rows to table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Cells by column headingcellsobject
The new row's cells by column heading, for example {"Name": "Ada", "Amount": 120}. Headings are the sheet's first filled row, matched whatever their case; a column you leave out stays blank, and a heading the sheet doesn't have stops the step.
Values in column ordervalueslist
Instead of Cells by column heading: the row's values in the order of the sheet's columns, for example ["Ada", 120].
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

range_addresstext
The new row's cells, such as A21:D21, for Write cells or Clear cells.
row_numbernumber
The new row's number on the worksheet, as Excel shows it.
valueslist
What was written, in column order; a column left out is null.
Example output
{
  "range_address": "A21:C21",
  "row_number": 21,
  "values": [
    "Ada",
    null,
    120
  ]
}

Add rows to table

Add rows to the end of a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
RowsrowslistRequired
Rows to append, for example [["2026-01-15", 49, 37]].
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

rows_addednumber
Number of rows appended.
Example output
{
  "rows_added": 1
}

Add table column

Add a column to a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Valuesvalueslist
Column-shaped grid whose first row is the header, for example [["Status"], ["Open"], ["Closed"]].
Indexindexnumber
Zero-based position to insert at. Leave empty to append at the end.At least 0.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Column ID.
indexnumber
Zero-based column position in the table.
nametext
Column header text.
Example output
{
  "id": "4",
  "index": 2,
  "name": "Status"
}

Add worksheet

Add a new worksheet to a workbook.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
NamenametextRequired
Name for the new worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Worksheet ID. Use as worksheet_id in the range, table, chart and worksheet actions.
nametext
Worksheet name.
Example output
{
  "id": "{75A18F35-34AA-4F44-97CC-FDC3C05D9F40}",
  "name": "Sheet2"
}

Auto-fit columns

Widen or narrow the columns in a range to fit their contents.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

autofittedtrue/false
Always true when the columns were resized.
Example output
{
  "autofitted": true
}

Clear cells

Clear the contents, the formatting, or both, from a range of cells.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Apply toapply_totext
What to clear.One of: All (Contents and formatting), Contents (Contents only), Formats (Formatting only). Default: All.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

clearedtrue/false
Always true when the range was cleared.
Example output
{
  "cleared": true
}

Clear table filters

Clear every column filter on a table, so all its rows show.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

clearedtrue/false
Always true when the filters were cleared.
Example output
{
  "cleared": true
}

Clear worksheet

Beta. Clear every filled cell of a worksheet, or all but its first row of column headings, without naming a range.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Keep the headings rowkeep_headingstrue/false
Beta. Leave the sheet's first filled row (its column headings) as it is. Off clears everything.Default: false.
What to clearapply_totext
Beta. Contents, formatting, or both.One of: All (Contents and formatting), Contents (Contents only), Formats (Formatting only). Default: All.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

clearedtrue/false
Beta. False when there was nothing to clear.
range_addresstext
Beta. The cells cleared, such as A2:F120.
Example output
{
  "cleared": true,
  "range_address": "A2:F120"
}

Convert table to cells

Turn a table back into ordinary cells, keeping the data.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addresstext
The resulting range in A1 notation.
Example output
{
  "address": "Sheet1!A1:C7"
}

Create table

Turn a range of cells into a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Table nametable_nametextRequired
Name for the new table.
Range addressaddresstextRequired
Range the table covers, in A1 notation, for example 'A1:D5'.
Has headershas_headerstrue/false
The first row of the range holds column labels.Default: true.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Table ID. Use as table_id in the table, row and column actions.
nametext
Table name.
Example output
{
  "id": "2",
  "name": "Sales"
}

Delete cells

Delete a range of cells, moving the cells around them up or to the left to fill the gap.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
ShiftshifttextRequired
Which way the remaining cells move.One of: Up, Left.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

shifttext
The direction the remaining cells were shifted.
Example output
{
  "shift": "Up"
}

Delete chart

Delete a chart from a worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chartchart_idtextRequired
The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deletedtrue/false
Always true when the chart was removed.
Example output
{
  "deleted": true
}

Delete table

Delete a table. Its cells and their values stay on the worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deletedtrue/false
Always true when the table was removed.
Example output
{
  "deleted": true
}

Delete table column

Delete a column from a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Column IDcolumn_idtextRequired
The column's ID or its header text.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deletedtrue/false
Always true when the column was removed.
Example output
{
  "deleted": true
}

Delete table row

Delete one row of a table. The rows below it move up, so their numbers change.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Row indexrow_indexnumberRequired
Zero-based row index, excluding the header row.At least 0.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deleted_indexnumber
The row index that was deleted.
Example output
{
  "deleted_index": 0
}

Delete workbook

Beta. Delete a workbook file. OneDrive or SharePoint keeps it in the recycle bin, where it can be restored for a time.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deletedtrue/false
Beta. True once the workbook is deleted.
item_idtext
Beta. The deleted workbook's ID.
Example output
{
  "deleted": true,
  "item_id": "01ABCDEF2345GHIJ"
}

Delete worksheet

Delete a worksheet from a workbook.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

deletedtrue/false
Always true when the worksheet was removed.
Example output
{
  "deleted": true
}

Find rows

Find the rows of a worksheet whose cell in one column matches a value, such as every row whose Email is ada@example.com. The sheet's first filled row is its column headings.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Column headingcolumntextRequired
The heading of the column to look in, such as Email.
Matchesvaluetext
The value to look for. Case and spaces at either end don't matter, and a cell matches by its value or by the text Excel shows for it. Beta: blank finds no rows (count 0) rather than matching every empty cell, so an invoice with no PO number reads as no matching PO and can go to a person.
Maximum rowslimitnumber
The most matching rows to return, up to 1000. Leave blank for 100.From 1 to 1000.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

countnumber
How many rows matched.
rowobject
Beta. The first matching row's cells by column heading, plus its row_number, or an empty record when nothing matched: read one value as row.Amount, with no list position, when you look up one record (a purchase order by its number).
rowslist
The matching rows, top to bottom.
Example output
{
  "count": 1,
  "row": {
    "Amount": 120,
    "Email": "ada@example.com",
    "Name": "Ada",
    "row_number": 5
  },
  "rows": [
    {
      "cells": [
        "Ada",
        "ada@example.com",
        120
      ],
      "fields": {
        "Amount": 120,
        "Email": "ada@example.com",
        "Name": "Ada"
      },
      "range_address": "A5:C5",
      "row_number": 5
    }
  ]
}

Find table rows

Beta. Find the rows of a table whose cell in one column matches a value, such as every row whose Email is ada@example.com.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
ColumncolumntextRequired
Beta. The table column to look in, such as Email.
Matchesvaluetext
Beta. The value to look for. Case and spaces at either end don't matter, and a cell matches by its value or by the text Excel shows for it. Blank finds no rows.
Maximum rowslimitnumber
Beta. The most matching rows to return, up to 1000. Leave blank for 100.From 1 to 1000.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

countnumber
Beta. How many rows matched.
rowobject
Beta. The first matching row's cells by column, plus its index, or an empty record when nothing matched.
rowslist
Beta. The matching rows, top to bottom.
Example output
{
  "count": 1,
  "row": {
    "Amount": 120,
    "Email": "ada@example.com",
    "Name": "Ada",
    "index": 3
  },
  "rows": [
    {
      "cells": [
        "Ada",
        "ada@example.com",
        120
      ],
      "fields": {
        "Amount": 120,
        "Email": "ada@example.com",
        "Name": "Ada"
      },
      "index": 3
    }
  ]
}

Format cells

Set a range's column width, row height, alignment and text wrapping.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Column widthcolumn_widthnumber
Width of every column in the range, in points.At least 0.
Row heightrow_heightnumber
Height of every row in the range, in points.At least 0.
Horizontal alignmenthorizontal_alignmenttext
Horizontal alignment.One of: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed.
Vertical alignmentvertical_alignmenttext
Vertical alignment.One of: Top, Center, Bottom, Justify, Distributed.
Wrap textwrap_texttrue/false
Wrap text within each cell.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

column_widthnumber
Column width in points.
horizontal_alignmenttext
Horizontal alignment.
row_heightnumber
Row height in points.
vertical_alignmenttext
Vertical alignment.
wrap_texttrue/false
Whether text wraps within each cell.
Example output
{
  "column_width": 135,
  "horizontal_alignment": "Left",
  "row_height": 18,
  "vertical_alignment": "Bottom",
  "wrap_text": false
}

Format numbers in cells

Set how numbers show in a range of cells, such as dates, currency or percentages.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Number formatnumber_formatlistRequired
Row-major grid of format codes, for example [["m/d/yyyy", "0.00%"]]. Use "General" to reset a cell.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

number_formatlist
The grid of format codes that was applied.
Example output
{
  "number_format": [
    [
      "m/d/yyyy",
      "0.00%"
    ]
  ]
}

Get chart image

Get a picture of a chart, as PNG image data.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chartchart_idtextRequired
The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
Widthwidthnumber
Image width in pixels.At least 1.
Heightheightnumber
Image height in pixels.At least 1.
Fitting modefitting_modetext
How the chart fits the requested size. Only applies when both a width and a height are given.One of: Fit, FitAndCenter (Fit and center), Fill.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

image_base64text
The chart as a base64-encoded PNG.
Example output
{
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAA..."
}

Get table

Read a table's name, style and whether it shows a header row and a totals row.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Table ID.
nametext
Table name.
show_headerstrue/false
Whether the header row is shown.
show_totalstrue/false
Whether the totals row is shown.
styletext
Built-in table style name.
Example output
{
  "id": "2",
  "name": "Sales",
  "show_headers": true,
  "show_totals": false,
  "style": "TableStyleMedium4"
}

Get table cells

Get a table's cell address and values, so other steps can work on those cells.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Range typerange_typetext
Which part of the table to resolve.One of: All (Whole table, including headers), Body (Data rows only), Header (Header row only), Totals (Totals row only). Default: All.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addresstext
The range in A1 notation, including the sheet name.
column_countnumber
Number of columns.
row_countnumber
Number of rows.
valueslist
Row-major grid of cell values.
Example output
{
  "address": "Sheet1!A1:C7",
  "column_count": 3,
  "row_count": 7,
  "values": [
    [
      "Date",
      "High",
      "Low"
    ],
    [
      "2026-01-15",
      49,
      37
    ]
  ]
}

Get worksheet

Read a worksheet's name, position and whether it's visible.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Worksheet ID.
nametext
Worksheet name.
positionnumber
Zero-based position in the tab strip.
visibilitytext
One of 'Visible', 'Hidden' or 'VeryHidden'.
Example output
{
  "id": "{00000000-0001-0000-0000-000000000000}",
  "name": "Sheet1",
  "position": 0,
  "visibility": "Visible"
}

Insert cells

Insert blank cells, moving the cells already there down or to the right.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
ShiftshifttextRequired
Which way the existing cells move.One of: Down, Right.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addresstext
Address of the inserted range.
shifttext
The direction the existing cells were shifted.
Example output
{
  "address": "Sheet1!A1:B2",
  "shift": "Down"
}

List charts

List the charts on a worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

chartslist
Example output
{
  "charts": [
    {
      "height": 216.0,
      "id": "{2D421098-FA19-41F7-8528-EE7B00E4BB42}",
      "left": 0.0,
      "name": "Chart 1",
      "top": 0.0,
      "width": 360.0
    }
  ]
}

List comments

List the comments in a workbook. Comments can be read here, but not added or replied to.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

commentslist
Example output
{
  "comments": [
    {
      "content": "Check this number against the invoice.",
      "content_type": "Plain",
      "id": "{1C...}"
    }
  ]
}

List named ranges

List a workbook's named ranges and named formulas.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

named_itemslist
Example output
{
  "named_items": [
    {
      "comment": "Source for the Q3 report",
      "name": "SalesData",
      "scope": "Workbook",
      "type": "Range",
      "value": "Sheet1!$A$1:$D$10",
      "visible": true
    }
  ]
}

List pivot tables

List the pivot tables on a worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

pivot_tableslist
Example output
{
  "pivot_tables": [
    {
      "id": "{A1B2C3}",
      "name": "PivotTable1"
    }
  ]
}

List table columns

List a table's columns and their positions.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

columnslist
Example output
{
  "columns": [
    {
      "id": "1",
      "index": 0,
      "name": "Date"
    }
  ]
}

List tables

List the tables in a workbook, or on one worksheet.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtext
Limit the result to one worksheet. Leave empty to list every table in the workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

tableslist
Example output
{
  "tables": [
    {
      "id": "2",
      "name": "Sales",
      "show_headers": true,
      "show_totals": false,
      "style": "TableStyleMedium4"
    }
  ]
}

List workbooks

Find Excel workbooks in your OneDrive or a SharePoint document library.

Inputs

Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.
Queryquerytext
Text to search file names for. Defaults to 'xlsx', which lists every workbook the drive search returns.
Limitlimitnumber
Maximum number of workbooks to return.From 1 to 200.

Outputs

workbookslist
Example output
{
  "workbooks": [
    {
      "drive_id": "b!driveid",
      "id": "01ABCWORKBOOK",
      "last_modified": "2026-09-01T10:14:00Z",
      "name": "Q3 forecast.xlsx",
      "size": 18422,
      "web_url": "https://contoso-my.sharepoint.com/personal/x/_layouts/15/Doc.aspx?sourcedoc=%7B...%7D"
    }
  ]
}

List worksheets

List the worksheets in a workbook.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

worksheetslist
List of worksheet names.
Example output
{
  "worksheets": [
    "Sheet1"
  ]
}

Merge cells

Merge a range of cells into one.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Acrossacrosstrue/false
Merge each row of the range separately instead of merging the whole block.Default: false.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

mergedtrue/false
Always true when the cells were merged.
Example output
{
  "merged": true
}

Move chart

Move a chart so it sits over a given cell, or stretches between two cells.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chartchart_idtextRequired
The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
Start cellstart_celltextRequired
Cell the chart's top-left corner sits on, for example 'E2'.
End cellend_celltext
Cell the chart's opposite corner covers. Give one to size the chart to that block.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

start_celltext
The cell the chart is now anchored to.
Example output
{
  "start_cell": "E2"
}

Protect worksheet

Protect a worksheet so its cells can't be changed.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Optionsoptionsobject
Optional protection exceptions, for example {"allowSort": true, "allowAutoFilter": true}. Omit to lock the sheet down entirely.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

protectedtrue/false
Always true when protection was applied.
Example output
{
  "protected": true
}

Read all filled cells

Read every filled cell on a worksheet, without needing to know where they are.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Values onlyvalues_onlytrue/false
Ignore cells that only carry formatting, so the range covers just the cells holding values.Default: false.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addresstext
The used range in A1 notation, including the sheet name.
column_countnumber
Number of columns.
row_countnumber
Number of rows.
textlist
The same cells as Excel displays them, after number formatting.
valueslist
Row-major grid of cell values.
Example output
{
  "address": "Sheet1!A1:B2",
  "column_count": 2,
  "row_count": 2,
  "text": [
    [
      "Region",
      "Revenue"
    ],
    [
      "West",
      "1,200"
    ]
  ],
  "values": [
    [
      "Region",
      "Revenue"
    ],
    [
      "West",
      1200
    ]
  ]
}

Read cells

Read the values in a range of cells, such as A1:C3.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

valueslist
Row-major grid of cell values.
Example output
{
  "values": [
    [
      "Region",
      "Revenue"
    ],
    [
      "West",
      1200
    ]
  ]
}

Read named range

Read a named range's cell address and current values.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
NamenametextRequired
The named range to read.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

addresstext
The range in A1 notation, including the sheet name.
column_countnumber
Number of columns.
row_countnumber
Number of rows.
valueslist
Row-major grid of cell values.
Example output
{
  "address": "Sheet1!A1:D10",
  "column_count": 4,
  "row_count": 10,
  "values": [
    [
      "Region",
      "Q1",
      "Q2",
      "Q3"
    ]
  ]
}

Read table rows

Read the rows of a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Toptopnumber
Maximum number of rows to return.At least 1.
Skipskipnumber
Number of rows to skip before returning results.At least 0.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

rowslist
Example output
{
  "rows": [
    {
      "index": 0,
      "values": [
        "2026-01-15",
        49,
        37
      ]
    }
  ]
}

Reapply table filters

Apply a table's column filters again, so they take in data that changed since.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

reappliedtrue/false
Always true when the filters were reapplied.
Example output
{
  "reapplied": true
}

Recalculate workbook

Recalculate the formulas in a workbook.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Calculation typecalculation_typetext
How much to recalculate.One of: Recalculate (Recalculate (changed cells only)), Full (Full (every formula)), FullRebuild (Full rebuild (every formula, rebuilding dependencies)). Default: Recalculate.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

calculation_typetext
The calculation mode that was applied.
Example output
{
  "calculation_type": "Recalculate"
}

Refresh all pivot tables

Update every pivot table on a worksheet from its source data.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

refreshedtrue/false
Always true when the pivot tables were refreshed.
Example output
{
  "refreshed": true
}

Refresh pivot table

Update one pivot table from its source data.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Pivot table IDpivot_table_idtextRequired
The pivot table's ID or name, from the 'List pivot tables' action.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

refreshedtrue/false
Always true when the pivot table was refreshed.
Example output
{
  "refreshed": true
}

Rename worksheet

Rename a worksheet in a workbook.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
New namenew_nametextRequired
New name for the worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

nametext
New worksheet name.
Example output
{
  "name": "RenamedSheet"
}

Run workbook function

Work out one of Excel's functions (VLOOKUP, SUM, PMT and so on) using a workbook's data, without writing it into a cell.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Function namefunction_nametextRequired
The function to call, lowercase, for example 'vlookup', 'sum' or 'pmt'.
Argumentsargumentsobject
The function's own named arguments, for example {"lookupValue": "pear", "tableArray": {"Address": "Sheet1!B2:C7"}, "colIndexNum": 2, "rangeLookup": false}.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

errortext
Excel's error name when the function failed, otherwise null.
value
The function's result.
Example output
{
  "error": null,
  "value": 5
}

Set chart data

Change which cells a chart shows.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chartchart_idtextRequired
The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
Source datasource_datatextRequired
New range the chart plots, in A1 notation.
Series byseries_bytext
Whether rows or columns become the data series.One of: Auto, Columns, Rows. Default: Auto.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

source_datatext
The range the chart now plots.
Example output
{
  "source_data": "A1:C4"
}

Sort cells

Sort a range of cells by one or more columns.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
FieldsfieldslistRequired
Sort conditions, for example [{"key": 0, "ascending": true}]. 'key' is the zero-based column offset within the range, not the sheet column.
Has headershas_headerstrue/false
Treat the first row of the range as headers and leave it in place.Default: false.
Match casematch_casetrue/false
Let letter casing affect the ordering.Default: false.
Orientationorientationtext
Sort rows (the usual case) or columns.One of: Rows, Columns.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

fields_appliednumber
Number of sort conditions applied.
Example output
{
  "fields_applied": 1
}

Sort table

Sort a table by one or more of its columns.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
FieldsfieldslistRequired
Sort conditions, for example [{"key": 0, "ascending": true}]. 'key' is the zero-based column offset within the table.
Match casematch_casetrue/false
Let letter casing affect the ordering.Default: false.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

fields_appliednumber
Number of sort conditions applied.
Example output
{
  "fields_applied": 1
}

Unmerge cells

Split merged cells back into separate cells.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

unmergedtrue/false
Always true when the cells were unmerged.
Example output
{
  "unmerged": true
}

Unprotect worksheet

Remove a worksheet's protection so its cells can be changed again.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

protectedtrue/false
Always false once protection was removed.
Example output
{
  "protected": false
}

Update chart

Rename, resize or move a chart.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Chartchart_idtextRequired
The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
Namenametext
New chart name.
Heightheightnumber
Height in points.At least 0.
Widthwidthnumber
Width in points.At least 0.
Toptopnumber
Distance from the top of the worksheet, in points.At least 0.
Leftleftnumber
Distance from the left of the worksheet, in points.At least 0.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

heightnumber
Height in points.
idtext
Chart ID.
leftnumber
Distance from the left of the worksheet, in points.
nametext
Chart name.
topnumber
Distance from the top of the worksheet, in points.
widthnumber
Width in points.
Example output
{
  "height": 216.0,
  "id": "{2D421098-FA19-41F7-8528-EE7B00E4BB42}",
  "left": 0.0,
  "name": "Chart 1",
  "top": 0.0,
  "width": 360.0
}

Update rows by column

Beta. Change cells in every row of a worksheet whose cell in one column matches a value, such as setting Status to Paid on the row whose Invoice is INV-104. The sheet's first filled row is its column headings; cells you don't name stay as they are.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Match on columncolumntextRequired
Beta. The heading of the column that identifies the row, such as Invoice or Email. Headings are the sheet's first filled row, matched whatever their case.
MatchesvaluetextRequired
Beta. The value the rows to change have in that column. Case and spaces at either end don't matter, and a cell matches by its value or by the text Excel shows for it.
Cells by column headingcellsobjectRequired
Beta. The cells to change, by column heading, for example {"Status": "Paid"}. A heading the sheet doesn't have stops the step.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

countnumber
Beta. How many rows were changed; 0 when none matched.
rowslist
Beta. The rows written, top to bottom.
Example output
{
  "count": 1,
  "rows": [
    {
      "range_address": "A5:C5",
      "row_number": 5
    }
  ]
}

Update table

Rename a table or change its style, header row or totals row.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Namenametext
New table name.
Show headersshow_headerstrue/false
Show the header row.
Show totalsshow_totalstrue/false
Show the totals row.
Stylestyletext
Built-in table style name, for example 'TableStyleMedium4'.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Table ID.
nametext
Table name.
show_headerstrue/false
Whether the header row is shown.
show_totalstrue/false
Whether the totals row is shown.
styletext
Built-in table style name.
Example output
{
  "id": "2",
  "name": "Sales",
  "show_headers": true,
  "show_totals": false,
  "style": "TableStyleMedium4"
}

Update table row

Replace the values in one row of a table.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Tabletable_idtextRequired
The table's name. Pick it from the list, or use one from an earlier step such as Create table.
Row indexrow_indexnumberRequired
Zero-based row index, excluding the header row.At least 0.
ValuesvalueslistRequired
The row's new cell values, for example ["2026-01-15", 49, 37].
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

indexnumber
The row index that was written.
valueslist
The row's cell values.
Example output
{
  "index": 0,
  "values": [
    "2026-01-15",
    49,
    37
  ]
}

Update worksheet

Move a worksheet along the tabs or hide or show it. Use Rename worksheet to change its name.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Positionpositionnumber
Zero-based position in the tab strip.At least 0.
Visibilityvisibilitytext
Whether the worksheet is shown.One of: Visible, Hidden, VeryHidden (Very hidden (only unhideable through code)).
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

idtext
Worksheet ID.
nametext
Worksheet name.
positionnumber
Zero-based position in the tab strip.
visibilitytext
One of 'Visible', 'Hidden' or 'VeryHidden'.
Example output
{
  "id": "{00000000-0001-0000-0100-000000000000}",
  "name": "Archive",
  "position": 3,
  "visibility": "Hidden"
}

Write cells

Write values into a range of cells, replacing what's there.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
ValuesvalueslistRequired
Row-major grid of values, for example [["Region", "Revenue"], ["West", 1200]]. A null leaves that cell untouched.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

valueslist
The grid that was written.
Example output
{
  "values": [
    [
      "Region",
      "Revenue"
    ],
    [
      "West",
      1200
    ]
  ]
}

Write formulas

Write formulas into a range of cells.

Inputs

Workbookitem_idtextRequired
The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
Worksheetworksheet_idtextRequired
The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
Range addressrange_addresstextRequired
The range in A1 notation, for example 'A1:D10'.
FormulasformulaslistRequired
Row-major grid of formulas, for example [["=SUM(B2:B9)"]]. A null leaves that cell untouched.
Locationdrive_idtext
Where the workbook is: your own OneDrive, which is the default, or a SharePoint document library. A personal (non-work) OneDrive can't be used.Default: me.

Outputs

formulaslist
The grid of formulas that was written.
Example output
{
  "formulas": [
    [
      "=SUM(B2:B9)"
    ]
  ]
}

On this page