Microsoft Excel
App · Spreadsheets · 62 actions
Manage and edit Excel workbooks stored in OneDrive or SharePoint.
Actions
| Action | What it does |
|---|---|
| Add chart | Add a chart of a range of cells to a worksheet. |
| Add named range | Give a range of cells, or a formula, a name that other formulas can use. |
| Add or update row | Beta. |
| Add row | Add a row below the last filled row of a worksheet, with each value under its column heading. |
| Add rows to table | Add rows to the end of a table. |
| Add table column | Add a column to a table. |
| Add worksheet | Add a new worksheet to a workbook. |
| Auto-fit columns | Widen or narrow the columns in a range to fit their contents. |
| Clear cells | Clear the contents, the formatting, or both, from a range of cells. |
| Clear table filters | Clear every column filter on a table, so all its rows show. |
| Clear worksheet | Beta. |
| Convert table to cells | Turn a table back into ordinary cells, keeping the data. |
| Create table | Turn a range of cells into a table. |
| Delete cells | Delete a range of cells, moving the cells around them up or to the left to fill the gap. |
| Delete chart | Delete a chart from a worksheet. |
| Delete table | Delete a table. |
| Delete table column | Delete a column from a table. |
| Delete table row | Delete one row of a table. |
| Delete workbook | Beta. |
| Delete worksheet | Delete a worksheet from a workbook. |
| 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. |
| Find table rows | Beta. |
| Format cells | Set a range's column width, row height, alignment and text wrapping. |
| Format numbers in cells | Set how numbers show in a range of cells, such as dates, currency or percentages. |
| Get chart image | Get a picture of a chart, as PNG image data. |
| Get table | Read a table's name, style and whether it shows a header row and a totals row. |
| Get table cells | Get a table's cell address and values, so other steps can work on those cells. |
| Get worksheet | Read a worksheet's name, position and whether it's visible. |
| Insert cells | Insert blank cells, moving the cells already there down or to the right. |
| List charts | List the charts on a worksheet. |
| List comments | List the comments in a workbook. |
| List named ranges | List a workbook's named ranges and named formulas. |
| List pivot tables | List the pivot tables on a worksheet. |
| List table columns | List a table's columns and their positions. |
| List tables | List the tables in a workbook, or on one worksheet. |
| List workbooks | Find Excel workbooks in your OneDrive or a SharePoint document library. |
| List worksheets | List the worksheets in a workbook. |
| Merge cells | Merge a range of cells into one. |
| Move chart | Move a chart so it sits over a given cell, or stretches between two cells. |
| Protect worksheet | Protect a worksheet so its cells can't be changed. |
| Read all filled cells | Read every filled cell on a worksheet, without needing to know where they are. |
| Read cells | Read the values in a range of cells, such as A1:C3. |
| Read named range | Read a named range's cell address and current values. |
| Read table rows | Read the rows of a table. |
| Reapply table filters | Apply a table's column filters again, so they take in data that changed since. |
| Recalculate workbook | Recalculate the formulas in a workbook. |
| Refresh all pivot tables | Update every pivot table on a worksheet from its source data. |
| Refresh pivot table | Update one pivot table from its source data. |
| Rename worksheet | Rename a worksheet in a workbook. |
| 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. |
| Set chart data | Change which cells a chart shows. |
| Sort cells | Sort a range of cells by one or more columns. |
| Sort table | Sort a table by one or more of its columns. |
| Unmerge cells | Split merged cells back into separate cells. |
| Unprotect worksheet | Remove a worksheet's protection so its cells can be changed again. |
| Update chart | Rename, resize or move a chart. |
| Update rows by column | Beta. |
| Update table | Rename a table or change its style, header row or totals row. |
| Update table row | Replace the values in one row of a table. |
| Update worksheet | Move a worksheet along the tabs or hide or show it. |
| Write cells | Write values into a range of cells, replacing what's there. |
| Write formulas | Write formulas into a range of cells. |
Add chart
Add a chart of a range of cells to a worksheet.
Inputs
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart type
chart_typetextRequired - Excel chart type, for example 'ColumnClustered', 'Line', 'Pie' or 'BarStacked'.
- Source data
source_datatextRequired - Range the chart plots, in A1 notation, for example 'A1:C4'.
- Series by
series_bytext - Whether rows or columns become the data series.One of:
Auto,Columns,Rows. Default:Auto. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Name
nametextRequired - The name to define, for example 'SalesData'.
- Reference
referencetextRequired - What the name points at, as a formula-style reference, for example '=Sheet1!$A$1:$D$10'.
- Comment
commenttext - A note stored with the name.
- Worksheet
worksheet_idtext - Scope the name to one worksheet. Leave empty to scope it to the whole workbook.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Match on column
columntextRequired - 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.
- Matches
valuetextRequired - 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 heading
cellsobjectRequired - Beta. The row's cells by column heading, for example {"Name": "Ada", "Amount": 120}. A heading the sheet doesn't have stops the step.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Cells by column heading
cellsobject - 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 order
valueslist - Instead of Cells by column heading: the row's values in the order of the sheet's columns, for example ["Ada", 120].
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Rows
rowslistRequired - Rows to append, for example [["2026-01-15", 49, 37]].
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Values
valueslist - Column-shaped grid whose first row is the header, for example [["Status"], ["Open"], ["Closed"]].
- Index
indexnumber - Zero-based position to insert at. Leave empty to append at the end.At least 0.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Name
nametextRequired - Name for the new worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Apply to
apply_totext - What to clear.One of:
All(Contents and formatting),Contents(Contents only),Formats(Formatting only). Default:All. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Keep the headings row
keep_headingstrue/false - Beta. Leave the sheet's first filled row (its column headings) as it is. Off clears everything.Default:
false. - What to clear
apply_totext - Beta. Contents, formatting, or both.One of:
All(Contents and formatting),Contents(Contents only),Formats(Formatting only). Default:All. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Table name
table_nametextRequired - Name for the new table.
- Range address
addresstextRequired - Range the table covers, in A1 notation, for example 'A1:D5'.
- Has headers
has_headerstrue/false - The first row of the range holds column labels.Default:
true. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Shift
shifttextRequired - Which way the remaining cells move.One of:
Up,Left. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart
chart_idtextRequired - The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Column ID
column_idtextRequired - The column's ID or its header text.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Row index
row_indexnumberRequired - Zero-based row index, excluding the header row.At least 0.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Column heading
columntextRequired - The heading of the column to look in, such as Email.
- Matches
valuetext - 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 rows
limitnumber - The most matching rows to return, up to 1000. Leave blank for 100.From 1 to 1000.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Column
columntextRequired - Beta. The table column to look in, such as Email.
- Matches
valuetext - 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 rows
limitnumber - Beta. The most matching rows to return, up to 1000. Leave blank for 100.From 1 to 1000.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Column width
column_widthnumber - Width of every column in the range, in points.At least 0.
- Row height
row_heightnumber - Height of every row in the range, in points.At least 0.
- Horizontal alignment
horizontal_alignmenttext - Horizontal alignment.One of:
General,Left,Center,Right,Fill,Justify,CenterAcrossSelection,Distributed. - Vertical alignment
vertical_alignmenttext - Vertical alignment.One of:
Top,Center,Bottom,Justify,Distributed. - Wrap text
wrap_texttrue/false - Wrap text within each cell.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Number format
number_formatlistRequired - Row-major grid of format codes, for example [["m/d/yyyy", "0.00%"]]. Use "General" to reset a cell.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart
chart_idtextRequired - The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
- Width
widthnumber - Image width in pixels.At least 1.
- Height
heightnumber - Image height in pixels.At least 1.
- Fitting mode
fitting_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. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Range type
range_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. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Shift
shifttextRequired - Which way the existing cells move.One of:
Down,Right. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtext - Limit the result to one worksheet. Leave empty to list every table in the workbook.
- Location
drive_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
- Location
drive_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. - Query
querytext - Text to search file names for. Defaults to 'xlsx', which lists every workbook the drive search returns.
- Limit
limitnumber - 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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Across
acrosstrue/false - Merge each row of the range separately instead of merging the whole block.Default:
false. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart
chart_idtextRequired - The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
- Start cell
start_celltextRequired - Cell the chart's top-left corner sits on, for example 'E2'.
- End cell
end_celltext - Cell the chart's opposite corner covers. Give one to size the chart to that block.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Options
optionsobject - Optional protection exceptions, for example {"allowSort": true, "allowAutoFilter": true}. Omit to lock the sheet down entirely.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Values only
values_onlytrue/false - Ignore cells that only carry formatting, so the range covers just the cells holding values.Default:
false. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Name
nametextRequired - The named range to read.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Top
topnumber - Maximum number of rows to return.At least 1.
- Skip
skipnumber - Number of rows to skip before returning results.At least 0.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Location
drive_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
- Workbook
item_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 type
calculation_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. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Pivot table ID
pivot_table_idtextRequired - The pivot table's ID or name, from the 'List pivot tables' action.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- New name
new_nametextRequired - New name for the worksheet.
- Location
drive_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
- Workbook
item_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 name
function_nametextRequired - The function to call, lowercase, for example 'vlookup', 'sum' or 'pmt'.
- Arguments
argumentsobject - The function's own named arguments, for example {"lookupValue": "pear", "tableArray": {"Address": "Sheet1!B2:C7"}, "colIndexNum": 2, "rangeLookup": false}.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart
chart_idtextRequired - The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
- Source data
source_datatextRequired - New range the chart plots, in A1 notation.
- Series by
series_bytext - Whether rows or columns become the data series.One of:
Auto,Columns,Rows. Default:Auto. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Fields
fieldslistRequired - Sort conditions, for example [{"key": 0, "ascending": true}]. 'key' is the zero-based column offset within the range, not the sheet column.
- Has headers
has_headerstrue/false - Treat the first row of the range as headers and leave it in place.Default:
false. - Match case
match_casetrue/false - Let letter casing affect the ordering.Default:
false. - Orientation
orientationtext - Sort rows (the usual case) or columns.One of:
Rows,Columns. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Fields
fieldslistRequired - Sort conditions, for example [{"key": 0, "ascending": true}]. 'key' is the zero-based column offset within the table.
- Match case
match_casetrue/false - Let letter casing affect the ordering.Default:
false. - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Chart
chart_idtextRequired - The chart's name. Pick it from the list, or use one from an earlier step such as Add chart.
- Name
nametext - New chart name.
- Height
heightnumber - Height in points.At least 0.
- Width
widthnumber - Width in points.At least 0.
- Top
topnumber - Distance from the top of the worksheet, in points.At least 0.
- Left
leftnumber - Distance from the left of the worksheet, in points.At least 0.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Match on column
columntextRequired - 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.
- Matches
valuetextRequired - 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 heading
cellsobjectRequired - Beta. The cells to change, by column heading, for example {"Status": "Paid"}. A heading the sheet doesn't have stops the step.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Name
nametext - New table name.
- Show headers
show_headerstrue/false - Show the header row.
- Show totals
show_totalstrue/false - Show the totals row.
- Style
styletext - Built-in table style name, for example 'TableStyleMedium4'.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Table
table_idtextRequired - The table's name. Pick it from the list, or use one from an earlier step such as Create table.
- Row index
row_indexnumberRequired - Zero-based row index, excluding the header row.At least 0.
- Values
valueslistRequired - The row's new cell values, for example ["2026-01-15", 49, 37].
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Position
positionnumber - Zero-based position in the tab strip.At least 0.
- Visibility
visibilitytext - Whether the worksheet is shown.One of:
Visible,Hidden,VeryHidden(Very hidden (only unhideable through code)). - Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Values
valueslistRequired - Row-major grid of values, for example [["Region", "Revenue"], ["West", 1200]]. A null leaves that cell untouched.
- Location
drive_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
- Workbook
item_idtextRequired - The workbook. Pick it from the list, or use one from an earlier step such as List workbooks or OneDrive's Create workbook.
- Worksheet
worksheet_idtextRequired - The worksheet's name. Pick it from the list, or use one from an earlier step such as Add worksheet.
- Range address
range_addresstextRequired - The range in A1 notation, for example 'A1:D10'.
- Formulas
formulaslistRequired - Row-major grid of formulas, for example [["=SUM(B2:B9)"]]. A null leaves that cell untouched.
- Location
drive_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)"
]
]
}