Calcul des fonctions Excel 2016 MINIFS et MAXIFS
Contents
[
Hide
]
Scénarios d’utilisation possibles
Microsoft Excel 2016 prend en charge les fonctions MINIFS et MAXIFS. Ces fonctions ne sont pas prises en charge dans Excel 2013 ou les versions antérieures. Aspose.Cells prend également en charge le calcul de ces fonctions. La capture d’écran suivante illustre l’utilisation de ces fonctions. Veuillez lire les commentaires rouges à l’intérieur de la capture d’écran pour savoir comment fonctionnent ces fonctions.
Calcul des fonctions Excel 2016 MINIFS et MAXIFS
L’exemple de code suivant charge leexemple de fichier excel et appelle leWorkbook.calculateFormula() pour effectuer le calcul de la formule via Aspose.Cells, puis enregistre les résultats dans lesortie PDF.
Exemple de code
This file contains 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); |