Accessing Cells of a Worksheet

Accessing Cells

Aspose.Cells for Python via Java allows you to access cells in a worksheet by using the cell name or by using the row and column indices. This article shows both approaches to accessing cells in a worksheet.

Access cell using cell name

The following code snippet demonstrates accessing the cell using the name of the cell. The sample code accesses the cell C5 and prints its value.

Access cell using row and column indices

The following code snippet demonstrates accessing the cell using row and column indices. The sample code accesses and prints the value of the cell C5, which is identified by row index 4 and column index 2.