Difference between revisions of "NL/Documentation/How Tos/Calc: functie DBLEZEN"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m (Syntaxis:)
 
(3 intermediate revisions by 2 users not shown)
Line 16: Line 16:
 
:<tt>'''criteria_tabel'''</tt> een bereik is dat de criteria bevat die worden gebruikt om de unieke rij te selecteren van de <tt>'''database_tabel'''</tt>.
 
:<tt>'''criteria_tabel'''</tt> een bereik is dat de criteria bevat die worden gebruikt om de unieke rij te selecteren van de <tt>'''database_tabel'''</tt>.
  
 
+
Het [[NL/Documentation/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]] beschrijft volledig het gebruik van deze parameters.
Het [[Documentation/nl/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]] beschrijft volledig het gebruik van deze parameters.
+
 
+
  
 
<tt>'''DBLEZEN'''</tt> geeft  <tt>'''#WAARDE!'''</tt> terug als er geen rij wordt gevonden, en <tt>'''Fout 502'''</tt> indien er meer dan één rij wordt gevonden.
 
<tt>'''DBLEZEN'''</tt> geeft  <tt>'''#WAARDE!'''</tt> terug als er geen rij wordt gevonden, en <tt>'''Fout 502'''</tt> indien er meer dan één rij wordt gevonden.
 
  
 
Voorbeeld:
 
Voorbeeld:
Line 27: Line 24:
 
In dit werkblad:
 
In dit werkblad:
  
{| border="1"  
+
{| class="wikitable" style="text-align: center";
 
|-align="center"
 
|-align="center"
 
|&nbsp;||'''A'''||'''B'''||'''C'''||'''D'''||'''E'''
 
|&nbsp;||'''A'''||'''B'''||'''C'''||'''D'''||'''E'''
 
 
|-align="center"
 
|-align="center"
 
|'''1'''||Naam||Klas||Leeftijd||Afstand naar school||Gewicht
 
|'''1'''||Naam||Klas||Leeftijd||Afstand naar school||Gewicht
 
 
|-align="center"
 
|-align="center"
 
|'''2'''||Andy||3||9||150||40
 
|'''2'''||Andy||3||9||150||40
 
 
|-align="center"
 
|-align="center"
 
|'''3'''||Betty||4||10||1000||42
 
|'''3'''||Betty||4||10||1000||42
 
 
|-align="center"
 
|-align="center"
 
|'''4'''||Charles||3||10||300||51
 
|'''4'''||Charles||3||10||300||51
 
 
|-align="center"
 
|-align="center"
 
|'''5'''||Daniel||5||11||1200||48
 
|'''5'''||Daniel||5||11||1200||48
 
 
|-align="center"
 
|-align="center"
 
|'''6'''||Eva||2||8||650||33
 
|'''6'''||Eva||2||8||650||33
 
 
|-align="center"
 
|-align="center"
 
|'''7'''||Frank||2||7||300||42
 
|'''7'''||Frank||2||7||300||42
 
 
|-align="center"
 
|-align="center"
 
|'''8'''||Greta||1||7||200||36
 
|'''8'''||Greta||1||7||200||36
 
 
|-align="center"
 
|-align="center"
 
|'''9'''||Harry||3||9||1200||44
 
|'''9'''||Harry||3||9||1200||44
 
 
|-align="center"
 
|-align="center"
 
|'''10'''||Irene||2||8||1000||42
 
|'''10'''||Irene||2||8||1000||42
 
 
|-align="center"
 
|-align="center"
 
|'''11'''||&nbsp;||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
|'''11'''||&nbsp;||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
 
|-align="center"
 
|-align="center"
 
|'''12'''||&nbsp;||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
|'''12'''||&nbsp;||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
 
|-align="center"
 
|-align="center"
 
|'''13'''||Naam||Klas||Leeftijd||Afstand naar school||Gewicht
 
|'''13'''||Naam||Klas||Leeftijd||Afstand naar school||Gewicht
 
 
|-align="center"
 
|-align="center"
 
|'''14'''||Frank||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
|'''14'''||Frank||&nbsp;||&nbsp;||&nbsp;||&nbsp;
 
 
|}
 
|}
 
  
 
