Excel 2016 MINIFS和MAXIFS函数的计算

可能的使用场景

Microsoft Excel 2016 支持 MINIFS 和 MAXIFS 函数。 Excel 2013 或更早版本不支持这些函数。 Aspose.Cells也支持这些功能的计算。以下屏幕截图说明了这些功能的用法。请阅读屏幕截图中的红色注释以了解这些功能的工作原理。

待办事项:图片_替代_文本

Excel 2016 MINIFS和MAXIFS函数的计算

下面的示例代码加载示例 excel 文件并调用工作簿.calculateFormula()方法通过Aspose.Cells进行公式计算,然后将结果保存在输出 PDF.

示例代码

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(CalculationofExcelMINIFSandMAXIFSfunctions.class) + "articles/";
// Load your source workbook containing MINIFS and MAXIFS functions
Workbook wb = new Workbook(dataDir + "sample_MINIFS_MAXIFS.xlsx");
// Perform Aspose.Cells formula calculation
wb.calculateFormula();
// Save the calculations result in pdf format
PdfSaveOptions opts = new PdfSaveOptions();
opts.setOnePagePerSheet(true);
wb.save(dataDir + "CalculationofExcel_out.pdf", opts);