Datenbankfunktionen

In diesem Abschnitt werden Funktionen fĂĽr Daten beschrieben, die in einem Datensatz als einzelne Datenzeile angeordnet sind.

note

Die Kategorie Datenbank kann mit einer in LibreOffice integrierten Datenbank verwechselt werden. Es besteht jedoch keine Verbindung zwischen einer Datenbank in LibreOffice und der Kategorie Datenbank in LibreOffice Calc.


Beispieldaten:

In einigen der Funktionsbeschreibungen werden die folgenden Daten als Beispiel herangezogen:

Der Bereich A1:E10 enthält die zu Tims Geburtstagsfeier eingeladenen Kinder. Jeder Eintrag umfasst die folgenden Informationen: In Spalte A sehen Sie den Namen, in Spalte B die Klasse, dann das Alter in Jahren, die Entfernung zur Schule in Metern und das Gewicht in Kilogramm.

A

B

C

D

E

1

Name

Klasse

Alter

Schulweg

Gewicht

2

Andreas

3

9

150

40

3

Bettina

4

10

1000

42

4

Charles

3

10

300

51

5

Daniel

5

11

1200

48

6

Eva

2

8

650

33

7

Frank

2

7

300

42

8

Greta

1

7

200

36

9

Harry

3

9

1200

44

10

Irene

2

8

1000

42

11

12

13

Name

Klasse

Alter

Schulweg

Gewicht

14

>600

15

16

DBANZAHL

5


Die Formel in Zelle B16 lautet =DBANZAHL(A1:E10;D1;A13:E14)

Parameter fĂĽr Datenbankfunktionen:

Diese Parameterdefinitionen gelten fĂĽr alle Datenbankfunktionen:

Database is the cell range defining the database. The first row of the range contains the field names, and following rows are records with corresponding field values.

DatabaseField specifies the column where the function operates on after the search criteria of the first parameter is applied and the data rows are selected. It is not related to the search criteria itself. For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

SearchCriteria is the cell range containing search criteria. Like Database, its first row is also field names, and following rows are conditions for related fields. If you write several criteria in one row they are connected by AND. If you write the criteria in different rows they are connected by OR. Empty cells in the search criteria range will be ignored.

Wählen Sie – LibreOffice Calc – Berechnen um zu festzulegen, wie LibreOffice Calc beim Suchen mit identischen Einträgen verfahren soll.

Siehe auch die Wiki-Seite zu Bedingtes Zählen und Summieren.

DBANZAHL

DBANZAHL ermittelt in einer Datenbank die Anzahl der Zeilen (Datensätze), die mit den eingegebenen Suchkriterien übereinstimmen und numerische Werte in der Spalte Datenbankfeld enthalten.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBANZAHL(Datenbank; [Datenbankfeld]; Suchkriterien)

Wenn das Argument Datenbankfeld weggelassen wird, ergibt DBANZAHL die Anzahl aller Datensätze, die den Kriterien genügen. For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNT(Database; ; SearchCriteria).

Beispiel

Im obigen Beispiel soll festgestellt werden, wie viele Kinder einen Schulweg zurücklegen müssen, der länger als 600 Meter ist. Das Ergebnis wird in Zelle B16 gespeichert: Setzen Sie den Cursor in die Zelle B16. Geben Sie die Formel =DBANZAHL(A1:E10;D1;A13:E14) in B16 ein. Der Funktions-Assistent hilft Ihnen beim Eingeben der Bereiche.

Datenbank ist der auszuwertende Datenbereich, einschließlich der Spaltenköpfe: in diesem Falle A1:E10. Datenbankfeld gibt die Spalte für die Suchkriterien an: in diesem Fall die Spalte mit den numerischen Abstandswerten. Suchkriterien ist der Bereich, wo Sie Suchparameter eingeben können: in diesem Falle A13:E14.

Um festzustellen, wie viele Kinder in der zweiten Klasse älter als 7 Jahre sind, löschen Sie den Eintrag >600 in Zelle D14, und geben Sie dann in Zelle B14 unter Klasse 2 und rechts in Zelle C14 >7 ein. Das Ergebnis ist 2. Zwei Kinder in der zweiten Klasse sind älter als 7 Jahre. Da beide Kriterien in der gleichen Zeile stehen, sind sie durch UND verbunden.

DBANZAHL2

DBANZAHL2 ermittelt in einer Datenbank die Anzahl der Zeilen (Datensätze), die mit den eingegebenen Suchkriterien übereinstimmen und die numerische oder alphanumerische Werte enthalten.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBANZAHL2(Datenbank; [Datenbankfeld]; Suchkriterien)

Wenn das Argument Datenbankfeld weggelassen wird, ergibt DBANZAHL2 die Anzahl aller Datensätze, die den Kriterien genügen. For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