<tt>'''DBLEZEN(A1:E10; "Leeftijd"; A13:E14)'''</tt>
 
<tt>'''DBLEZEN(A1:E10; "Leeftijd"; A13:E14)'''</tt>
Line 84: Line 65:
 
: geeft ook de leeftijd van Frank terug (7).
 
: geeft ook de leeftijd van Frank terug (7).
  
 +
{{NL/Documentation/ZieOok|
 +
* [[NL/Documentation/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSOM|DBSOM]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBMAX|DBMAX]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBMIN|DBMIN]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBVAR|DBVAR]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBVARP|DBVARP]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: functie SOM|SOM]]
 +
* [[NL/Documentation/How_Tos/Calc: functie SOM.ALS|SOM.ALS]]
 +
* [[NL/Documentation/How_Tos/Calc: functie SUBTOTAAL|SUBTOTAAL]]
 +
 +
* [[NL/Documentation/How_Tos/Optellen en tellen met voorwaarden|Optellen en tellen met voorwaarden]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: Database-functies|Database-functies]]
  
{{Documentation/nl/ZieOok|
+
* [[NL/Documentation/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]]
* [[Documentation/nl/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
+
* [[NL/Documentation/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
* [[Documentation/nl/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBSOM|DBSOM]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBMAX|DBMAX]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBMIN|DBMIN]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBVAR|DBVAR]]
+
* [[Documentation/nl/How_Tos/Calc: functie DBVARP|DBVARP]]
+
* [[Documentation/nl/How_Tos/Calc: functie SOM|SOM]]
+
* [[Documentation/nl/How_Tos/Calc: functie SOM.ALS|SOM.ALS]]
+
* [[Documentation/nl/How_Tos/Calc: functie SUBTOTAAL|SUBTOTAAL]]
+
* [[Documentation/nl/How_Tos/Optellen en tellen met voorwaarden|Optellen en tellen met voorwaarden]]
+
* [[Documentation/nl/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
+
* [[Documentation/nl/How_Tos/Calc: Database-functies|Database-functies]]
+
* [[Documentation/nl/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]]
+
* [[Documentation/nl/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
+
 
[[Category: NL/Documentation/Reference/Calc]]
 
[[Category: NL/Documentation/Reference/Calc]]

Latest revision as of 15:49, 27 January 2024


DBLEZEN

geeft de inhoud van een cel in een kolom van een databasetabel terug, uit de unieke rij die voldoet aan de criteria.


Syntaxis:

DBLEZEN(database_tabel; veld; criteria_tabel)

waar

database_tabel een bereik is dat de gegevens definieert die moeten worden verwerkt.
veld de kolom is die de cel bevat. veld mag een kolomnummer zijn (1 is de eerste kolom van de databasetabel, 2 is de tweede ...), of een kolomkop (omsloten door aanhalingstekens ""), of een cel die verwijst naar een kolomkop.
criteria_tabel een bereik is dat de criteria bevat die worden gebruikt om de unieke rij te selecteren van de database_tabel.

Het Overzicht database-functies beschrijft volledig het gebruik van deze parameters.

DBLEZEN geeft #WAARDE! terug als er geen rij wordt gevonden, en Fout 502 indien er meer dan één rij wordt gevonden.

Voorbeeld:

In dit werkblad:

  A B C D E
1 Naam Klas Leeftijd Afstand naar school Gewicht
2 Andy 3 9 150 40
3 Betty 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 Naam Klas Leeftijd Afstand naar school Gewicht
14 Frank        

DBLEZEN(A1:E10; "Leeftijd"; A13:E14)

geeft de leeftijd van Frank terug (7).

DBLEZEN(A1:E10; C1; A13:E14)

geeft ook de leeftijd van Frank terug (7).

Zie ook

Personal tools