// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET // Opening the Excel file Workbook workbook = new Workbook(sourceDir + "sampleFindingCellsContainingFormula.xlsx"); // Accessing the first worksheet in the Excel file Worksheet worksheet = workbook.Worksheets[0]; // Instantiate FindOptions Object FindOptions findOptions = new FindOptions(); findOptions.LookInType = LookInType.Formulas; // Finding the cell containing the specified formula Cell cell = worksheet.Cells.Find("=SUM(A5:A10)", null, findOptions); // Printing the name of the cell found after searching worksheet System.Console.WriteLine("Name of the cell containing formula: " + cell.Name);