<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jes</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jes"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Jes"/>
	<updated>2026-11-28T19:05:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_MATCH_function&amp;diff=122116</id>
		<title>Documentation/How Tos/Calc: MATCH function</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_MATCH_function&amp;diff=122116"/>
		<updated>2009-05-01T15:35:10Z</updated>

		<summary type="html">&lt;p&gt;Jes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== MATCH ==&lt;br /&gt;
Returns the position of a search item in a single row or column table. &lt;br /&gt;
&lt;br /&gt;
=== Syntax: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(searchitem; searchregion; matchtype)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is the value to be found within the single row or single column range &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; or omitted, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is assumed to be sorted in ascending order. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; then returns the position of the largest value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; that is less than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;-1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is assumed to be sorted in descending order. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; then returns the position of the smallest value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; that is greater than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns the position of the first exact match. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; may be unsorted. In this case &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; may contain a [[Documentation/How_Tos/Regular Expressions in Calc|regular expression]] which will be interpreted if regular expressions are selected in the &amp;#039;&amp;#039;&amp;#039;Tools - Options - OpenOffice.org Calc - Calculate&amp;#039;&amp;#039;&amp;#039; dialog.&lt;br /&gt;
&lt;br /&gt;
: If the search fails, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns the &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;#N/A&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; error.&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; 1)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;9&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. The second value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, which is the largest value that is less than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; -1)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;9&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. The second value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, which is the smallest value that is greater than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; 0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;7&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, as the value &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is the third item in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(&amp;quot;r.d&amp;quot;; B1:B4; 0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;blue&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;red&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;green&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;pink&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; (if regular expressions are enabled). The regular expression &amp;quot;&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;r.d&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&amp;quot; matches &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;red&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Issues: ===&lt;br /&gt;
*In releases before 3.0, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; cannot accept an array for the second parameter, as required by the forthcoming international standard ODFF ([http://qa.openoffice.org/issues/show_bug.cgi?id=8947 issue 8947]). For example &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(2;{1;2;3};0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;Err:504&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. This form &amp;lt;u&amp;gt;is&amp;lt;/u&amp;gt; supported by OpenOffice.org Calc versions 3.0 and later, giving the correct result: &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{Documentation/SeeAlso|&lt;br /&gt;
* [[Documentation/How_Tos/Calc: CHOOSE function|CHOOSE]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: HLOOKUP function|HLOOKUP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: INDEX function|INDEX]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: LOOKUP function|LOOKUP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: OFFSET function|OFFSET]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: VLOOKUP function|VLOOKUP]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Regular Expressions in Calc|Regular Expressions in Calc]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Spreadsheet functions|Spreadsheet functions]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}&lt;/div&gt;</summary>
		<author><name>Jes</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_MATCH_function&amp;diff=121584</id>
		<title>Documentation/How Tos/Calc: MATCH function</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_MATCH_function&amp;diff=121584"/>
		<updated>2009-04-27T18:43:57Z</updated>

		<summary type="html">&lt;p&gt;Jes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== MATCH ==&lt;br /&gt;
Returns the position of a search item in a single row or column table. &lt;br /&gt;
&lt;br /&gt;
=== Syntax: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(searchitem; searchregion; matchtype)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is the value to be found within the single row or single column range &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; or omitted, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is assumed to be sorted in ascending order. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; then returns the position of the largest value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; that is less than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;-1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; or omitted, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is assumed to be sorted in descending order. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; then returns the position of the smallest value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; that is greater than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: If &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;matchtype&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns the position of the first exact match. &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchregion&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; may be unsorted. In this case &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;searchitem&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; may contain a [[Documentation/How_Tos/Regular Expressions in Calc|regular expression]] which will be interpreted if regular expressions are selected in the &amp;#039;&amp;#039;&amp;#039;Tools - Options - OpenOffice.org Calc - Calculate&amp;#039;&amp;#039;&amp;#039; dialog.&lt;br /&gt;
&lt;br /&gt;
: If the search fails, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns the &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;#N/A&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; error.&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; 1)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;9&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. The second value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, which is the largest value that is less than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; -1)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;9&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. The second value in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, which is the smallest value that is greater than or equal to &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(5; B1:B4; 0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;7&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, as the value &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is the third item in &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1:B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(&amp;quot;r.d&amp;quot;; B1:B4; 0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where cells &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B1&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B3&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;B4&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; contain &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;blue&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;red&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;green&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;pink&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; (if regular expressions are enabled). The regular expression &amp;quot;&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;r.d&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&amp;quot; matches &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;red&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Issues: ===&lt;br /&gt;
*In releases before 3.0, &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; cannot accept an array for the second parameter, as required by the forthcoming international standard ODFF ([http://qa.openoffice.org/issues/show_bug.cgi?id=8947 issue 8947]). For example &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MATCH(2;{1;2;3};0)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;Err:504&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;. This form [[is]] supported by OpenOffice.org Calc versions 3.0 and later, giving the correct result: &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{Documentation/SeeAlso|&lt;br /&gt;
* [[Documentation/How_Tos/Calc: CHOOSE function|CHOOSE]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: HLOOKUP function|HLOOKUP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: INDEX function|INDEX]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: LOOKUP function|LOOKUP]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: OFFSET function|OFFSET]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: VLOOKUP function|VLOOKUP]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Regular Expressions in Calc|Regular Expressions in Calc]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Spreadsheet functions|Spreadsheet functions]]&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]&lt;br /&gt;
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}&lt;/div&gt;</summary>
		<author><name>Jes</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Suppressing_Blank_Address2_Fields_in_Mail_Merge_Documents&amp;diff=97588</id>
		<title>Documentation/How Tos/Suppressing Blank Address2 Fields in Mail Merge Documents</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Suppressing_Blank_Address2_Fields_in_Mail_Merge_Documents&amp;diff=97588"/>
		<updated>2008-11-01T18:55:05Z</updated>

		<summary type="html">&lt;p&gt;Jes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:How to]]&lt;br /&gt;
