Excel 2016のMINIFSおよびMAXIFS関数の計算
Contents
[
Hide
]
可能な使用シナリオ
Microsoft Excel 2016はMINIFSおよびMAXIFS関数をサポートしています。これらの関数はExcel 2013またはそれ以前のバージョンではサポートされていません。Aspose.Cellsもこれらの関数の計算をサポートしています。次のスクリーンショットではこれらの関数の使用例が示されています。これらの関数の動作について詳しく知るには、スクリーンショット内の赤いコメントを読んでください。
Excel 2016のMINIFSおよびMAXIFS関数の計算
以下のサンプルコードは、サンプルExcelファイルをロードし、Workbook.calculateFormula() メソッドを呼び出して数式を計算し、その結果を 出力PDF に保存します。
サンプルコード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |