Match all non‑blank cells in an Excel worksheet using Aspose.Cells Cloud API

Overview
The Match all non‑blank cells operation applies an AutoFilter to a worksheet and returns only the rows where the specified column contains data, ignoring empty cells. This is useful for cleaning data sets, generating reports, or preparing data for further analysis.

Prerequisites

  • A valid JWT token for Aspose.Cells Cloud authentication.
  • The workbook must be uploaded to Aspose Cloud storage.
  • You need the file name, worksheet name, and the zero‑based column index (fieldIndex) you wish to filter.

This REST API matches all non‑blank cells in the AutoFilter list on an Excel worksheet.

PostWorksheetMatchNonBlanks API

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

Security and Authentication

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

Request Parameters

Parameter Name Type Location Description
name string path The name of the Excel file.
sheetName string path The name of the worksheet that contains the AutoFilter.
fieldIndex integer query Zero‑based index of the column to which the filter is applied.
folder string query (Optional) Folder path where the file is stored.
storageName string query (Optional) Name of the storage service to use.

Response

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

HTTP Status Codes

Code Meaning Description
200 OK Filter applied successfully; response contains operation 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.

Example error response (400)

{
  "Code": 400,
  "Message": "Invalid parameter: fieldIndex must be a non‑negative integer."
}

How to Use the PostWorksheetMatchNonBlanks API with SDKs

PostWorksheetMatchNonBlanks 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 make calls to the Cloud API with cURL.

Use Aspose.Cells Cloud SDKs

Using an SDK is the best way to speed up development. An SDK handles 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 make calls to Aspose.Cells web services using various SDKs: