Excel Formel Operationen Excel Formel MCP
Contents
[
Hide
]
Excel Formeloperationen
Excel Formelanwendung MCP bietet leistungsstarke Excel-Formel-Automatisierung mit KI-Integration. Anwenden Sie Excel-Formeln auf einzelne Zellen oder mehrere Zellen in Batch-Operationen.
Verfügbare Tools
apply_formula- Anwenden von Excel-Formeln auf einzelne Zellen mit Excel Formelanwendung MCPapply_formula_batch- Anwenden von Excel-Formeln auf mehrere Zellen in Batch mit KI-Excel
Einzelne Formelbehandlungen
Formel mit Gleichheitszeichen anwenden
{
"tool": "apply_formula",
"parameters": {
"filepath": "reports/calculations.xlsx",
"sheet_name": "Data",
"cell": "D2",
"formula": "=B2*C2"
}
}
Formel ohne Gleichheitszeichen anwenden
{
"tool": "apply_formula",
"parameters": {
"filepath": "reports/calculations.xlsx",
"sheet_name": "Data",
"cell": "E2",
"formula": "SUM(B2:D2)"
}
}
Häufige Excel-Formeln
{
"tool": "apply_formula",
"parameters": {
"filepath": "reports/analysis.xlsx",
"sheet_name": "Summary",
"cell": "F2",
"formula": "=AVERAGE(A2:E2)"
}
}
Batch-Formelbehandlungen
Berechnung der Gesamtsumme des Verkaufsberichts
{
"tool": "apply_formula_batch",
"parameters": {
"filepath": "reports/sales-report.xlsx",
"sheet_name": "Sales Data",
"formulas": [
{ "cell": "E2", "formula": "=C2*D2" },
{ "cell": "E3", "formula": "=C3*D3" },
{ "cell": "E4", "formula": "=C4*D4" },
{ "cell": "E5", "formula": "=SUM(E2:E4)" }
]
}
}
Finanzbericht mit Steuerberechnungen
{
"tool": "apply_formula_batch",
"parameters": {
"filepath": "reports/financial-report.xlsx",
"sheet_name": "Sheet1",
"formulas": [
{ "cell": "D2", "formula": "=B2*C2" },
{ "cell": "D3", "formula": "=B3*C3" },
{ "cell": "D4", "formula": "=B4*C4" },
{ "cell": "E2", "formula": "=D2*0.1" },
{ "cell": "E3", "formula": "=D3*0.1" },
{ "cell": "E4", "formula": "=D4*0.1" },
{ "cell": "F2", "formula": "=D2+E2" },
{ "cell": "F3", "formula": "=D3+E3" },
{ "cell": "F4", "formula": "=D4+E4" },
{ "cell": "D5", "formula": "=SUM(D2:D4)" },
{ "cell": "E5", "formula": "=SUM(E2:E4)" },
{ "cell": "F5", "formula": "=SUM(F2:F4)" }
]
}
}
Mischeingabe von Formelsyntaxen
{
"tool": "apply_formula_batch",
"parameters": {
"filepath": "reports/analysis.xlsx",
"sheet_name": "Data",
"formulas": [
{ "cell": "F4", "formula": "=D4*2" },
{ "cell": "F5", "formula": "D5*2" },
{ "cell": "F6", "formula": "=D6*2" },
{ "cell": "G4", "formula": "=D4+10" },
{ "cell": "G5", "formula": "=D5+10" },
{ "cell": "G6", "formula": "=D6+10" },
{ "cell": "G7", "formula": "=SUM(G4:G6)" }
]
}
}
Häufige Excel-Funktionen
Mathematische Funktionen
SUMme(Bereich)- Summiere Werte im BereichMITTELWERT(Bereich)- Berechne DurchschnittMIN(Bereich)- Kleinster Wert findenMAX(Bereich)- Höchster Wert findenCOUNT(Bereich)- Zähle numerische Zellen
Logische Funktionen
IF-Bedingung, Wahrer_Wert, Falscher_Wert)- Bedingte LogikAND(Bedingung1, Bedingung2)- Logisches UNDOR(Bedingung1, Bedingung2)- Logisches ODER
Textfunktionen
VERKETTEN(Text1, Text2)- Text verbindenLINKS(Text, Zeichenanzahl)- Linke Zeichen extrahierenRECHTS(Text, Zeichenanzahl)- Rechte Zeichen extrahierenLÄNGE(Text)- Textlänge
Best Practices
- Formelsyntax: Sowohl
=SUMME(A1:A10)als auchSUMME(A1:A10)funktionieren - Zellbezüge: Verwenden Sie absolute Bezüge (
$A$1) bei Bedarf - Fehlerbehandlung: Testen Sie Formeln zunächst mit einfachen Daten
- Sammeloperationen: Verwenden Sie Batch-Operationen für mehrere ähnliche Formeln
- Formelüberprüfung: Überprüfen Sie die Ergebnisse nach Anwendung der Formeln
Fehlerbehandlung
Leeres Formelausdruck-Array
{
"tool": "apply_formula_batch",
"parameters": {
"filepath": "test.xlsx",
"sheet_name": "Sheet1",
"formulas": []
}
}
Ergebnis: Validierungsfehler bei leerem Array
Ungültige Formel
{
"tool": "apply_formula",
"parameters": {
"filepath": "test.xlsx",
"sheet_name": "Sheet1",
"cell": "A1",
"formula": "=INVALID_FUNCTION(A1)"
}
}
Ergebnis: Syntaxfehler in der Formel