diff options
| author | Mavridis Philippe <mavridisf@gmail.com> | 2024-04-05 18:08:02 +0300 |
|---|---|---|
| committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-05-18 11:24:11 +0300 |
| commit | fc7a561ed5b62d024e0e064a42ae40a49d4d2d48 (patch) | |
| tree | 9b66f4e3544b28a85d84d5f03891c53826dfcbf4 /kspread/extensions/reference.xml | |
| parent | 979ee566e7adba689fad7760b7a25db1216d438f (diff) | |
| download | koffice-fc7a561e.tar.gz koffice-fc7a561e.zip | |
KSpread: New lookup/reference functions
Adds reference functions HLOOKUP, VLOOKUP.
Import from Calligra revision 1134327.
Authors: Stefan Nikolaus <stefan.nikolaus@kdemail.net>
Sebastian Sauer <mail@dipe.org>
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 76f5e81662ade526958e24dee91adaf03a294c72)
Diffstat (limited to 'kspread/extensions/reference.xml')
| -rw-r--r-- | kspread/extensions/reference.xml | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/kspread/extensions/reference.xml b/kspread/extensions/reference.xml index 01715bf48..2b0af0bc7 100644 --- a/kspread/extensions/reference.xml +++ b/kspread/extensions/reference.xml @@ -201,7 +201,59 @@ <Example>LOOKUP(1.232; A1:A6; B1:B6) for A1 = 1, A2 = 2 returns the value of B1.</Example> </Help> </Function> - + + <Function> + <Name>HLOOKUP</Name> + <Type>String/Numeric</Type> + <Parameter> + <Comment>Lookup value</Comment> + <Type>String/Numeric</Type> + </Parameter> + <Parameter> + <Comment>Data source</Comment> + <Type>Array</Type> + </Parameter> + <Parameter> + <Comment>Row</Comment> + <Type>Int</Type> + </Parameter> + <Parameter> + <Comment>Sorted (optional)</Comment> + <Type>Boolean</Type> + </Parameter> + <Help> + <Text>Look for a matching value in the first row of the given table, and return the value of the indicated row.</Text> + <Text>Looks up the 'lookup value' in the first row of the 'data source'. If a value matches, the value in the 'row' and the column, the value was found in, is returned. If 'sorted' is true (default), the first row is assumed to be sorted. The search will end, if the 'lookup value' is lower than the value, currently compared to.</Text> + <Syntax>HLOOKUP(Lookup value; data source; Row; Sorted)</Syntax> + </Help> + </Function> + + <Function> + <Name>VLOOKUP</Name> + <Type>String/Numeric</Type> + <Parameter> + <Comment>Lookup value</Comment> + <Type>String/Numeric</Type> + </Parameter> + <Parameter> + <Comment>Data source</Comment> + <Type>Array</Type> + </Parameter> + <Parameter> + <Comment>Column</Comment> + <Type>Int</Type> + </Parameter> + <Parameter> + <Comment>Sorted (optional)</Comment> + <Type>Boolean</Type> + </Parameter> + <Help> + <Text>Look for a matching value in the first column of the given table, and return the value of the indicated column.</Text> + <Text>Looks up the 'lookup value' in the first column of the 'data source'. If a value matches, the value in the 'column' and the row, the value was found in, is returned. If 'sorted' is true (default), the first column is assumed to be sorted. The search will end, if the 'lookup value' is lower than the value, currently compared to.</Text> + <Syntax>VLOOKUP(Lookup value; data source; Column; Sorted)</Syntax> + </Help> + </Function> + </Group> </KSpreadFunctions> |
