Text is the text string in which text segments are to be exchanged.
SearchText is the text segment that is to be replaced (a number of
NewText is the text string that is to replace the text segment.
Occurrence (optional) indicates which occurrence of the search text
is to be replaced. If this parameter is omitted the search text is
*** If SearchText and NewText are both arrays, they must be the same
length: then each array element of NewText replaces the corresponding
element of SearchText. If only SearchText is an array, NewText replaces
each element of SearchText. ***
REPLACE("Text"; Position; Length; "NewText")
Text refers to text of which a part will be replaced.
Position refers to the position within the text where the
replacement will begin.
Length is the number of characters in Text to be replaced.
NewText refers to the text which replaces Text.
*** Text and NewText can be regular expressions. ***
MATCH(SearchCriterion; LookupArray; Type)
SearchCriterion is the value which is to be searched for in the
single-row or single-column array.
LookupArray is the reference searched. A lookup array can be a
single row or column, or part of a single row or column.
Type may take the values 1, 0, or -1. If Type = 1 or if this
optional parameter is omitted, it is assumed that the first column of
the search array is sorted in ascending order. If Type = -1 it is
assumed that the column is sorted in descending order. This corresponds
to the same function in Microsoft Excel.
If Type = 0, only exact matches are found. If the search criterion
is found more than once, the function returns the index of the first
matching value. Only if Type = 0 *** or Type > 1 *** can you search for
regular expressions (if enabled in calculation options) or wildcards (if
enabled in calculation options).
If Type = 1 or the third parameter is omitted, the index of the
last value that is smaller than or equal to the search criterion is
returned. This applies even when the search array is not sorted. For
Type = -1, the index of the first value that is larger than or equal is
*** If Type > 1, only exact matches are found. If the search criterion
is found more than once, the function returns the index of the Type'th
VLOOKUP(SearchCriterion; Array; Index; Sorted)
HLOOKUP(SearchCriterion; Array; Index; Sorted)
*** Sorted does the same as the Type parameter in function MATCH. ***