[[Category:Database]]&lt;br /&gt;
&lt;br /&gt;
{{Documentation/CheckedAccuracy|mwaller july08}}&lt;br /&gt;
&lt;br /&gt;
Here is the situation we are addressing. Sometimes your addresses have two lines for the address part, sometimes they do not.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|width=&amp;quot;150&amp;quot;|&amp;#039;&amp;#039;&amp;#039;Bob Jones&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Marion Silverman&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;101 Main&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;888 105th Ave&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Suite 55&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Broomfield, CO 82211&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Boulder, CO 80022&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But you have to put in the &amp;lt;Address2&amp;gt; field for everybody, since it is a mail merge. The setup has to be the same.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;Firstname&amp;gt; &amp;lt;Lastname&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;Address1&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;Address2&amp;gt;&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;City&amp;gt;, &amp;lt;State&amp;gt;, &amp;lt;Zip&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But with this approach, your addresses look like this.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|width=&amp;quot;150&amp;quot;|&amp;#039;&amp;#039;&amp;#039;Bob Jones&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Marion Silverman&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;101 Main&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;888 105th Ave&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Suite 55&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Boulder, CO 80022&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Broomfield, CO 82211&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How do you suppress that second Address2 line and the corresponding carriage return if there is no content for a particular record, for that Addres2 field?&lt;br /&gt;
&lt;br /&gt;
Here is the guide, using an example of labels.&lt;br /&gt;
&lt;br /&gt;
1. Create the labels for mail merge as usual. &amp;#039;&amp;#039;&amp;#039;File &amp;gt; New &amp;gt; Labels&amp;#039;&amp;#039;&amp;#039;, select your database and tables, insert the fields, etc.(See [[Documentation/How_Tos/Creating_Mail_Merge_Documents_From_Text/CSV_or_Spreadsheets|Creating Mail Merge Documents From Text/CSV or Spreadsheets]])&lt;br /&gt;
&lt;br /&gt;
2. Choose the &amp;#039;&amp;#039;&amp;#039;Synchronize Contents&amp;#039;&amp;#039;&amp;#039; checkbox.&lt;br /&gt;
&lt;br /&gt;
3. Click &amp;#039;&amp;#039;&amp;#039;New Document&amp;#039;&amp;#039;&amp;#039;. The labels will appear.&lt;br /&gt;
&lt;br /&gt;
4. Turn on nonprinting characters if they are not on already, by choosing &amp;#039;&amp;#039;&amp;#039;View &amp;gt; Nonprinting Characters&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
5. Select the first soft return, shown selected.[[Image:Doc_Howto_label_softreturn.png|thumb|none|500px|Label with soft returns]]&lt;br /&gt;
&lt;br /&gt;
6. Press Return or Enter to replace it with a hard return.&lt;br /&gt;
&lt;br /&gt;
7. Repeat, to make them all hard returns.&lt;br /&gt;
&lt;br /&gt;
8. Click &amp;#039;&amp;#039;&amp;#039;Synchronize Labels&amp;#039;&amp;#039;&amp;#039; to update the other labels to be the same.&lt;br /&gt;
&lt;br /&gt;
9. Select the Address2 field.&lt;br /&gt;
&lt;br /&gt;
10. Choose &amp;#039;&amp;#039;&amp;#039;Insert &amp;gt; Section&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
11. Name the new section Suppress. Select the &amp;#039;&amp;#039;&amp;#039;Hide&amp;#039;&amp;#039;&amp;#039; checkbox and type the following condition.&lt;br /&gt;
   &amp;#039;&amp;#039;databasename.tablename.fieldname&amp;#039;&amp;#039; EQ &amp;quot;&amp;quot;    &lt;br /&gt;
The names are case sensitive and the last part is two double quotes together.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;databasename&amp;#039;&amp;#039; = DatabaseWithTwoAddresslines&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;tablename&amp;#039;&amp;#039; = Table1&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;fieldname&amp;#039;&amp;#039; = Address2&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|If you are using the Thunderbird address book as a data source, you need to use square brackets if the field name includes a space (i. e.:&amp;lt;nowiki&amp;gt;[Address 2]==&amp;quot;&amp;quot;&amp;lt;/nowiki&amp;gt; ) to hide the second line of the address if the Address 2 field is blank. In general, avoid field, table, or database names with spaces.}}&lt;br /&gt;
&lt;br /&gt;
12. Click &amp;#039;&amp;#039;&amp;#039;Insert&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
13. Click &amp;#039;&amp;#039;&amp;#039;Synchronize Labels&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
14. Now preview the data or print the data.&lt;br /&gt;
&lt;br /&gt;
If you need to change the section, select it in the first address and choose &amp;#039;&amp;#039;&amp;#039;Format &amp;gt; Section&amp;#039;&amp;#039;&amp;#039;. Select the one named &amp;#039;&amp;#039;&amp;#039;Suppress&amp;#039;&amp;#039;&amp;#039; for the master label and make changes, then click &amp;#039;&amp;#039;&amp;#039;OK&amp;#039;&amp;#039;&amp;#039;. Click &amp;#039;&amp;#039;&amp;#039;Synchronize labels&amp;#039;&amp;#039;&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Tip | Here is another way to suppress blank Address2 fields: After having replaced the soft returns by hard returns click at the end of the Address2 paragraph. Then choose &amp;#039;&amp;#039;&amp;#039;Insert &amp;gt; Fields &amp;gt; Other&amp;#039;&amp;#039;&amp;#039;, select the &amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; tab and click on &amp;#039;&amp;#039;&amp;#039;Hidden Paragraph&amp;#039;&amp;#039;&amp;#039; in the &amp;#039;&amp;#039;&amp;#039;Type&amp;#039;&amp;#039;&amp;#039; column. In the &amp;#039;&amp;#039;&amp;#039;Condition&amp;#039;&amp;#039;&amp;#039; box enter the condition that defines a blank address field.&lt;br /&gt;
&lt;br /&gt;
The condition has the general form of:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;databasename.tablename.fieldname&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; EQ &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you have the data table in view (F4), you don&amp;#039;t have to type the database field. You can enter it simply by selecting the field (column) in the table view and dragging it into the condition box.&lt;br /&gt;
&lt;br /&gt;
Now click &amp;#039;&amp;#039;&amp;#039;Insert&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Close&amp;#039;&amp;#039;&amp;#039; buttons, and &amp;#039;&amp;#039;&amp;#039;Synchronize Labels&amp;#039;&amp;#039;&amp;#039; as before.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This How To comes from [http://openoffice.blogs.com Solveig Haugland&amp;#039;s Blog]&lt;br /&gt;
{{PDL1}}&lt;/div&gt;</summary>
		<author><name>Jes</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ISNUMBER_function&amp;diff=92887</id>
		<title>Documentation/How Tos/Calc: ISNUMBER function</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ISNUMBER_function&amp;diff=92887"/>
		<updated>2008-09-15T20:14:15Z</updated>

		<summary type="html">&lt;p&gt;Jes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== ISNUMBER  ==&lt;br /&gt;
Tests if a cell contains a number.&lt;br /&gt;
&lt;br /&gt;
=== Syntax: ===&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER(value)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; if &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;value&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a number or logical value and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;FALSE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; currently (OOo2.3) considers the logical values &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;FALSE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; as numbers. See &amp;#039;&amp;#039;&amp;#039;Issues&amp;#039;&amp;#039;&amp;#039; below.&lt;br /&gt;
&lt;br /&gt;
=== Example: ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER(123)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER(“dog”)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;FALSE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER(D5)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: where D5 contains &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;99&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;, because D5 contains a  number.&lt;br /&gt;
&lt;br /&gt;
=== See also: ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: ISTEXT function|ISTEXT]]&amp;#039;&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: ISLOGICAL function|ISLOGICAL]]&amp;#039;&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: ISBLANK function|ISBLANK]]&amp;#039;&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: ISERROR function|ISERROR]]&amp;#039;&amp;#039;&amp;#039;,&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: ISFORMULA function|ISFORMULA]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Documentation/How_Tos/Calc: Information functions|Information functions]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[Documentation/How_Tos/Calc: Functions listed alphabetically|&amp;#039;&amp;#039;&amp;#039;Functions listed alphabetically&amp;#039;&amp;#039;&amp;#039;]],&lt;br /&gt;
[[Documentation/How_Tos/Calc: Functions listed by category|&amp;#039;&amp;#039;&amp;#039;Functions listed by category&amp;#039;&amp;#039;&amp;#039;]]&lt;br /&gt;
&lt;br /&gt;
=== Issues: ===&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;ISNUMBER(A1)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; where A1 is a logical value, returns &amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;TRUE&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;.  This behaviour is not compatible with other competing spreadsheets. See [http://qa.openoffice.org/issues/show_bug.cgi?id=84266 issue 84266].&lt;/div&gt;</summary>
		<author><name>Jes</name></author>
	</entry>
</feed>