Openoffice scalc
![openoffice scalc openoffice scalc](https://www.openoffice.org/dev_docs/features/3.3/images/AdaptToMarkedSelectionForFilterAreaInCalc.png)
In Calc, logical values are assumed to have the numerical values 0 ( FALSE) and 1 ( TRUE).
![openoffice scalc openoffice scalc](https://wiki.openoffice.org/w/images/8/8f/Calc-mainwindow.png)
In Excel, any logical values in searchtable must appear after any text values.The case sensitivity behaviour is discussed in issue 71000.It is not possible to predict which of these will be matched, nor which result will be returned. It also matches matter if whole cell matching is off. LOOKUP(".at" A1:E1 A3:E3) ".at" matches both cat and mat if regular expressions are enabled. The dot '.' stands for 'any single character' in a regular expression, so c.t matches cat. LOOKUP("c.t" A1:E1 A3:E3) returns C if regular expressions are enabled (and #N/A if not). mate would appear between mat and matter, so the position to the left is found. The difference between lower and upper case is ignored, so CAT matches cat. 1 would appear before 3 in the top row, and there is no position to the left of that in the table. 7 would appear between 5 and cat, so the position to the left is found. The contents of the corresponding cell in A3:E3 are returned. In these examples, cells A1, B1, C1, D1, E1 contain 3, 5, cat, mat, matter, and cellsĪ3, B3, C3, D3, E3 contain A, B, C, D, E. If ' Search criteria = and must apply to whole cells' is enabled on the Tools - Options - Calc - Calculate dialog, lookupvalue must match the whole text in the cell if not, it can match just part of the text. This only makes sense, and should only be used, if you expect there to be unique exact matches. Matching is always case-insensitive - the case setting on the Tools - Options - Calc - Calculate dialog does not apply.Īdvanced topics: If regular expressions are enabled on the Tools - Options - Calc - Calculate dialog, LOOKUP will find exact matches treating lookupvalue as a regular expression. If there is no exact match, the position just before where lookupvalue would appear is found the #N/A error results if that position is not in searchtable. If there is an exact match, that is the position found if there is more than one exact match, the position found is not necessarily the leftmost/ topmost. LOOKUP decides where in searchtable lookupvalue would appear. LOOKUP returns the value in resulttable in the position where the match was found in searchtable. Resulttable is a range/array of the same size as searchtable. searchtable must be sorted, with numbers in ascending order appearing before text values in alphabetic order. LOOKUP(lookupvalue searchtable resulttable) lookupvalue is a value (number, text or logical value) to look up in the single row or single column range/array searchtable. Returns a value from a single-cell-wide table, in a position found by lookup in another table.