AACFlow

Microsoft Excel

Microsoft Excel is the world’s most popular spreadsheet tool for organizing, analyzing, and visualizing data. The Microsoft Excel integration enables you to programmatically read from and write to Excel workbooks as part of your automation workflows, with easy selection of sheets and cell ranges.

With Microsoft Excel integration, you can:

  • Read data from specific sheets: Extract table data, lists, records, or custom ranges from any sheet in your Excel files for use in downstream workflow steps.
  • Write and update data: Programmatically update cells, insert new rows, or modify existing records in chosen sheets, without ever opening the file manually.
  • Select cell ranges: Specify exact ranges (e.g., A1:D10) to target for read and write operations, allowing fine-grained data manipulation.
  • Automate calculations and reporting: Pull in live data, perform calculations, and produce custom Excel reports automatically.
  • Centralize spreadsheet tasks: Remove manual copy-pasting—the workflow can update Excel files, capture new submissions, or sync data between systems.
  • Integrate seamlessly with Microsoft 365: Access and modify cloud-hosted spreadsheets, whether for finance, sales, operations, or analytics.

Excel’s integration empowers every type of user—from analysts to managers—to automate their data collection, enrich reporting, trigger actions from sheet updates, and keep important data always up-to-date.

Connect Microsoft Excel to your automations to streamline data management, reporting, and collaboration within your workflows.

Usage Instructions

Integrate Microsoft Excel into the workflow with explicit sheet selection. Can read and write data in specific sheets.

Actions

microsoft_excel_read

