Berechnung der MINIFS und MAXIFS Funktionen in Excel 2016 mit Node.js via C++

Mögliche Verwendungsszenarien

Microsoft Excel 2016 unterstützt MINIFS- und MAXIFS-Funktionen. Diese Funktionen werden in Excel 2013 oder früheren Versionen nicht unterstützt. Aspose.Cells for Node.js via C++ unterstützt ebenfalls die Berechnung dieser Funktionen. Der folgende Screenshot zeigt die Verwendung dieser Funktionen. Lesen Sie die roten Kommentare im Screenshot, um zu erfahren, wie diese Funktionen funktionieren.

todo:image_alt_text

Berechnung der Excel 2016 MINIFS- und MAXIFS-Funktionen

Der folgende Beispielcode lädt die Beispieldatei Excel und ruft die Workbook.calculateFormula() Methode auf, um die Formeleingabe über Aspose.Cells for Node.js via C++ durchzuführen, und speichert dann die Ergebnisse in der Ausgabedatei PDF.

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const sourceFilePath = path.join(dataDir, "sampleMINIFSAndMAXIFS.xlsx");

// Load your source workbook containing MINIFS and MAXIFS functions
const workbook = new AsposeCells.Workbook(sourceFilePath);

// Perform Aspose.Cells formula calculation
workbook.calculateFormula();

// Save the calculations result in pdf format
const options = new AsposeCells.PdfSaveOptions();
options.setOnePagePerSheet(true);
const outputFilePath = path.join(dataDir, "outputMINIFSAndMAXIFS.pdf");
workbook.save(outputFilePath, options);