Skip to content

Excel CRUD

Description

The Excel CRUD node provides comprehensive Create, Read, Update, and Delete operations for Microsoft Excel workbooks.
It allows workflows to dynamically interact with Excel files — including reading ranges, inserting data, updating cells, formatting, filtering, sorting, and even creating pivot tables — all without manual Excel interaction.

This node supports both .xlsx and .xls file formats and uses the MinuteView Excel Service to perform operations in a structured and automation-safe way.


Supported Modes

The node operates in Mode-based configuration.
Each mode determines which parameters are required and what type of operation will be performed.

ModeDescription
READRead data from a defined range of rows/columns.
CREATEAppend or insert a new row of data.
INSERTInsert a new row at a specific row number.
UPDATEUpdate a single cell by row and column number.
UPDATE_CELLSUpdate multiple cells using a key/value dictionary.
UPDATE_RANGEUpdate a 2D range of cells with array data.
DELETEDelete one or more rows.
DELETE_COLUMNSDelete one or more columns.
ADD_FORMULAInsert a formula into a specific cell.
GET_CELLRetrieve a single cell’s value.
FIND_REPLACEPerform text find/replace across a worksheet.
ADD_WORKSHEETCreate a new worksheet in the workbook.
DELETE_WORKSHEETDelete a worksheet by name.
FORMATApply formatting (bold, colors, alignment, etc.) to a range.
MERGEMerge or unmerge cell ranges.
AUTOFITAuto-fit specified columns.
SORTSort a range of data by a specified column.
FILTERApply filters to a range based on criteria.
COPYCopy a range to another worksheet and location.
PIVOT_TABLECreate a pivot table from a source range.
EXPORT_DATATABLEExport worksheet data to a DataTable object for use in subsequent nodes.
CREATE_WORKBOOKCreate a new workbook with an initial worksheet.
CALCULATETrigger Excel to recalculate all formulas.

How to Use

Each mode requires different fields.
Below is an overview of the common inputs and mode-specific parameters.

Common Inputs

FieldTypeDescriptionRequired
ModePicklistThe Excel operation to perform (see list above).
Excel File PathTextFull file path to the Excel workbook.
Worksheet NameTextName of the worksheet to operate on (ignored for CREATE_WORKBOOK).

Mode Details

🟩 READ

Reads data from a specific cell range.

FieldTypeDescription
Start RowNumberRow number to start reading.
End RowNumberRow number to end reading.
Start ColumnNumberColumn index to start from.
End ColumnNumberColumn index to stop at.

Output:
DataTable or list of rows and columns returned as result.Data["Rows"].


🟨 CREATE

Appends or inserts new data rows.

FieldTypeDescription
Cell ValuesJSONKey/value map or array defining cell contents for the new row.
At Row NumberNumberOptional — specify row number to insert at (defaults to append).

🟦 UPDATE / UPDATE_CELLS / UPDATE_RANGE

ModeDescriptionKey Fields
UPDATEUpdate a single cell.Row Number, Column Number, Value
UPDATE_CELLSUpdate multiple cells.Cell Updates (dictionary)
UPDATE_RANGEUpdate a rectangular range.Range Address (e.g. A1:C3), Values (2D array)

🟥 DELETE / DELETE_COLUMNS

ModeDescriptionKey Fields
DELETEDelete one or more rows.Row Numbers (JSON array or CSV)
DELETE_COLUMNSDelete columns by name or index.Column Identifiers (JSON array or CSV)

🧮 ADD_FORMULA

Adds or replaces a formula in a cell.

FieldTypeDescription
Row NumberNumberTarget row.
Column NumberNumberTarget column.
FormulaTextFormula expression (e.g., =SUM(A1:A10)).

🔍 GET_CELL

Retrieve the value of a single cell.

FieldTypeDescription
Row NumberNumberRow index.
Column NumberNumberColumn index.

🔎 FIND_REPLACE

Performs search and replace operations in a worksheet.