If you choose to omit the DatabaseField argument, your formula should be of the form =DCOUNTA(Database; ; SearchCriteria).

Beispiel

Im obigen Beispiel können Sie ermitteln, wie viele Kinder einen Namen haben, der mit E oder einem nachfolgenden Buchstaben beginnt. Ändern Sie die Formel in B16 in =DBANZAHL2(A1:E10;"Name";A13:E14). Löschen Sie die alten Suchkriterien, und geben Sie unter Name im Feld A14 >=E ein. Das Ergebnis ist 5. Wenn Sie nun alle Zahlenwerte für Greta in Zeile 8 löschen, wird das Ergebnis in 4 geändert. Zeile 8 wird nicht mehr in die Berechnung einbezogen, da sie keine Werte enthält. Der Name Greta ist Text und kein Wert. Beachten Sie, dass der Parameter Datenbankfeld auf eine Spalte verweisen muss, in der Werte enthalten sein können.

DBAUSZUG

DBAUSZUG ergibt den Inhalt der einen Zelle in einer Datenbank, auf die durch die eingegebenen Suchkriterien verwiesen wird. Im Fehlerfall liefert die Funktion entweder #WERT!, wenn keine Zeile gefunden wird, oder Err502, wenn mehr als eine Zelle gefunden wird.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBAUSZUG(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Im obigen Beispiel soll festgestellt werden, in welche Klasse ein Kind geht, dessen Name in die Zelle A14 eingegeben wurde. Die Formel wird in Zelle B16 eingegeben und unterscheidet sich leicht von den vorhergehenden Beispielen, da nur eine Spalte (ein Datenbankfeld) fĂĽr Datenbankfeld eingegeben werden kann. Geben Sie folgende Formel ein:

=DBAUSZUG(A1:E10;"Klasse";A13:E14)

Wenn Sie in A14 den Namen Frank eingeben, wird als Ergebnis 2 angezeigt. Frank ist ein SchĂĽler der zweiten Klasse. Wenn Sie "Alter" anstelle von "Klasse" eingeben, wird das Alter von Frank angezeigt.

Sie können auch nur den Wert 11 in Zelle C14 eingeben und die anderen Einträge in der Zeile löschen. Bearbeiten Sie die Formel in B16 wie folgt:

=DBAUSZUG(A1:E10;"Name";A13:E14)

Statt nach der Klasse wird jetzt also nach dem Namen gefragt. Sie sehen auch gleich die Antwort: Daniel ist das einzige Kind, das 11 Jahre alt ist.

DBMAX

