// Load the Excel workbook
Workbook workbook = new Workbook(@"input.xlsx");

// Access the first worksheet
Worksheet worksheet = workbook.Worksheets[0];

// Conversion factor from ml to oz
double conversionFactor = 0.033814;

// Define the range of cells that need conversion (e.g., A1 to A10)
Aspose.Cells.Range range = worksheet.Cells.CreateRange("A1:A10");

// Iterate through each cell in the range
foreach (Cell cell in range)
{
    // Check if the cell contains a numeric value
    if (cell.IsNumericValue)
    {
        // Get the value in ml
        double mlValue = cell.DoubleValue;

        // Convert to ounces
        double ozValue = mlValue * conversionFactor;

        // Set the new value in ounces
        cell.PutValue(ozValue);
    }
}

// Save the updated workbook to a new file
workbook.Save(@"output_file.xlsx");