FieldTypeDescription
Find TextTextText to search for.
Replace TextTextReplacement text.
Match CaseBooleanCase-sensitive match.
Match Whole CellBooleanMatch entire cell content only.

🧾 ADD_WORKSHEET / DELETE_WORKSHEET

ModeDescriptionKey Fields
ADD_WORKSHEETAdd a new worksheet.New Worksheet Name, Position (optional)
DELETE_WORKSHEETDelete an existing worksheet.Worksheet Name

🎨 FORMAT

Applies cell styling and visual formatting.

FieldTypeDescription
Range AddressTextExcel range (e.g., A1:D5).
Bold / Italic / UnderlineBooleanApply text styling.
Font NameTextFont family (e.g., Arial).
Font SizeNumberFont size.
Background ColorTextHex or named color (e.g., #FFFF00 or Yellow).
Font ColorTextFont color.
Number FormatTextFormat mask (e.g., #,##0.00).
Wrap TextBooleanEnable text wrapping.
Horizontal AlignmentTextLeft, Center, Right.

🔗 MERGE / AUTOFIT

ModeDescriptionKey Fields
MERGEMerge or unmerge cells.Range Address, Unmerge (bool)
AUTOFITAdjust column widths automatically.Column Identifiers (CSV or JSON)

📊 SORT / FILTER / COPY / PIVOT_TABLE

ModeDescriptionKey Fields
SORTSorts data in a range by column.Range Address, Sort Column, Ascending
FILTERFilters rows in a range.Range Address, Filter Criteria (dictionary of column index → value)
COPYCopies a range to another worksheet and cell.Source Range, Target Worksheet, Target Cell
PIVOT_TABLECreates a pivot table.Source Range, Target Worksheet, Target Cell

🧱 EXPORT_DATATABLE

Exports worksheet contents to a structured DataTable object for downstream nodes.

FieldTypeDescription
First Row As HeaderBooleanWhether to treat the first row as column headers.

🆕 CREATE_WORKBOOK

Creates a new workbook with the specified sheet name.

FieldTypeDescription
Worksheet NameTextName of the first sheet to create.

⚙️ CALCULATE

Forces recalculation of all formulas in the workbook.

FieldTypeDescription
Force Full CalculationBooleanWhen true, forces full workbook recalculation instead of dependency-only.

Outputs

After successful execution, the node produces structured output depending on the operation.

Output VariableDescription
RowsWhen reading data — contains the rows retrieved.
Updated Cells / Deleted Rows / Exported RangeContextual to the performed mode.
MessageDescriptive result message (e.g., “3 rows updated”).
SuccessBoolean result indicator.
Workbook PathReturned path for create/export operations.

Example Workflow Usage

  1. Use File Download or Vault Get File node to fetch an Excel file.
  2. Add Excel CRUD node with mode READ to extract specific data.
  3. Use Evaluate Decision Table or AI Node to process the extracted data.
  4. Chain a second Excel CRUD node (mode UPDATE_RANGE) to update results.
  5. Finish with Upload File or Email Attachment node to distribute the file.

Status Messages

StatusDescription
CompletedOperation successful.
FailOperation failed (invalid file, worksheet not found, or incorrect parameters).

Error Handling

If an operation fails, the node logs the issue and returns a Fail state. Common causes include:

  • Invalid or missing file path
  • Non-existent worksheet name
  • Invalid range or row/column reference
  • Incorrect JSON structure in “Cell Values” or “Filter Criteria”
  • File locked by another process

Notes

  • The node uses the ClosedXML-based CRUD Service for fast, local Excel manipulation.
  • It supports both static and dynamic placeholders in file paths and worksheet names.
  • All cell coordinates are 1-based (e.g., Row 1 = first row).
  • Use the READ → FILTER → EXPORT_DATATABLE pattern to extract and transform data efficiently.
  • Formulas and formatting are preserved when possible.
  • Merge and Pivot functions require .xlsx format.

Category: Excel & Office Automation Task Name: ExcelCRUD

Tentech 2024