Excel 2016のMINIFSおよびMAXIFS関数の計算

可能な使用シナリオ

Microsoft Excel 2016はMINIFSおよびMAXIFS関数をサポートしています。これらの関数はExcel 2013またはそれ以前のバージョンではサポートされていません。Aspose.Cellsもこれらの関数の計算をサポートしています。次のスクリーンショットではこれらの関数の使用例が示されています。これらの関数の動作について詳しく知るには、スクリーンショット内の赤いコメントを読んでください。

todo:image_alt_text

Excel 2016のMINIFSおよびMAXIFS関数の計算

以下のサンプルコードは、サンプルエクセルファイルを読み込み、Workbook.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);