Read data from a specific sheet in a Microsoft Excel spreadsheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook to read from (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
sheetNamestringYesThe name of the sheet/tab to read from (e.g., "Sheet1", "Sales Data")
cellRangestringNoThe cell range to read (e.g., "A1:D10"). If not specified, reads the entire used range.

Output

ParameterTypeDescription
sheetNamestringName of the sheet that was read
rangestringThe range that was read
valuesarrayArray of rows containing cell values
metadatajsonSpreadsheet metadata including ID and URL
spreadsheetIdstringMicrosoft Excel spreadsheet ID
spreadsheetUrlstringSpreadsheet URL

microsoft_excel_write

Write data to a specific sheet in a Microsoft Excel spreadsheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook to write to (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
sheetNamestringYesThe name of the sheet/tab to write to (e.g., "Sheet1", "Sales Data")
cellRangestringNoThe cell range to write to (e.g., "A1:D10", "A1"). Defaults to "A1" if not specified.
valuesarrayYesThe data to write as a 2D array (e.g. [["Name", "Age"], ["Alice", 30], ["Bob", 25]]) or array of objects.
valueInputOptionstringNoThe format of the data to write
includeValuesInResponsebooleanNoWhether to include the written values in the response

Output

ParameterTypeDescription
updatedRangestringRange of cells that were updated
updatedRowsnumberNumber of rows updated
updatedColumnsnumberNumber of columns updated
updatedCellsnumberNumber of cells updated
metadatajsonSpreadsheet metadata including ID and URL
spreadsheetIdstringMicrosoft Excel spreadsheet ID
spreadsheetUrlstringSpreadsheet URL

microsoft_excel_clear_range

Clear the values and/or formatting of a range in a Microsoft Excel worksheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
sheetNamestringNoThe name of the worksheet (e.g., "Sheet1"). If omitted, the range must use the combined "Sheet1!A1:B2" format.
rangestringYesThe cell range to clear (e.g., "A1:D10" or "Sheet1!A1:D10")
applyTostringNoWhat to clear: "All", "Formats", or "Contents". Defaults to "All".

Output

ParameterTypeDescription
clearedbooleanWhether the range was cleared
rangestringThe range that was cleared
applyTostringWhat was cleared (All, Formats, or Contents)
metadataobjectSpreadsheet metadata
spreadsheetIdstringThe ID of the spreadsheet
spreadsheetUrlstringURL to access the spreadsheet

microsoft_excel_format_range

Apply fill color and/or font formatting to a range in a Microsoft Excel worksheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
sheetNamestringNoThe name of the worksheet (e.g., "Sheet1"). If omitted, the range must use the combined "Sheet1!A1:B2" format.
rangestringYesThe cell range to format (e.g., "A1:D10" or "Sheet1!A1:D10")
fillColorstringNoBackground fill color as an HTML hex code (e.g., "#FFFF00").
fontBoldbooleanNoWhether the font is bold.
fontItalicbooleanNoWhether the font is italic.
fontColorstringNoFont color as an HTML hex code (e.g., "#FF0000").
fontSizenumberNoFont size in points (e.g., 12).
fontNamestringNoFont name (e.g., "Calibri").

Output

ParameterTypeDescription
formattedbooleanWhether the formatting was applied
rangestringThe range that was formatted
fillobjectThe applied fill, or null if no fill was set
colorstringThe applied fill color
fontobjectThe applied font properties, or null if no font was set
boldbooleanWhether the font is bold
italicbooleanWhether the font is italic
colorstringThe font color
namestringThe font name
sizenumberThe font size in points
metadataobjectSpreadsheet metadata
spreadsheetIdstringThe ID of the spreadsheet
spreadsheetUrlstringURL to access the spreadsheet

microsoft_excel_create_table

Create a new table over a range of cells in a Microsoft Excel workbook

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
addressstringYesThe range address for the table data source (e.g., "Sheet1!A1:D5"). If no sheet name is included, the active sheet is used.
hasHeadersbooleanNoWhether the first row of the range contains column headers. Defaults to true.

Output

ParameterTypeDescription
tableobjectDetails of the newly created table
idstringThe unique ID of the table
namestringThe name of the table
showHeadersbooleanWhether the header row is shown
showTotalsbooleanWhether the totals row is shown
stylestringThe table style name
metadataobjectSpreadsheet metadata
spreadsheetIdstringThe ID of the spreadsheet
spreadsheetUrlstringURL to access the spreadsheet

microsoft_excel_delete_worksheet

Delete a worksheet (sheet) from a Microsoft Excel workbook

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
worksheetNamestringYesThe name of the worksheet to delete (e.g., "Sheet1", "Old Data")

Output

ParameterTypeDescription
deletedbooleanWhether the worksheet was deleted
worksheetNamestringThe name of the deleted worksheet
metadataobjectSpreadsheet metadata
spreadsheetIdstringThe ID of the spreadsheet
spreadsheetUrlstringURL to access the spreadsheet

microsoft_excel_sort_range

Sort a range or table by a column in a Microsoft Excel worksheet

Input

ParameterTypeRequiredDescription
spreadsheetIdstringYesThe ID of the spreadsheet/workbook (e.g., "01ABC123DEF456")
driveIdstringNoThe ID of the drive containing the spreadsheet. Required for SharePoint files. If omitted, uses personal OneDrive.
tableNamestringNoThe name of the table to sort. When provided, the table is sorted and range/sheetName are ignored.
sheetNamestringNoThe name of the worksheet (e.g., "Sheet1"). Used for range sorts when the range does not include a sheet name.
rangestringNoThe cell range to sort (e.g., "A1:D10" or "Sheet1!A1:D10"). Required when no table name is provided.
sortColumnnumberYesThe zero-based column index within the range or table to sort on (0 = first column).
sortAscendingbooleanNoWhether to sort in ascending order. Defaults to true.
hasHeadersbooleanNoWhether the range has a header row that should be excluded from sorting. Only applies to range sorts. Defaults to false.
matchCasebooleanNoWhether casing affects string ordering. Defaults to false.

Output

ParameterTypeDescription
sortedbooleanWhether the sort was applied
targetstringThe range or table name that was sorted
sortColumnnumberThe zero-based column index that was sorted on
ascendingbooleanWhether the sort was ascending
metadataobjectSpreadsheet metadata
spreadsheetIdstringThe ID of the spreadsheet
spreadsheetUrlstringURL to access the spreadsheet

On this page