Calculate Cell Formula – Aspose.Cells Cloud API Documentation

REST API

This REST API calculates the cell formula in an Excel workbook.

POST https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/cells/{cellName}/calculate

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request Parameters

Parameter Name Type Parameter location (path/query/body) Description
name string path Name of the Excel file (e.g., Book1.xlsx).
sheetName string path Name of the worksheet that contains the cell.
cellName string path Address of the cell to be calculated (e.g., A1).
options object body JSON object with calculation options (see Options object table).
folder string query Folder in storage where the file is located.
storageName string query Name of the Aspose Cloud storage.

Options object

Field Type Description Default
CalcStackSize string Maximum calculation stack size. "1"
IgnoreError boolean If true, calculation errors are ignored and the cell value is set to #N/A. false
Recursive boolean Enables recursive calculation of dependent cells. false
Precision string Number of decimal places for numeric results. "15"
UseThreading boolean Enables multi‑threaded calculation. false

Response

{
    "Status":"OK",
    "Code":200
}

Http Status Codes

Code Meaning Description
200 OK Compression succeeded; response contains compressed file details.
400 Bad Request Missing or invalid parameters (e.g., unsupported file type).
401 Unauthorized Invalid or missing JWT token.
413 Payload Too Large Uploaded file exceeds size limit.
500 Internal Server Error Unexpected server error.

How to Use the PostCellCalculate API with SDKs

PostCellCalculate API Specification

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.

You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to call the Cloud API with cURL. First obtain a JWT token by authenticating against the /connect/token endpoint and replace <jwt token> with the token value.

Use Aspose.Cells Cloud SDKs

Using an SDK is the best way to speed up development. An SDK abstracts low‑level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.

The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: