Excel-Formeln in C#

Verwenden von IronXL zur Arbeit mit Excel-Formeln

IronXL ermöglicht das Setzen und Auswerten von Excel-Formeln ohne Office Interop. Es unterstützt über 150+ Formeln, wobei regelmäßig mehr hinzugefügt werden. Formeln können mithilfe der Eigenschaft Range.Formula zugewiesen werden. Hier ist ein Beispiel:

Eine Formel ist ein Ausdruck, der verwendet wird, um den Wert einer Zelle zu berechnen. In Excel sind Funktionen vordefinierte Formeln, die sofort verfügbar sind.

IronXL zeichnet sich unter .NET Excel-Bibliotheken dadurch aus, dass es eine breite Palette von Excel-Formeln unterstützt und deren Echtzeitberechnung ermöglicht.

How to Use Excel Formulas in C

Hier sind die Schritte zur Nutzung von Excel-Formeln mit IronXL in einem C#-Projekt:

  1. Installieren Sie eine Excel-Bibliothek: Laden Sie IronXL von NuGet herunter und installieren Sie es, um Excel-Funktionalitäten zu nutzen.
  2. Laden Sie das Excel-Dokument: Öffnen Sie Ihre Excel-Datei und wählen Sie die Standardposition Worksheet aus, an der Sie die Formeln anwenden möchten.
  3. Setzen Sie Formeln und Werte: Weisen Sie Formeln und notwendige Werte den Tabellenblätterzellen zu, die Sie manipulieren möchten.
  4. Formeln auswerten: Verwenden Sie die EvaluateAll-Methode, um die Ergebnisse aller angewendeten Formeln zu berechnen.
  5. Arbeitsmappe speichern: Speichern Sie Ihr Workbook-Objekt wieder in einer Excel-Datei, wobei alle Änderungen und Berechnungen berücksichtigt werden.

IronXL bietet eine unkomplizierte und effiziente Methode, um programmatisch mit Excel-Formeln innerhalb von C#-Anwendungen zu arbeiten, ohne dass Excel auf dem Server oder Client installiert sein muss.

Lernen Sie, Excel-Formeln in C# mit IronXL zu bearbeiten

A PHP Error was encountered

Severity: Notice

Message: Undefined index: IronXl.Excel

Filename: helpers/counter_helper.php

Line Number: 85

Backtrace:

File: /var/www/ironpdf.com/application/helpers/counter_helper.php
Line: 85
Function: _error_handler

File: /var/www/ironpdf.com/application/views/main/sections/ready_to_started_202509.php
Line: 12
Function: getTotalDonwloadNumber

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 489
Function: view

File: /var/www/ironpdf.com/application/controllers/Products/Examples.php
Line: 44
Function: render_products_view

File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: IronXl.Excel

Filename: helpers/counter_helper.php

Line Number: 85

Backtrace:

File: /var/www/ironpdf.com/application/helpers/counter_helper.php
Line: 85
Function: _error_handler

File: /var/www/ironpdf.com/application/views/main/sections/ready_to_started_202509.php
Line: 19
Function: getTotalDonwloadNumber

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 489
Function: view

File: /var/www/ironpdf.com/application/controllers/Products/Examples.php
Line: 44
Function: render_products_view

File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once

Bereit anzufangen?
Nuget Downloads 1,890,100 | Version: 2026.3 gerade veröffentlicht

A PHP Error was encountered

Severity: Notice

Message: Undefined index: IronXl.Excel

Filename: helpers/counter_helper.php

Line Number: 85

Backtrace:

File: /var/www/ironpdf.com/application/helpers/counter_helper.php
Line: 85
Function: _error_handler

File: /var/www/ironpdf.com/application/views/main/sections/still_scrolling_202512.php
Line: 17
Function: getTotalDonwloadNumber

File: /var/www/ironpdf.com/application/views/products/examples/index.php
Line: 270
Function: view

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 88
Function: view

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 552
Function: view

File: /var/www/ironpdf.com/application/controllers/Products/Examples.php
Line: 44
Function: render_products_view

File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: IronXl.Excel

Filename: helpers/counter_helper.php

Line Number: 85

Backtrace:

File: /var/www/ironpdf.com/application/helpers/counter_helper.php
Line: 85
Function: _error_handler

File: /var/www/ironpdf.com/application/views/main/sections/still_scrolling_202512.php
Line: 24
Function: getTotalDonwloadNumber

File: /var/www/ironpdf.com/application/views/products/examples/index.php
Line: 270
Function: view

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 88
Function: view

File: /var/www/ironpdf.com/application/libraries/Render.php
Line: 552
Function: view

File: /var/www/ironpdf.com/application/controllers/Products/Examples.php
Line: 44
Function: render_products_view

File: /var/www/ironpdf.com/index.php
Line: 292
Function: require_once

Still Scrolling Icon

Scrollst du immer noch?

Sie brauchen schnell einen Beweis? PM > Install-Package IronXl.Excel
Führen Sie ein Beispiel aus und sehen Sie zu, wie Ihre Daten zu einer Tabellenkalkulation werden.