DBMAX ergibt den Maximalwert einer Zelle (eines Datenfeldes) in einer Datenbank (aller Datensätzen), die den eingegebenen Suchkriterien entsprechen.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBMAX(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Um festzustellen, wie viel das schwerste Kind jeder Klasse wiegt, geben Sie die folgende Formel in B16 ein:

=DBMAX(A1:E10;"Gewicht";A13:E14)

Geben Sie unter Klasse nacheinander 1, 2, 3 und so weiter ein. Nach der Eingabe einer Zahl fĂĽr eine Klasse wird das Gewicht des schwersten Kindes in der betreffenden Klasse angezeigt.

DBMIN

DBMIN ergibt den Minimalwert einer Zellen (eines Datenfeldes) in einer Datenbank, die den eingegebenen Suchkriterien entsprechen.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBMIN(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Zur Ermittlung des kĂĽrzesten Schulwegs unter den Kindern jeder Klasse geben Sie die folgende Formel in B16 ein:

=DBMIN(A1:E10;"Schulweg";A13:E14)

Geben Sie in Zeile 14 unter Klasse nacheinander 1, 2, 3 und so weiter ein. Der kĂĽrzeste Schulweg fĂĽr jede Klasse wird angezeigt.

DBMITTELWERT

DBMITTELWERT ergibt den Mittelwert aller Zellen (der Datenfelder) in allen Zeilen (Datensätzen), die den eingegebenen Suchkriterien entsprechen.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBMITTELWERT(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Um das Durchschnittsgewicht aller Kinder desselben Alters zu ermitteln, geben Sie die folgende Formel in B16 ein:

=DBMITTELWERT(A1:E10;"Gewicht";A13:E14)

Geben Sie in Zeile 14 unter Alter nacheinander 7, 8, 9 und so weiter ein. Das Durchschnittsgewicht aller Kinder desselben Alters wird angezeigt.

DBPRODUKT

DBPRODUKT multipliziert alle Zellen eines Datenbankfeldes in einer Datenbank in allen Zeilen (Datensätzen), die den eingegebenen Suchkriterien entsprechen.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBPRODUKT(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

FĂĽr unser Geburtstagsbeispiel von oben gibt es keine sinnvolle Anwendung dieser Funktion.

DBSTDABW

DBSTDABW berechnet die Standardabweichung einer Grundgesamtheit, basierend auf einer Stichprobe. Hierzu verwendet die Funktion die Zahlen einer Datenbankspalte, die mit den gegebenen Bedingungen übereinstimmen. Die Datensätze werden wie eine Datenprobe behandelt. Das bedeutet, dass die Kinder im Beispiel einen Durchschnitt aller Kinder darstellen. Beachten Sie hierbei, dass mit Stichproben von weniger als tausend Einzeldaten kein repräsentatives Ergebnis erzielt werden kann.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBSTDABW(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Um die Standardabweichung des Gewichts aller Kinder desselben Alters zu ermitteln, geben Sie die folgende Formel in B16 ein:

=DBSTDABW(A1:E10;"Gewicht";A13:E14)

Geben Sie in Zeile 14 unter Alter nacheinander 7, 8, 9 und so weiter ein. Das angezeigte Ergebnis ist die Standardabweichung des Gewichts aller Kinder dieses Alters.

DBSTDABWN

DBSTDABWN berechnet die Standardabweichung einer Grundgesamtheit auf Grundlage von allen Zellen eines Datenbereichs, die mit dem Suchkriterium übereinstimmen. Die Datensätze dieses Beispiels werden als Grundgesamtheit verwendet.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBSTDABWN(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Um die Standardabweichung des Gewichts aller gleichaltrigen Kinder zu ermitteln, die zu Tims Geburtstagsfeier eingeladen sind, geben Sie die folgende Formel in B16 ein:

=DBSTDABWN(A1:E10;"Gewicht";A13:E14)

Geben Sie in Zeile 14 unter Alter nacheinander 7, 8, 9 und so weiter ein. Das Ergebnis ist die Standardabweichung des Gewichts fĂĽr alle gleichaltrigen Kinder, deren Gewicht ĂĽberprĂĽft wurde.

DBSUMME

DBSUMME ergibt die Summe aller Zellen eines Datenbankfeldes in allen Zeilen (Datensätzen), die den eingegebenen Suchkriterien entsprechen.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBSUMME(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Geben Sie die folgende Formel in B16 ein, um die Gesamtlänge der Schulwege alle Kinder der zweiten Klasse zu ermitteln:

=DBSUMME(A1:E10;"Schulweg";A13:E14)

Geben Sie in Zeile 14 unter Klasse 2 ein. Die Summe (1950) der Schulwegstrecken aller Kinder der zweiten Klasse wird angezeigt.

DBVARIANZ

DBVARIANZ ergibt die Varianz aller Zellen eines Datenbankfelds in allen Datensätzen, die den eingegebenen Suchkriterium entsprechen. Die Datensätze des Beispiels werden wie eine Datenprobe behandelt. Beachten Sie hierbei, dass mit Stichproben von weniger als tausend Einzeldaten kein repräsentatives Ergebnis erzielt werden kann.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBVARIANZ(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Um die Varianz des Gewichts aller Kinder desselben Alters zu ermitteln, geben Sie die folgende Formel in B16 ein:

=DBVARIANZ(A1:E10;"Gewicht";A13:E14)

Geben Sie in Zeile 14 unter Alter nacheinander 7, 8, 9 und so weiter ein. Das angezeigte Ergebnis ist die Varianz der Gewichtswerte fĂĽr alle Kinder dieses Alters.

DBVARIANZEN

DBVARIANZEN liefert die Varianz aller Zellwerte eines Datenbankfelds in allen Datensätzen, die mit dem angegebenen Suchkriterium übereinstimmen. Die Datensätze dieses Beispiels werden als Grundgesamtheit verwendet.

The search supports wildcards or regular expressions. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every character with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in - LibreOffice Calc - Calculate.

warning

When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0".


Syntax

DBVARIANZEN(Datenbank; Datenbankfeld; Suchkriterien)

For the DatabaseField parameter you can enter a reference to a header cell or a number to specify the column within the Database area, starting with 1. To reference a column by means of the literal column header name (from the first row of Database range), place quotation marks around the header name.

Beispiel

Wie hoch ist die Varianz des Gewichts aller gleichaltrigen Kinder auf Joes Geburtstagsparty? Geben Sie in B16 diese Formel ein:

=DBVARIANZEN(A1:E10;"Gewicht";A13:E14)

Geben Sie in Zeile 14 unter Alter nacheinander 7, 8, 9 und so weiter ein. Die Varianz der Gewichtswerte fĂĽr alle Kinder dieses Alters, die zur Geburtstagsfeier von Joe kommen, wird angezeigt.