Berechnung der Excel 2016 MINIFS und MAXIFS Funktionen mit Python.NET
Mögliche Verwendungsszenarien
Microsoft Excel 2016 unterstützt MINIFS- und MAXIFS-Funktionen. Diese Funktionen werden in Excel 2013 oder älteren Versionen nicht unterstützt. Aspose.Cells unterstützt ebenfalls die Berechnung dieser Funktionen. Das folgende Bildschirmfoto zeigt die Verwendung dieser Funktionen. Bitte lesen Sie die roten Kommentare im Screenshot, um zu verstehen, wie diese Funktionen funktionieren.
Berechnung der Excel 2016 MINIFS- und MAXIFS-Funktionen
Der folgende Beispielcode lädt die Beispieldatei und ruft die Methode workbook.calculate_formula() auf, um die Formelauswertung mithilfe von Aspose.Cells durchzuführen und die Ergebnisse in der Ausgabedatei zu speichern.
import os
from aspose.cells import Workbook, PdfSaveOptions
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
current_dir = os.path.dirname(os.path.abspath(__file__))
source_dir = os.path.join(current_dir, "data")
output_dir = os.path.join(current_dir, "output")
# Load your source workbook containing MINIFS and MAXIFS functions
workbook = Workbook(os.path.join(source_dir, "sampleMINIFSAndMAXIFS.xlsx"))
# Perform Aspose.Cells formula calculation
workbook.calculate_formula()
# Save the calculations result in pdf format
options = PdfSaveOptions()
options.one_page_per_sheet = True
if not os.path.exists(output_dir):
os.makedirs(output_dir)
workbook.save(os.path.join(output_dir, "outputMINIFSAndMAXIFS.pdf"), options)