Skip to main content

Update Rows in Excel using n8n action

PDF4me Update Rows in Excel modifies existing worksheet rows directly from n8n. Feed one or more JSON objects (always wrapped in an array) and PDF4me matches properties to column headers, applies automatic type conversion, and walks sequentially through the worksheet starting at the row you choose. Perfect for syncing SQL results, refreshing CRM snapshots, or patching approval status columns without inserting new rows.

Setup

Add the PDF4me “Update Rows” node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites

  • PDF4me API credentials
  • n8n workflow access

Configuration

  1. Add the PDF4me node to the workflow
  2. Select the "Update rows" action
  3. Provide the Excel source, JSON array, and update offsets
Update Rows in Excel

Parameters

Important: Parameters marked with an asterisk (***) are required. Json Data must always be a JSON array (wrap single rows in []).

ParameterTypeDescriptionExample
Input Data Type***StringExcel source selector. Options: Binary Data, Base64 String, URL.Binary Data
Input Binary Field***BinaryRequired when Input Data Type = Binary Data. Reference upstream binary.{{ $binary.data }}
Base64 Document Content***StringRequired when Input Data Type = Base64 String. Provide base64 workbook.UEsDBBQAAAA...
Document URL***StringRequired when Input Data Type = URL. Public link to the workbook.https://files.example.com/report.xlsx
File Name***StringProcessing/display name of the workbook (with extension).inventory.xlsx
Json Data***StringJSON array of objects. Each object updates one row sequentially.[{"SKU":"A-100","Stock":45}]
Worksheet NameStringTarget worksheet. Empty uses the first sheet.Inventory
Start RowNumber1-based worksheet row to start updating (headers usually row 1).2
Start ColumnNumber1-based column offset used for header alignment.1
Convert Numeric And DateBooleanAuto-convert numeric/date strings into Excel values. Default true.true
Date FormatStringExcel date format applied when conversion is enabled.yyyy-MM-dd
Numeric FormatStringExcel numeric format when conversion is enabled.#,##0.00
Ignore Null ValuesBooleanWhen true, nulls leave existing cell values untouched.true
Ignore Attribute TitlesBooleanCase-insensitive header matching. Default false.true
Culture NameStringCulture for parsing numbers/dates. Empty = invariant.en-US
Binary Data Output Name***StringName of the output binary slot storing the patched workbook.document

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringExcel document filename with rows updated - The name of the output Excel document file after row updatesexcel_updated.xlsx
fileSizeNumberFile size in bytes - The size of the Excel document in bytes after row updates212810
successBooleanPDF4me operation status - Boolean flag indicating the success or failure of the row update process. PDF4me returns true for successful operations and false for any errorstrue
originalFileNameStringOriginal Excel document filename - The name of the input Excel document filemyExcelFile.xlsx
worksheetNameStringWorksheet name - The name of the worksheet where rows were updatedSheet1
startRowNumberStarting row number - The 1-based row number where updates began1
startColumnNumberStarting column number - The 1-based column number where updates began1
rowsUpdatedNumberNumber of rows updated - The total count of rows that were successfully updated1
convertNumericAndDateBooleanNumeric and date conversion status - Indicates whether automatic numeric and date conversion was enabled. true if enabled, false if disabledtrue
dateFormatStringDate format applied - The date format string that was applied during conversionyyyy-MM-dd
numericFormatStringNumeric format applied - The numeric format string that was applied during conversionN2
ignoreNullValuesBooleanNull value handling - Indicates whether null values were ignored. true if nulls were ignored (preserved existing values), false if nulls were writtenfalse
ignoreAttributeTitlesBooleanCase-insensitive header matching - Indicates whether case-insensitive header matching was used. true if enabled, false if case-sensitivefalse
cultureNameStringCulture/Locale code - Culture code used for parsing numbers and dates (e.g., "en-US", "de-DE", "fr-FR")en-US
messageStringOperation message - Descriptive message indicating the result of the row update operation, including the number of rows updated and worksheet nameSuccessfully updated 1 row(s) in worksheet 'Sheet1'

N8N Action Response

The PDF4me Update rows API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

[
{
"fileName": "excel_updated.xlsx",
"fileSize": 212810,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"worksheetName": "Sheet1",
"startRow": 1,
"startColumn": 1,
"rowsUpdated": 1,
"convertNumericAndDate": true,
"dateFormat": "yyyy-MM-dd",
"numericFormat": "N2",
"ignoreNullValues": false,
"ignoreAttributeTitles": false,
"cultureName": "en-US",
"message": "Successfully updated 1 row(s) in worksheet 'Sheet1'"
}
]

Use Cases

  • Inventory sync: Refresh stock counts pulled from ERP queries while keeping pricing and metadata untouched.
  • Order or project status: Patch status, owner, or SLA columns whenever upstream systems emit updates.
  • Finance adjustments: Re-write forecast or actuals rows nightly without breaking existing formulas/structure.

Get Help