ExcelFormulas logoExcelFormulas.
KI Fragen
Google SheetsQA-geprüft

QUERY.

Runs Google Visualization API SQL-like queries on data tables.

Google Sheets
Google Sheets

Funktionsweise im Detail.

QUERY ist eine zentrale Formel in Excel. Runs Google Visualization API SQL-like queries on data tables. Sie optimiert Ihre Tabellenkalkulationen, automatisiert Routineabfragen und sorgt für fehlerfreie Auswertungen in modernen Tabellen.

Syntax.

Standardmäßige Excel-Schreibweise
=QUERY(data, query, [headers])
Tipp: Parameter in eckigen Klammern [wie_dieser] sind optional, alle übrigen müssen angegeben werden.

Argumente.

Alle von dieser Funktion akzeptierten Parameter im Überblick.

dataErforderlich

The cell range to query.

Beispiel: A1:C5
queryErforderlich

SQL-like query string enclosed in quotation marks.

Beispiel: "SELECT A, C WHERE C > 150"

Praxisbeispiel.

Schritt-für-Schritt-Szenario

High Value Orders Query

Extract products where sales exceed 150.

ProductRegionSalesQuery OutputOutput Sales
Widget AEast100——
Widget BWest300——
Widget CEast250——
Eingesetzte Formel
=QUERY(A1:C5, "SELECT A, C WHERE C > 150", 1)
Erwartetes Ergebnis::Widget B

Evaluates QUERY over the sample table cells, placing the verified output in cell D2.

Passen Sie die Eingabefelder an, um eine fertige Formel für Ihre Tabelle zu kopieren.

Generated FormulaKopierbereit

Ergebniseigenschaften.

Returns "Widget B" based on sample evaluation criteria and active cell references.

Ausgabebeispiel::Widget B
Datentyp::Text

Empfohlene Vorgehensweise

  • Use uppercase keywords like SELECT and WHERE for readability.

Typische Fehlerquellen

  • Google Sheets QUERY requires data in each column to be consistently typed (avoid mixing numbers and text).
Kompatibilitätsmatrix

Kompatibilität nach Versionen.

Geprüft auf Basis der offiziellen Tabellenkalkulations-Engines von Microsoft und Google.

Excel✕
Nein
Excel 365✕
Nein
Excel 2021✕
Nein
Excel 2019✕
Nein
Google Sheets✓
Unterstützt
Excel-Versionsverfügbarkeit

Not supported in Microsoft Excel. QUERY is a proprietary Google Sheets function that uses Google Visualization API SQL syntax.

Hinweise zu Google Tabellen

Native Google Sheets formula. Runs pseudo-SQL queries over sheet ranges for filtering, aggregation, and grouping.

Häufig gestellte Fragen.

Technische Q&A
Can I use QUERY across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =QUERY(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in QUERY?↓

Google Sheets QUERY requires data in each column to be consistently typed (avoid mixing numbers and text).

Does QUERY work in Microsoft Excel?↓

No. QUERY is a proprietary Google Sheets function and is not supported in Microsoft Excel. Recommended Excel alternative: For Microsoft Excel, use the FILTER function (Excel 365 / 2021), SUMIFS/COUNTIFS, or Power Query (Get & Transform).