Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Microsoft Excel allows users to find cells in a worksheet that contain specified data. If you select Edit from the Find menu in Microsoft Excel, you will see a dialog where you can specify the search value.
Here, we are looking for the value “Oranges”. Aspose.Cells also allows developers to find cells in the worksheet that contain specified values.
Aspose.Cells provides a class, Workbook, that represents a Microsoft Excel file. The Workbook class contains a Workbook.getWorksheets() collection that allows access to each worksheet in the Excel file. A worksheet is represented by the Worksheet class. The Worksheet class provides a getCells() collection that represents all cells in the worksheet. The Cells collection provides several methods for finding cells in a worksheet containing user‑specified data. A few of these methods are discussed below in more detail.
Developers can find a specified formula in the worksheet by calling the Cells collection’s find method. Typically, the find method accepts three parameters:
int, double, DateTime, string, or bool.null if searching from the start.The examples below use worksheet data to demonstrate the find methods:
It is possible to find specified values using the Cells collection’s find(object, Cell) method with various FindOptions. Typically, the find method accepts the following parameters:
null when searching from the start.It is possible to find specified string values by calling the same find method found in the Cells collection with various FindOptions.
Specify the FindOptions.setLookInType and FindOptions.setLookAtType properties. The following example code illustrates how to use these properties to find cells with various numbers of strings at the beginning, middle, or end of the cell’s text.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.