Categories

XLSX Formula Injector

Fill formulas down worksheet columns and optionally lock formula cells for protected, template-friendly Excel workbooks

Inject formulas into workbook columns at scale. - Fill formulas down one or many columns using row placeholders - Copy styling or number formats onto generated formula cells - Lock formula cells and optionally hide formulas - Combine with protected sheets and editable input ranges

Example Results

1 examples

Inject margin formulas and protect sheet

Fill a computed column, leave inputs editable, and lock generated cells

xlsx-formula-injector-example1.xlsx View File
View input parameters
{ "workbookFile": "/public/samples/xlsx/workbook-sales.xlsx", "formulaRulesJson": "[\n {\n \"sheetName\": \"Sheet1\",\n \"targetColumn\": \"D\",\n \"startRow\": 2,\n \"endRow\": 12,\n \"formulaTemplate\": \"=IF($A{{row}}=\\\"\\\",\\\"\\\",$B{{row}}*$C{{row}})\",\n \"numberFormat\": \"#,##0.00\",\n \"styleSourceRow\": 2\n }\n]", "editableRangesJson": "[\n {\n \"sheetName\": \"Sheet1\",\n \"range\": \"A2:C12\"\n }\n]", "protectSheets": true, "lockFormulaCells": true, "hideFormulaText": false, "sheetPassword": "" }

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

API Documentation

Request Endpoint

POST /en/api/tools/xlsx-formula-injector

Request Parameters

Parameter Name Type Required Description
workbookFile file (Upload required) Yes -
formulaRulesJson textarea Yes -
editableRangesJson textarea No -
protectSheets checkbox No -
lockFormulaCells checkbox No -
hideFormulaText checkbox No -
sheetPassword text No -

File type parameters need to be uploaded first via POST /upload/xlsx-formula-injector to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-xlsx-formula-injector": {
      "name": "xlsx-formula-injector",
      "description": "Fill formulas down worksheet columns and optionally lock formula cells for protected, template-friendly Excel workbooks",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=xlsx-formula-injector",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]