1<?xml version="1.0" encoding="UTF-8"?> 2<helpdocument version="1.0"> 3 4<!--*********************************************************** 5 * 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the 11 * "License"); you may not use this file except in compliance 12 * with the License. You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, 17 * software distributed under the License is distributed on an 18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19 * KIND, either express or implied. See the License for the 20 * specific language governing permissions and limitations 21 * under the License. 22 * 23 ***********************************************************--> 24 25 26 27 28<meta> 29 <topic id="textscalc0104060110xml" indexer="include"> 30 <title xml-lang="en-US" id="tit">Text Functions</title> 31 <filename>/text/scalc/01/04060110.xhp</filename> 32 </topic> 33 </meta> 34 <body> 35<bookmark xml-lang="en-US" branch="index" id="bm_id3145389"><bookmark_value>text in cells; functions</bookmark_value> 36 <bookmark_value>functions; text functions</bookmark_value> 37 <bookmark_value>Function Wizard;text</bookmark_value> 38</bookmark> 39<paragraph xml-lang="en-US" id="hd_id3145389" role="heading" level="1" l10n="U" oldref="1">Text Functions</paragraph> 40 <paragraph xml-lang="en-US" id="par_id3152986" role="paragraph" l10n="CHG" oldref="2"><variable id="texttext">This section contains descriptions of the <emph>Text</emph> functions. 41</variable></paragraph> 42 <section id="howtoget"> 43 <embed href="text/scalc/00/00000404.xhp#eikatext"/> 44 </section> 45<sort order="asc"> 46<section id="arabic"> 47<bookmark xml-lang="en-US" branch="index" id="bm_id3149384"><bookmark_value>ARABIC function</bookmark_value> 48</bookmark> 49<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ARABISCH" id="bm_id3145359" localize="false"/> 50<paragraph xml-lang="en-US" id="hd_id3149384" role="heading" level="2" l10n="U" 51 oldref="239">ARABIC</paragraph> 52 <paragraph xml-lang="en-US" id="par_id3153558" role="paragraph" l10n="U" oldref="240"><ahelp hid="HID_FUNC_ARABISCH">Calculates the value of a Roman number. The value range must be between 0 and 3999.</ahelp></paragraph> 53 <paragraph xml-lang="en-US" id="hd_id3153011" role="heading" level="3" l10n="U" 54 oldref="241">Syntax</paragraph> 55 <paragraph xml-lang="en-US" id="par_id3155523" role="code" l10n="U" oldref="242">ARABIC("Text")</paragraph> 56 <paragraph xml-lang="en-US" id="par_id3151193" role="paragraph" l10n="U" oldref="243"> 57 <emph>Text</emph> is the text that represents a Roman number.</paragraph> 58 <paragraph xml-lang="en-US" id="hd_id3155758" role="heading" level="3" l10n="U" 59 oldref="244">Example</paragraph> 60 <paragraph xml-lang="en-US" id="par_id3154621" role="paragraph" l10n="U" oldref="245"> 61 <item type="input">=ARABIC("MXIV")</item> returns 1014</paragraph> 62 <paragraph xml-lang="en-US" id="par_id3147553" role="paragraph" l10n="U" oldref="246"> 63 <item type="input">=ARABIC("MMII")</item> returns 2002</paragraph> 64 </section> 65 <section id="asc"> 66<bookmark xml-lang="en-US" branch="index" id="bm_id8796349"><bookmark_value>ASC function</bookmark_value> 67</bookmark><comment>i79585</comment> 68<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ASC" id="bm_id3187353" localize="false"/> 69<paragraph xml-lang="en-US" id="hd_id7723929" role="heading" level="2" l10n="NEW">ASC</paragraph> 70 <paragraph xml-lang="en-US" id="par_id8455153" role="paragraph" l10n="NEW"><ahelp hid=".">The ASC function converts full-width to half-width ASCII and katakana characters. Returns a text string.</ahelp></paragraph> 71 <paragraph xml-lang="en-US" id="par_id9912411" role="paragraph" l10n="NEW">See <link href="http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions">http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions</link> for a conversion table.</paragraph> 72 <paragraph xml-lang="en-US" id="hd_id9204992" role="heading" level="3" l10n="NEW">Syntax</paragraph> 73 <paragraph xml-lang="en-US" id="par_id1993774" role="code" l10n="NEW">ASC("Text")</paragraph> 74 <paragraph xml-lang="en-US" id="par_id2949919" role="paragraph" l10n="NEW"> 75 <emph>Text</emph> is the text that contains characters to be converted.</paragraph> 76 <paragraph xml-lang="en-US" id="par_id2355113" role="paragraph" l10n="NEW">See also JIS function.</paragraph> 77 </section> 78 <section id="bahttext"> 79<bookmark xml-lang="en-US" branch="index" id="bm_id9323709"><bookmark_value>BAHTTEXT function</bookmark_value> 80</bookmark> 81<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BAHTTEXT" id="bm_id744346" localize="false"/><comment>i66350</comment> 82<paragraph xml-lang="en-US" id="hd_id6695455" role="heading" level="2" l10n="NEW">BAHTTEXT</paragraph> 83 <paragraph xml-lang="en-US" id="par_id354014" role="paragraph" l10n="NEW">Converts a number to Thai text, including the Thai currency names.</paragraph> 84 <paragraph xml-lang="en-US" id="hd_id9942014" role="heading" level="3" l10n="NEW">Syntax</paragraph> 85 <paragraph xml-lang="en-US" id="par_id8780785" role="code" l10n="NEW">BAHTTEXT(Number)</paragraph> 86 <paragraph xml-lang="en-US" id="par_id1539353" role="paragraph" l10n="NEW"> 87 <emph>Number</emph> is any number. "Baht" is appended to the integral part of the number, and "Satang" is appended to the decimal part of the number.</paragraph> 88 <paragraph xml-lang="en-US" id="hd_id9694814" role="heading" level="3" l10n="NEW">Example</paragraph> 89 <paragraph xml-lang="en-US" id="par_id3289284" role="paragraph" l10n="NEW"> 90 <item type="input">=BAHTTEXT(12.65)</item> returns a string in Thai characters with the meaning of "Twelve Baht and sixty five Satang".</paragraph> 91 </section> 92 <section id="base"> 93<bookmark xml-lang="en-US" branch="index" id="bm_id3153072"><bookmark_value>BASE function</bookmark_value> 94</bookmark> 95<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BASIS" id="bm_id3150957" localize="false"/> 96<paragraph xml-lang="en-US" id="hd_id3153072" role="heading" level="2" l10n="U" 97 oldref="213">BASE</paragraph> 98 <paragraph xml-lang="en-US" id="par_id3153289" role="paragraph" l10n="U" oldref="214"><ahelp hid="HID_FUNC_BASIS">Converts a positive integer to a specified base into a text from the <link href="text/shared/00/00000005.xhp#zahlensystem" name="numbering system">numbering system</link>.</ahelp> The digits 0-9 and the letters A-Z are used.</paragraph> 99 <paragraph xml-lang="en-US" id="hd_id3146097" role="heading" level="3" l10n="U" 100 oldref="215">Syntax</paragraph> 101 <paragraph xml-lang="en-US" id="par_id3155743" role="code" l10n="U" oldref="216">BASE(Number; Radix; [MinimumLength])</paragraph> 102 <paragraph xml-lang="en-US" id="par_id3151339" role="paragraph" l10n="U" oldref="217"> 103 <emph>Number</emph> is the positive integer to be converted.</paragraph> 104 <paragraph xml-lang="en-US" id="par_id3159262" role="paragraph" l10n="U" oldref="218"> 105 <emph>Radix</emph> indicates the base of the number system. It may be any positive integer between 2 and 36.</paragraph> 106 <paragraph xml-lang="en-US" id="par_id3148746" role="paragraph" l10n="U" oldref="219"> 107 <emph>MinimumLength</emph> (optional) determines the minimum length of the character sequence that has been created. If the text is shorter than the indicated minimum length, zeros are added to the left of the string.</paragraph> 108 <paragraph xml-lang="en-US" id="hd_id3146323" role="heading" level="3" l10n="U" 109 oldref="220">Example</paragraph> 110<bookmark xml-lang="en-US" branch="index" id="bm_id3156399"><bookmark_value>decimal system; converting to</bookmark_value> 111</bookmark> 112<paragraph xml-lang="en-US" id="par_id3156399" role="paragraph" l10n="U" oldref="221"> 113 <item type="input">=BASE(17;10;4)</item> returns 0017 in the decimal system.</paragraph> 114<bookmark xml-lang="en-US" branch="index" id="bm_id3157871"><bookmark_value>binary system; converting to</bookmark_value> 115</bookmark> 116<paragraph xml-lang="en-US" id="par_id3157871" role="paragraph" l10n="U" oldref="222"> 117 <item type="input">=BASE(17;2)</item> returns 10001 in the binary system.</paragraph> 118<bookmark xml-lang="en-US" branch="index" id="bm_id3145226"><bookmark_value>hexadecimal system; converting to</bookmark_value> 119</bookmark> 120<paragraph xml-lang="en-US" id="par_id3145226" role="paragraph" l10n="U" oldref="223"> 121 <item type="input">=BASE(255;16;4)</item> returns 00FF in the hexadecimal system.</paragraph> 122 </section> 123 <section id="char"> 124<bookmark xml-lang="en-US" branch="index" id="bm_id3149321"><bookmark_value>CHAR function</bookmark_value> 125</bookmark> 126<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ZEICHEN" id="bm_id3159128" localize="false"/> 127<paragraph xml-lang="en-US" id="hd_id3149321" role="heading" level="2" l10n="U" 128 oldref="201">CHAR</paragraph> 129 <paragraph xml-lang="en-US" id="par_id3149150" role="paragraph" l10n="U" oldref="202"><ahelp hid="HID_FUNC_ZEICHEN">Converts a number into a character according to the current code table.</ahelp> The number can be a two-digit or three-digit integer number.</paragraph> 130 <embed href="text/scalc/00/00000004.xhp#codes"/> 131 <paragraph xml-lang="en-US" id="hd_id3149945" role="heading" level="3" l10n="U" 132 oldref="203">Syntax</paragraph> 133 <paragraph xml-lang="en-US" id="par_id3145634" role="code" l10n="U" oldref="204">CHAR(Number)</paragraph> 134 <paragraph xml-lang="en-US" id="par_id3155906" role="paragraph" l10n="U" oldref="205"> 135 <emph>Number</emph> is a number between 1 and 255 representing the code value for the character.</paragraph> 136 <paragraph xml-lang="en-US" id="hd_id3152982" role="heading" level="3" l10n="U" 137 oldref="207">Example</paragraph> 138 <paragraph xml-lang="en-US" id="par_id3149890" role="paragraph" l10n="CHG" oldref="208"> 139 <item type="input">=CHAR(100)</item> returns the character d.</paragraph> 140 <paragraph xml-lang="en-US" id="par_id0907200910283297" role="paragraph" l10n="NEW">="abc" & CHAR(10) & "def" inserts a newline character into the string.</paragraph> 141 </section> 142 <section id="clean"> 143<bookmark xml-lang="en-US" branch="index" id="bm_id3149009"><bookmark_value>CLEAN function</bookmark_value> 144</bookmark> 145<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SAEUBERN" id="bm_id3148729" localize="false"/> 146<paragraph xml-lang="en-US" id="hd_id3149009" role="heading" level="2" l10n="U" 147 oldref="132">CLEAN</paragraph> 148 <paragraph xml-lang="en-US" id="par_id3150482" role="paragraph" l10n="U" oldref="133"><ahelp hid="HID_FUNC_SAEUBERN">All non-printing characters are removed from the string.</ahelp></paragraph> 149 <paragraph xml-lang="en-US" id="hd_id3146880" role="heading" level="3" l10n="U" 150 oldref="134">Syntax</paragraph> 151 <paragraph xml-lang="en-US" id="par_id3147472" role="code" l10n="U" oldref="135">CLEAN("Text")</paragraph> 152 <paragraph xml-lang="en-US" id="par_id3150695" role="paragraph" l10n="U" oldref="136"> 153 <emph>Text</emph> refers to the text from which to remove all non-printable characters.</paragraph> 154 </section> 155 <section id="code"> 156<bookmark xml-lang="en-US" branch="index" id="bm_id3155498"><bookmark_value>CODE function</bookmark_value> 157</bookmark> 158<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CODE" id="bm_id3159084" localize="false"/> 159<paragraph xml-lang="en-US" id="hd_id3155498" role="heading" level="2" l10n="U" oldref="3">CODE</paragraph> 160 <paragraph xml-lang="en-US" id="par_id3152770" role="paragraph" l10n="U" oldref="4"><ahelp hid="HID_FUNC_CODE">Returns a numeric code for the first character in a text string.</ahelp></paragraph> 161 <paragraph xml-lang="en-US" id="hd_id3155830" role="heading" level="3" l10n="U" oldref="5">Syntax</paragraph> 162 <paragraph xml-lang="en-US" id="par_id3149188" role="code" l10n="U" oldref="6">CODE("Text")</paragraph> 163 <paragraph xml-lang="en-US" id="par_id3154383" role="paragraph" l10n="U" oldref="7"> 164 <emph>Text</emph> is the text for which the code of the first character is to be found.</paragraph> 165 <embed href="text/scalc/00/00000004.xhp#codes"/> 166 <paragraph xml-lang="en-US" id="hd_id3154394" role="heading" level="3" l10n="U" oldref="8">Example</paragraph> 167 <paragraph xml-lang="en-US" id="par_id3159209" role="paragraph" l10n="U" oldref="9"> 168 <item type="input">=CODE("Hieronymus")</item> returns 72, <item type="input">=CODE("hieroglyphic")</item> returns 104.</paragraph> 169 <paragraph xml-lang="en-US" id="par_id3150280" role="note" l10n="U" oldref="211">The code used here does not refer to ASCII, but to the code table currently loaded.</paragraph> 170 </section> 171 <section id="concatenate"> 172<bookmark xml-lang="en-US" branch="index" id="bm_id3149688"><bookmark_value>CONCATENATE function</bookmark_value> 173</bookmark> 174<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_VERKETTEN" id="bm_id3153084" localize="false"/> 175<paragraph xml-lang="en-US" id="hd_id3149688" role="heading" level="2" l10n="U" 176 oldref="167">CONCATENATE</paragraph> 177 <paragraph xml-lang="en-US" id="par_id3154524" role="paragraph" l10n="U" oldref="168"><ahelp hid="HID_FUNC_VERKETTEN">Combines several text strings into one string.</ahelp></paragraph> 178 <paragraph xml-lang="en-US" id="hd_id3149542" role="heading" level="3" l10n="U" 179 oldref="169">Syntax</paragraph> 180 <paragraph xml-lang="en-US" id="par_id3155954" role="code" l10n="U" oldref="170">CONCATENATE("Text1"; ...; "Text30")</paragraph> 181 <paragraph xml-lang="en-US" id="par_id3146847" role="paragraph" l10n="U" oldref="171"> 182 <emph>Text 1; Text 2; ...</emph> represent up to 30 text passages which are to be combined into one string.</paragraph> 183 <paragraph xml-lang="en-US" id="hd_id3153110" role="heading" level="3" l10n="U" 184 oldref="172">Example</paragraph> 185 <paragraph xml-lang="en-US" id="par_id3150008" role="paragraph" l10n="U" oldref="173"> 186 <item type="input">=CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe")</item> returns: Good Morning Mrs. Doe.</paragraph> 187 </section> 188 <section id="decimal"> 189<bookmark xml-lang="en-US" branch="index" id="bm_id3145166"><bookmark_value>DECIMAL function</bookmark_value> 190</bookmark> 191<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DEZIMAL" id="bm_id3150338" localize="false"/> 192<paragraph xml-lang="en-US" id="hd_id3145166" role="heading" level="2" l10n="U" 193 oldref="225">DECIMAL</paragraph> 194 <paragraph xml-lang="en-US" id="par_id3156361" role="paragraph" l10n="U" oldref="226"><ahelp hid="HID_FUNC_DEZIMAL">Converts text with characters from a <link href="text/shared/00/00000005.xhp#zahlensystem" name="number system">number system</link> to a positive integer in the base radix given.</ahelp> The radix must be in the range 2 to 36. Spaces and tabs are ignored. The <emph>Text</emph> field is not case-sensitive.</paragraph> 195 <paragraph xml-lang="en-US" id="par_id3157994" role="paragraph" l10n="U" oldref="227">If the radix is 16, a leading x or X or 0x or 0X, and an appended h or H, is disregarded. If the radix is 2, an appended b or B is disregarded. Other characters that do not belong to the number system generate an error.</paragraph> 196 <paragraph xml-lang="en-US" id="hd_id3150014" role="heading" level="3" l10n="U" 197 oldref="228">Syntax</paragraph> 198 <paragraph xml-lang="en-US" id="par_id3154328" role="code" l10n="U" oldref="229">DECIMAL("Text"; Radix)</paragraph> 199 <paragraph xml-lang="en-US" id="par_id3150128" role="paragraph" l10n="U" oldref="230"> 200 <emph>Text</emph> is the text to be converted. To differentiate between a hexadecimal number, such as A1 and the reference to cell A1, you must place the number in quotation marks, for example, "A1" or "FACE".</paragraph> 201 <paragraph xml-lang="en-US" id="par_id3145241" role="paragraph" l10n="U" oldref="231"> 202 <emph>Radix</emph> indicates the base of the number system. It may be any positive integer between 2 and 36.</paragraph> 203 <paragraph xml-lang="en-US" id="hd_id3156062" role="heading" level="3" l10n="U" 204 oldref="232">Example</paragraph> 205 <paragraph xml-lang="en-US" id="par_id3145355" role="paragraph" l10n="U" oldref="233"> 206 <item type="input">=DECIMAL("17";10)</item> returns 17.</paragraph> 207 <paragraph xml-lang="en-US" id="par_id3155622" role="paragraph" l10n="U" oldref="234"> 208 <item type="input">=DECIMAL("FACE";16)</item> returns 64206.</paragraph> 209 <paragraph xml-lang="en-US" id="par_id3151015" role="paragraph" l10n="U" oldref="235"> 210 <item type="input">=DECIMAL("0101";2)</item> returns 5.</paragraph> 211 </section> 212 <section id="dollar"> 213<bookmark xml-lang="en-US" branch="index" id="bm_id3148402"><bookmark_value>DOLLAR function</bookmark_value> 214</bookmark> 215<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_DM" id="bm_id3149532" localize="false"/> 216<paragraph xml-lang="en-US" id="hd_id3148402" role="heading" level="2" l10n="U" 217 oldref="11">DOLLAR</paragraph> 218 <paragraph xml-lang="en-US" id="par_id3153049" role="paragraph" l10n="U" oldref="12"><ahelp hid="HID_FUNC_DM">Converts a number to an amount in the currency format, rounded to a specified decimal place.</ahelp> In the <item type="literal">Value</item> field enter the number to be converted to currency. Optionally, you may enter the number of decimal places in the <item type="literal">Decimals</item> field. If no value is specified, all numbers in currency format will be displayed with two decimal places. </paragraph> 219 <paragraph xml-lang="en-US" id="par_id3151280" role="paragraph" l10n="U" oldref="263">You set the currency format in your system settings.</paragraph> 220 <paragraph xml-lang="en-US" id="hd_id3150569" role="heading" level="3" l10n="U" 221 oldref="13">Syntax</paragraph> 222 <paragraph xml-lang="en-US" id="par_id3154188" role="code" l10n="U" oldref="14">DOLLAR(Value; Decimals)</paragraph> 223 <paragraph xml-lang="en-US" id="par_id3145299" role="paragraph" l10n="U" oldref="15"> 224 <emph>Value</emph> is a number, a reference to a cell containing a number, or a formula which returns a number.</paragraph> 225 <paragraph xml-lang="en-US" id="par_id3145629" role="paragraph" l10n="CHG" oldref="16"> 226 <emph>Decimals</emph> is the optional number of decimal places.</paragraph> 227 <paragraph xml-lang="en-US" id="hd_id3149030" role="heading" level="3" l10n="U" 228 oldref="17">Example</paragraph> 229 <paragraph xml-lang="en-US" id="par_id3153546" role="paragraph" l10n="U" oldref="18"> 230 <item type="input">=DOLLAR(255)</item> returns $255.00.</paragraph> 231 <paragraph xml-lang="en-US" id="par_id3154635" role="paragraph" l10n="U" oldref="19"> 232 <item type="input">=DOLLAR(367.456;2)</item> returns $367.46. Use the decimal separator that corresponds to the <link href="text/shared/optionen/01140000.xhp" name="current locale setting">current locale setting</link>.</paragraph> 233 </section> 234 <section id="exact"> 235<bookmark xml-lang="en-US" branch="index" id="bm_id3150685"><bookmark_value>EXACT function</bookmark_value> 236</bookmark> 237<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_IDENTISCH" id="bm_id3155081" localize="false"/> 238<paragraph xml-lang="en-US" id="hd_id3150685" role="heading" level="2" l10n="U" 239 oldref="78">EXACT</paragraph> 240 <paragraph xml-lang="en-US" id="par_id3158413" role="paragraph" l10n="U" oldref="79"><ahelp hid="HID_FUNC_IDENTISCH">Compares two text strings and returns TRUE if they are identical.</ahelp> This function is case-sensitive.</paragraph> 241 <paragraph xml-lang="en-US" id="hd_id3152817" role="heading" level="3" l10n="U" 242 oldref="80">Syntax</paragraph> 243 <paragraph xml-lang="en-US" id="par_id3148594" role="code" l10n="U" oldref="81">EXACT("Text1"; "Text2")</paragraph> 244 <paragraph xml-lang="en-US" id="par_id3153224" role="paragraph" l10n="U" oldref="82"> 245 <emph>Text1</emph> refers to the first text to compare.</paragraph> 246 <paragraph xml-lang="en-US" id="par_id3148637" role="paragraph" l10n="U" oldref="83"> 247 <emph>Text2</emph> is the second text to compare.</paragraph> 248 <paragraph xml-lang="en-US" id="hd_id3149777" role="heading" level="3" l10n="U" 249 oldref="84">Example</paragraph> 250 <paragraph xml-lang="en-US" id="par_id3156263" role="paragraph" l10n="U" oldref="85"> 251 <item type="input">=EXACT("microsystems";"Microsystems")</item> returns FALSE.</paragraph> 252 </section> 253 <section id="find"> 254<bookmark xml-lang="en-US" branch="index" id="bm_id3152589"><bookmark_value>FIND function</bookmark_value> 255</bookmark> 256<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FINDEN" id="bm_id3147482" localize="false"/> 257<paragraph xml-lang="en-US" id="hd_id3152589" role="heading" level="2" l10n="U" 258 oldref="44">FIND</paragraph> 259 <paragraph xml-lang="en-US" id="par_id3146149" role="paragraph" l10n="U" oldref="45"><ahelp hid="HID_FUNC_FINDEN">Looks for a string of text within another string.</ahelp> You can also define where to begin the search. The search term can be a number or any string of characters. The search is case-sensitive.</paragraph> 260 <paragraph xml-lang="en-US" id="hd_id3083284" role="heading" level="3" l10n="U" 261 oldref="46">Syntax</paragraph> 262 <paragraph xml-lang="en-US" id="par_id3083452" role="code" l10n="U" oldref="47">FIND("FindText"; "Text"; Position)</paragraph> 263 <paragraph xml-lang="en-US" id="par_id3150608" role="paragraph" l10n="U" oldref="48"> 264 <emph>FindText</emph> refers to the text to be found.</paragraph> 265 <paragraph xml-lang="en-US" id="par_id3152374" role="paragraph" l10n="U" oldref="49"> 266 <emph>Text</emph> is the text where the search takes place.</paragraph> 267 <paragraph xml-lang="en-US" id="par_id3152475" role="paragraph" l10n="U" oldref="50"> 268 <emph>Position</emph> (optional) is the position in the text from which the search starts.</paragraph> 269 <paragraph xml-lang="en-US" id="hd_id3154812" role="heading" level="3" l10n="U" 270 oldref="51">Example</paragraph> 271 <paragraph xml-lang="en-US" id="par_id3156375" role="paragraph" l10n="U" oldref="52"> 272 <item type="input">=FIND(76;998877665544)</item> returns 6.</paragraph> 273 </section> 274 <section id="fixed"> 275<bookmark xml-lang="en-US" branch="index" id="bm_id3149268"><bookmark_value>FIXED function</bookmark_value> 276</bookmark> 277<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_FEST" id="bm_id3149450" localize="false"/> 278<paragraph xml-lang="en-US" id="hd_id3149268" role="heading" level="2" l10n="U" 279 oldref="34">FIXED</paragraph> 280 <paragraph xml-lang="en-US" id="par_id3155833" role="paragraph" l10n="CHG" oldref="35"><ahelp hid="HID_FUNC_FEST">Returns a number as text with a specified number of decimal places and optional thousands separators.</ahelp></paragraph> 281 <paragraph xml-lang="en-US" id="hd_id3152470" role="heading" level="3" l10n="U" 282 oldref="36">Syntax</paragraph> 283 <paragraph xml-lang="en-US" id="par_id3147567" role="code" l10n="U" oldref="37">FIXED(Number; Decimals; NoThousandsSeparators)</paragraph> 284 <paragraph xml-lang="en-US" id="par_id3151272" role="paragraph" l10n="U" oldref="38"> 285 <emph>Number</emph> refers to the number to be formatted.</paragraph> 286 <paragraph xml-lang="en-US" id="par_id3156322" role="paragraph" l10n="U" oldref="39"> 287 <emph>Decimals</emph> refers to the number of decimal places to be displayed.</paragraph> 288 <paragraph xml-lang="en-US" id="par_id3150877" role="paragraph" l10n="U" oldref="40"> 289 <emph>NoThousandsSeparators</emph> (optional) determines whether the thousands separator is used. If the parameter is a number not equal to 0, the thousands separator is suppressed. If the parameter is equal to 0 or if it is missing altogether, the thousands separators of your <link href="text/shared/optionen/01140000.xhp" name="current locale setting">current locale setting</link> are displayed.</paragraph> 290 <paragraph xml-lang="en-US" id="hd_id3149040" role="heading" level="3" l10n="U" 291 oldref="41">Example</paragraph> 292 <paragraph xml-lang="en-US" id="par_id3145208" role="paragraph" l10n="CHG" oldref="42"> 293 <item type="input">=FIXED(1234567.89;3)</item> returns 1,234,567.890 as a text string. </paragraph> 294 <paragraph xml-lang="en-US" id="par_id5282143" role="paragraph" l10n="NEW"> 295 <item type="input">=FIXED(1234567.89;3;1)</item> returns 1234567.890 as a text string.</paragraph> 296 </section> 297 <section id="jis"> 298<bookmark xml-lang="en-US" branch="index" id="bm_id7319864"><bookmark_value>JIS function</bookmark_value> 299</bookmark> 300<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_JIS" id="bm_id3818475" localize="false"/> 301<paragraph xml-lang="en-US" id="hd_id3666188" role="heading" level="2" l10n="NEW">JIS</paragraph> 302 <paragraph xml-lang="en-US" id="par_id964384" role="paragraph" l10n="NEW"><ahelp hid=".">The JIS function converts half-width to full-width ASCII and katakana characters. Returns a text string.</ahelp></paragraph> 303 <paragraph xml-lang="en-US" id="par_id1551561" role="paragraph" l10n="NEW">See <link href="http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions">http://wiki.services.openoffice.org/mwiki/index.php?title=Calc/Features/JIS_and_ASC_functions</link> for a conversion table.</paragraph> 304 <paragraph xml-lang="en-US" id="hd_id2212897" role="heading" level="3" l10n="NEW">Syntax</paragraph> 305 <paragraph xml-lang="en-US" id="par_id2504654" role="code" l10n="NEW">JIS("Text")</paragraph> 306 <paragraph xml-lang="en-US" id="par_id5292519" role="paragraph" l10n="NEW"> 307 <emph>Text</emph> is the text that contains characters to be converted.</paragraph> 308 <paragraph xml-lang="en-US" id="par_id3984496" role="paragraph" l10n="NEW">See also ASC function.</paragraph> 309 </section> 310 <section id="left"> 311<bookmark xml-lang="en-US" branch="index" id="bm_id3147083"><bookmark_value>LEFT function</bookmark_value> 312</bookmark> 313<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_LINKS" id="bm_id3154645" localize="false"/> 314<paragraph xml-lang="en-US" id="hd_id3147083" role="heading" level="2" l10n="U" 315 oldref="95">LEFT</paragraph> 316 <paragraph xml-lang="en-US" id="par_id3153622" role="paragraph" l10n="CHG" oldref="96"><ahelp hid="HID_FUNC_LINKS">Returns the first character or characters of a text.</ahelp></paragraph> 317 <paragraph xml-lang="en-US" id="hd_id3156116" role="heading" level="3" l10n="U" 318 oldref="97">Syntax</paragraph> 319 <paragraph xml-lang="en-US" id="par_id3146786" role="code" l10n="U" oldref="98">LEFT("Text"; Number)</paragraph> 320 <paragraph xml-lang="en-US" id="par_id3147274" role="paragraph" l10n="U" oldref="99"> 321 <emph>Text</emph> is the text where the initial partial words are to be determined.</paragraph> 322 <paragraph xml-lang="en-US" id="par_id3153152" role="paragraph" l10n="U" oldref="100"> 323 <emph>Number</emph> (optional) specifies the number of characters for the start text. If this parameter is not defined, one character is returned.</paragraph> 324 <paragraph xml-lang="en-US" id="hd_id3150260" role="heading" level="3" l10n="U" 325 oldref="101">Example</paragraph> 326 <paragraph xml-lang="en-US" id="par_id3149141" role="paragraph" l10n="U" oldref="102"> 327 <item type="input">=LEFT("output";3)</item> returns “out”.</paragraph> 328 </section> 329 <section id="len"> 330<bookmark xml-lang="en-US" branch="index" id="bm_id3156110"><bookmark_value>LEN function</bookmark_value> 331</bookmark> 332<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_LAENGE" id="bm_id3154050" localize="false"/> 333<paragraph xml-lang="en-US" id="hd_id3156110" role="heading" level="2" l10n="U" 334 oldref="104">LEN</paragraph> 335 <paragraph xml-lang="en-US" id="par_id3150147" role="paragraph" l10n="U" oldref="105"><ahelp hid="HID_FUNC_LAENGE">Returns the length of a string including spaces.</ahelp></paragraph> 336 <paragraph xml-lang="en-US" id="hd_id3155108" role="heading" level="3" l10n="U" 337 oldref="106">Syntax</paragraph> 338 <paragraph xml-lang="en-US" id="par_id3154063" role="code" l10n="U" oldref="107">LEN("Text")</paragraph> 339 <paragraph xml-lang="en-US" id="par_id3146894" role="paragraph" l10n="U" oldref="108"> 340 <emph>Text</emph> is the text whose length is to be determined.</paragraph> 341 <paragraph xml-lang="en-US" id="hd_id3153884" role="heading" level="3" l10n="U" 342 oldref="109">Example</paragraph> 343 <paragraph xml-lang="en-US" id="par_id3156008" role="paragraph" l10n="U" oldref="110"> 344 <item type="input">=LEN("Good Afternoon")</item> returns 14.</paragraph> 345 <paragraph xml-lang="en-US" id="par_id3154300" role="paragraph" l10n="U" oldref="111"> 346 <item type="input">=LEN(12345.67)</item> returns 8.</paragraph> 347 </section> 348 <section id="lower"> 349<bookmark xml-lang="en-US" branch="index" id="bm_id3153983"><bookmark_value>LOWER function</bookmark_value> 350</bookmark> 351<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_KLEIN" id="bm_id3151173" localize="false"/> 352<paragraph xml-lang="en-US" id="hd_id3153983" role="heading" level="2" l10n="U" 353 oldref="87">LOWER</paragraph> 354 <paragraph xml-lang="en-US" id="par_id3152791" role="paragraph" l10n="U" oldref="88"><ahelp hid="HID_FUNC_KLEIN">Converts all uppercase letters in a text string to lowercase.</ahelp></paragraph> 355 <paragraph xml-lang="en-US" id="hd_id3155902" role="heading" level="3" l10n="U" 356 oldref="89">Syntax</paragraph> 357 <paragraph xml-lang="en-US" id="par_id3150121" role="code" l10n="U" oldref="90">LOWER("Text")</paragraph> 358 <paragraph xml-lang="en-US" id="par_id3153910" role="paragraph" l10n="U" oldref="91"> 359 <emph>Text</emph> refers to the text to be converted.</paragraph> 360 <paragraph xml-lang="en-US" id="hd_id3159343" role="heading" level="3" l10n="U" 361 oldref="92">Example</paragraph> 362 <paragraph xml-lang="en-US" id="par_id3155329" role="paragraph" l10n="U" oldref="93"> 363 <item type="input">=LOWER("Sun")</item> returns sun.</paragraph> 364 </section> 365 <section id="mid"> 366<bookmark xml-lang="en-US" branch="index" id="bm_id3154589"><bookmark_value>MID function</bookmark_value> 367</bookmark> 368<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_TEIL" id="bm_id3155392" localize="false"/> 369<paragraph xml-lang="en-US" id="hd_id3154589" role="heading" level="2" l10n="U" 370 oldref="148">MID</paragraph> 371 <paragraph xml-lang="en-US" id="par_id3154938" role="paragraph" l10n="CHG" oldref="149"><ahelp hid="HID_FUNC_TEIL">Returns a text string of a text. The parameters specify the starting position and the number of characters.</ahelp></paragraph> 372 <paragraph xml-lang="en-US" id="hd_id3148829" role="heading" level="3" l10n="U" 373 oldref="150">Syntax</paragraph> 374 <paragraph xml-lang="en-US" id="par_id3150526" role="code" l10n="U" oldref="151">MID("Text"; Start; Number)</paragraph> 375 <paragraph xml-lang="en-US" id="par_id3148820" role="paragraph" l10n="U" oldref="152"> 376 <emph>Text</emph> is the text containing the characters to extract.</paragraph> 377 <paragraph xml-lang="en-US" id="par_id3150774" role="paragraph" l10n="U" oldref="153"> 378 <emph>Start</emph> is the position of the first character in the text to extract.</paragraph> 379 <paragraph xml-lang="en-US" id="par_id3153063" role="paragraph" l10n="U" oldref="154"> 380 <emph>Number</emph> specifies the number of characters in the part of the text.</paragraph> 381 <paragraph xml-lang="en-US" id="hd_id3150509" role="heading" level="3" l10n="U" 382 oldref="155">Example</paragraph> 383 <paragraph xml-lang="en-US" id="par_id3158407" role="paragraph" l10n="U" oldref="156"> 384 <item type="input">=MID("office";2;2)</item> returns ff.</paragraph> 385 </section> 386 <section id="proper"> 387<bookmark xml-lang="en-US" branch="index" id="bm_id3159143"><bookmark_value>PROPER function</bookmark_value> 388</bookmark> 389<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_GROSS2" id="bm_id3154897" localize="false"/> 390<paragraph xml-lang="en-US" id="hd_id3159143" role="heading" level="2" l10n="U" 391 oldref="70">PROPER</paragraph> 392 <paragraph xml-lang="en-US" id="par_id3149768" role="paragraph" l10n="U" oldref="71"><ahelp hid="HID_FUNC_GROSS2">Capitalizes the first letter in all words of a text string.</ahelp></paragraph> 393 <paragraph xml-lang="en-US" id="hd_id3153573" role="heading" level="3" l10n="U" 394 oldref="72">Syntax</paragraph> 395 <paragraph xml-lang="en-US" id="par_id3154260" role="code" l10n="U" oldref="73">PROPER("Text")</paragraph> 396 <paragraph xml-lang="en-US" id="par_id3147509" role="paragraph" l10n="U" oldref="74"> 397 <emph>Text</emph> refers to the text to be converted.</paragraph> 398 <paragraph xml-lang="en-US" id="hd_id3147529" role="heading" level="3" l10n="U" 399 oldref="75">Example</paragraph> 400 <paragraph xml-lang="en-US" id="par_id3155364" role="paragraph" l10n="U" oldref="76"> 401 <item type="input">=PROPER("open office")</item> returns Open Office.</paragraph> 402 </section> 403 <section id="replace"> 404<bookmark xml-lang="en-US" branch="index" id="bm_id3149171"><bookmark_value>REPLACE function</bookmark_value> 405</bookmark> 406<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ERSETZEN" id="bm_id3149990" localize="false"/> 407<paragraph xml-lang="en-US" id="hd_id3149171" role="heading" level="2" l10n="U" 408 oldref="22">REPLACE</paragraph> 409 <paragraph xml-lang="en-US" id="par_id3148925" role="paragraph" l10n="U" oldref="23"><ahelp hid="HID_FUNC_ERSETZEN">Replaces part of a text string with a different text string.</ahelp> This function can be used to replace both characters and numbers (which are automatically converted to text). The result of the function is always displayed as text. If you intend to perform further calculations with a number which has been replaced by text, you will need to convert it back to a number using the <link href="text/scalc/01/04060110.xhp" name="VALUE">VALUE</link> function.</paragraph> 410 <paragraph xml-lang="en-US" id="par_id3158426" role="paragraph" l10n="U" oldref="24">Any text containing numbers must be enclosed in quotation marks if you do not want it to be interpreted as a number and automatically converted to text.</paragraph> 411 <paragraph xml-lang="en-US" id="hd_id3149159" role="heading" level="3" l10n="U" 412 oldref="25">Syntax</paragraph> 413 <paragraph xml-lang="en-US" id="par_id3147286" role="code" l10n="U" oldref="26">REPLACE("Text"; Position; Length; "NewText")</paragraph> 414 <paragraph xml-lang="en-US" id="par_id3149797" role="paragraph" l10n="U" oldref="27"> 415 <emph>Text</emph> refers to text of which a part will be replaced.</paragraph> 416 <paragraph xml-lang="en-US" id="par_id3166451" role="paragraph" l10n="U" oldref="28"> 417 <emph>Position</emph> refers to the position within the text where the replacement will begin.</paragraph> 418 <paragraph xml-lang="en-US" id="par_id3156040" role="paragraph" l10n="U" oldref="29"> 419 <emph>Length</emph> is the number of characters in <emph>Text</emph> to be replaced.</paragraph> 420 <paragraph xml-lang="en-US" id="par_id3159188" role="paragraph" l10n="U" oldref="30"> 421 <emph>NewText</emph> refers to the text which replaces <emph>Text</emph>.</paragraph> 422 <paragraph xml-lang="en-US" id="hd_id3146958" role="heading" level="3" l10n="U" 423 oldref="31">Example</paragraph> 424 <paragraph xml-lang="en-US" id="par_id3154096" role="paragraph" l10n="U" oldref="32"> 425 <item type="input">=REPLACE("1234567";1;1;"444")</item> returns "444234567". One character at position 1 is replaced by the complete <item type="literal">NewText</item>.</paragraph> 426 </section> 427 <section id="rept"> 428<bookmark xml-lang="en-US" branch="index" id="bm_id3149741"><bookmark_value>REPT function</bookmark_value> 429</bookmark> 430<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_WIEDERHOLEN" id="bm_id3155582" localize="false"/> 431<paragraph xml-lang="en-US" id="hd_id3149741" role="heading" level="2" l10n="U" 432 oldref="193">REPT</paragraph> 433 <paragraph xml-lang="en-US" id="par_id3153748" role="paragraph" l10n="U" oldref="194"><ahelp hid="HID_FUNC_WIEDERHOLEN">Repeats a character string by the given <emph>number</emph> of copies.</ahelp></paragraph> 434 <paragraph xml-lang="en-US" id="hd_id3152884" role="heading" level="3" l10n="U" 435 oldref="195">Syntax</paragraph> 436 <paragraph xml-lang="en-US" id="par_id3150494" role="code" l10n="U" oldref="196">REPT("Text"; Number)</paragraph> 437 <paragraph xml-lang="en-US" id="par_id3154859" role="paragraph" l10n="U" oldref="197"> 438 <emph>Text</emph> is the text to be repeated.</paragraph> 439 <paragraph xml-lang="en-US" id="par_id3150638" role="paragraph" l10n="U" oldref="198"> 440 <emph>Number</emph> is the number of repetitions.</paragraph> 441 <paragraph xml-lang="en-US" id="par_id3149922" role="paragraph" l10n="U" oldref="212">The result can be a maximum of 255 characters.</paragraph> 442 <paragraph xml-lang="en-US" id="hd_id3156213" role="heading" level="3" l10n="U" 443 oldref="199">Example</paragraph> 444 <paragraph xml-lang="en-US" id="par_id3148626" role="paragraph" l10n="U" oldref="200"> 445 <item type="input">=REPT("Good morning";2)</item> returns Good morningGood morning.</paragraph> 446 </section> 447 <section id="right"> 448<bookmark xml-lang="en-US" branch="index" id="bm_id3149805"><bookmark_value>RIGHT function</bookmark_value> 449</bookmark> 450<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_RECHTS" id="bm_id3154602" localize="false"/> 451<paragraph xml-lang="en-US" id="hd_id3149805" role="heading" level="2" l10n="U" 452 oldref="113">RIGHT</paragraph> 453 <paragraph xml-lang="en-US" id="par_id3145375" role="paragraph" l10n="CHG" oldref="114"><ahelp hid="HID_FUNC_RECHTS">Returns the last character or characters of a text.</ahelp></paragraph> 454 <paragraph xml-lang="en-US" id="hd_id3150837" role="heading" level="3" l10n="U" 455 oldref="115">Syntax</paragraph> 456 <paragraph xml-lang="en-US" id="par_id3154344" role="code" l10n="U" oldref="116">RIGHT("Text"; Number)</paragraph> 457 <paragraph xml-lang="en-US" id="par_id3149426" role="paragraph" l10n="U" oldref="117"> 458 <emph>Text</emph> is the text of which the right part is to be determined.</paragraph> 459 <paragraph xml-lang="en-US" id="par_id3153350" role="paragraph" l10n="U" oldref="118"> 460 <emph>Number</emph> (optional) is the number of characters from the right part of the text.</paragraph> 461 <paragraph xml-lang="en-US" id="hd_id3148661" role="heading" level="3" l10n="U" 462 oldref="119">Example</paragraph> 463 <paragraph xml-lang="en-US" id="par_id3151132" role="paragraph" l10n="U" oldref="120"> 464 <item type="input">=RIGHT("Sun";2)</item> returns un.</paragraph> 465 </section> 466 <section id="roman"> 467<bookmark xml-lang="en-US" branch="index" id="bm_id3153534"><bookmark_value>ROMAN function</bookmark_value> 468</bookmark> 469<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ROEMISCH" id="bm_id3144755" localize="false"/> 470<paragraph xml-lang="en-US" id="hd_id3153534" role="heading" level="2" l10n="U" 471 oldref="248">ROMAN</paragraph> 472 <paragraph xml-lang="en-US" id="par_id3151256" role="paragraph" l10n="U" oldref="249"><ahelp hid="HID_FUNC_ROEMISCH">Converts a number into a Roman numeral. The value range must be between 0 and 3999, the modes can be integers from 0 to 4.</ahelp></paragraph> 473 <paragraph xml-lang="en-US" id="hd_id3149299" role="heading" level="3" l10n="U" 474 oldref="250">Syntax</paragraph> 475 <paragraph xml-lang="en-US" id="par_id3150593" role="code" l10n="U" oldref="251">ROMAN(Number; Mode)</paragraph> 476 <paragraph xml-lang="en-US" id="par_id3156139" role="paragraph" l10n="U" oldref="252"> 477 <emph>Number</emph> is the number that is to be converted into a Roman numeral.</paragraph> 478 <paragraph xml-lang="en-US" id="par_id3153318" role="paragraph" l10n="U" oldref="253"> 479 <emph>Mode</emph> (optional) indicates the degree of simplification. The higher the value, the greater is the simplification of the Roman number.</paragraph> 480 <paragraph xml-lang="en-US" id="hd_id3145306" role="heading" level="3" l10n="U" 481 oldref="254">Example</paragraph> 482 <paragraph xml-lang="en-US" id="par_id3151371" role="paragraph" l10n="U" oldref="255"> 483 <item type="input">=ROMAN(999)</item> returns CMXCIX</paragraph> 484 <paragraph xml-lang="en-US" id="par_id3153938" role="paragraph" l10n="U" oldref="256"> 485 <item type="input">=ROMAN(999;0)</item> returns CMXCIX</paragraph> 486 <paragraph xml-lang="en-US" id="par_id3148412" role="paragraph" l10n="U" oldref="257"> 487 <item type="input">=ROMAN (999;1)</item> returns LMVLIV</paragraph> 488 <paragraph xml-lang="en-US" id="par_id3155421" role="paragraph" l10n="U" oldref="258"> 489 <item type="input">=ROMAN(999;2)</item> returns XMIX</paragraph> 490 <paragraph xml-lang="en-US" id="par_id3149235" role="paragraph" l10n="U" oldref="259"> 491 <item type="input">=ROMAN(999;3)</item> returns VMIV</paragraph> 492 <paragraph xml-lang="en-US" id="par_id3150624" role="paragraph" l10n="U" oldref="260"> 493 <item type="input">=ROMAN(999;4)</item> returns IM</paragraph> 494 </section> 495 <section id="search"> 496<bookmark xml-lang="en-US" branch="index" id="bm_id3151005"><bookmark_value>SEARCH function</bookmark_value> 497</bookmark> 498<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_SUCHEN" id="bm_id3149484" localize="false"/> 499<paragraph xml-lang="en-US" id="hd_id3151005" role="heading" level="2" l10n="U" 500 oldref="122">SEARCH</paragraph> 501 <paragraph xml-lang="en-US" id="par_id3148692" role="paragraph" l10n="U" oldref="123"><ahelp hid="HID_FUNC_SUCHEN">Returns the position of a text segment within a character string.</ahelp> You can set the start of the search as an option. The search text can be a number or any sequence of characters. The search is not case-sensitive.</paragraph> 502 <embed href="text/shared/00/00000001.xhp#regulaer"/> 503 <paragraph xml-lang="en-US" id="hd_id3152964" role="heading" level="3" l10n="U" 504 oldref="124">Syntax</paragraph> 505 <paragraph xml-lang="en-US" id="par_id3154671" role="code" l10n="U" oldref="125">SEARCH("FindText"; "Text"; Position)</paragraph> 506 <paragraph xml-lang="en-US" id="par_id3146080" role="paragraph" l10n="U" oldref="126"> 507 <emph>FindText</emph> is the text to be searched for.</paragraph> 508 <paragraph xml-lang="en-US" id="par_id3154111" role="paragraph" l10n="U" oldref="127"> 509 <emph>Text</emph> is the text where the search will take place.</paragraph> 510 <paragraph xml-lang="en-US" id="par_id3149559" role="paragraph" l10n="U" oldref="128"> 511 <emph>Position</emph> (optional) is the position in the text where the search is to start.</paragraph> 512 <paragraph xml-lang="en-US" id="hd_id3147322" role="heading" level="3" l10n="U" 513 oldref="129">Example</paragraph> 514 <paragraph xml-lang="en-US" id="par_id3154564" role="paragraph" l10n="U" oldref="130"> 515 <item type="input">=SEARCH(54;998877665544)</item> returns 10.</paragraph> 516 </section> 517 <section id="substitute"> 518<bookmark xml-lang="en-US" branch="index" id="bm_id3154830"><bookmark_value>SUBSTITUTE function</bookmark_value> 519</bookmark> 520<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_WECHSELN" id="bm_id3147090" localize="false"/> 521<paragraph xml-lang="en-US" id="hd_id3154830" role="heading" level="2" l10n="U" 522 oldref="174">SUBSTITUTE</paragraph> 523 <paragraph xml-lang="en-US" id="par_id3153698" role="paragraph" l10n="U" oldref="175"><ahelp hid="HID_FUNC_WECHSELN">Substitutes new text for old text in a string.</ahelp></paragraph> 524 <paragraph xml-lang="en-US" id="hd_id3150994" role="heading" level="3" l10n="U" 525 oldref="176">Syntax</paragraph> 526 <paragraph xml-lang="en-US" id="par_id3147582" role="code" l10n="U" oldref="177">SUBSTITUTE("Text"; "SearchText"; "NewText"; Occurrence)</paragraph> 527 <paragraph xml-lang="en-US" id="par_id3153675" role="paragraph" l10n="U" oldref="178"> 528 <emph>Text</emph> is the text in which text segments are to be exchanged.</paragraph> 529 <paragraph xml-lang="en-US" id="par_id3156155" role="paragraph" l10n="U" oldref="179"> 530 <emph>SearchText </emph>is the text segment that is to be replaced (a number of times).</paragraph> 531 <paragraph xml-lang="en-US" id="par_id3145779" role="paragraph" l10n="U" oldref="180"> 532 <emph>NewText</emph> is the text that is to replace the text segment.</paragraph> 533 <paragraph xml-lang="en-US" id="par_id3150348" role="paragraph" l10n="CHG" oldref="181"> 534 <emph>Occurrence</emph> (optional) indicates which occurrence of the search text is to be replaced. If this parameter is missing the search text is replaced throughout.</paragraph> 535 <paragraph xml-lang="en-US" id="hd_id3150946" role="heading" level="3" l10n="U" 536 oldref="182">Example</paragraph> 537 <paragraph xml-lang="en-US" id="par_id3150412" role="paragraph" l10n="U" oldref="183"> 538 <item type="input">=SUBSTITUTE("123123123";"3";"abc")</item> returns 12abc12abc12abc.</paragraph> 539 <paragraph xml-lang="en-US" id="par_id3154915" role="paragraph" l10n="U" oldref="238"> 540 <item type="input">=SUBSTITUTE("123123123";"3";"abc";2)</item> returns 12312abc123.</paragraph> 541 </section> 542 <section id="t"> 543<bookmark xml-lang="en-US" branch="index" id="bm_id3148977"><bookmark_value>T function</bookmark_value> 544</bookmark> 545<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_T" id="bm_id3156051" localize="false"/> 546<paragraph xml-lang="en-US" id="hd_id3148977" role="heading" level="2" l10n="U" 547 oldref="140">T</paragraph> 548 <paragraph xml-lang="en-US" id="par_id3154359" role="paragraph" l10n="CHG" oldref="141"><ahelp hid="HID_FUNC_T">This function returns the target text, or a blank text string if the target is not text.</ahelp></paragraph> 549 <paragraph xml-lang="en-US" id="hd_id3155858" role="heading" level="3" l10n="U" 550 oldref="142">Syntax</paragraph> 551 <paragraph xml-lang="en-US" id="par_id3155871" role="code" l10n="U" oldref="143">T(Value)</paragraph> 552 <paragraph xml-lang="en-US" id="par_id3154726" role="paragraph" l10n="CHG" oldref="144">If <emph>Value</emph> is a text string or refers to a text string, T returns that text string; otherwise it returns a blank text string.</paragraph> 553 <paragraph xml-lang="en-US" id="hd_id3155544" role="heading" level="3" l10n="U" 554 oldref="145">Example</paragraph> 555 <paragraph xml-lang="en-US" id="par_id3151062" role="paragraph" l10n="CHG" oldref="146"> 556 <item type="input">=T(12345)</item> returns an empty string. </paragraph> 557 <paragraph xml-lang="en-US" id="par_id4650105" role="paragraph" l10n="NEW"> 558 <item type="input">=T("12345")</item> returns the string 12345.</paragraph> 559 </section> 560 <section id="text"> 561<bookmark xml-lang="en-US" branch="index" id="bm_id3147132"><bookmark_value>TEXT function</bookmark_value> 562</bookmark> 563<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_TEXT" id="bm_id3156426" localize="false"/> 564<paragraph xml-lang="en-US" id="hd_id3147132" role="heading" level="2" l10n="U" 565 oldref="158">TEXT</paragraph> 566 <paragraph xml-lang="en-US" id="par_id3147213" role="paragraph" l10n="U" oldref="159"><ahelp hid="HID_FUNC_TEXT">Converts a number into text according to a given format.</ahelp></paragraph> 567 <paragraph xml-lang="en-US" id="hd_id3153129" role="heading" level="3" l10n="U" 568 oldref="160">Syntax</paragraph> 569 <paragraph xml-lang="en-US" id="par_id3147377" role="code" l10n="U" oldref="161">TEXT(Number; Format)</paragraph> 570 <paragraph xml-lang="en-US" id="par_id3147389" role="paragraph" l10n="U" oldref="162"> 571 <emph>Number</emph> is the numerical value to be converted.</paragraph> 572 <paragraph xml-lang="en-US" id="par_id3156167" role="paragraph" l10n="U" oldref="163"> 573 <emph>Format</emph> is the text which defines the format. Use decimal and thousands separators according to the language set in the cell format.</paragraph> 574 <paragraph xml-lang="en-US" id="hd_id1243629" role="heading" level="3" l10n="NEW">Example</paragraph> 575 <paragraph xml-lang="en-US" id="par_id9044770" role="paragraph" l10n="NEW"> 576 <item type="input">=TEXT(12.34567;"###.##")</item> returns the text 12.35</paragraph> 577 <paragraph xml-lang="en-US" id="par_id3674123" role="paragraph" l10n="NEW"> 578 <item type="input">=TEXT(12.34567;"000.00")</item> returns the text 012.35</paragraph> 579 </section> 580 <section id="trim"> 581<bookmark xml-lang="en-US" branch="index" id="bm_id3151039"><bookmark_value>TRIM function</bookmark_value> 582</bookmark> 583<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_GLAETTEN" id="bm_id3150584" localize="false"/> 584<paragraph xml-lang="en-US" id="hd_id3151039" role="heading" level="2" l10n="U" 585 oldref="54">TRIM</paragraph> 586 <paragraph xml-lang="en-US" id="par_id3157888" role="paragraph" l10n="CHG" oldref="55"><ahelp hid="HID_FUNC_GLAETTEN">Removes spaces from a string, leaving only a single space character between words.</ahelp></paragraph> 587 <paragraph xml-lang="en-US" id="hd_id3152913" role="heading" level="3" l10n="U" 588 oldref="56">Syntax</paragraph> 589 <paragraph xml-lang="en-US" id="par_id3151349" role="code" l10n="U" oldref="57">TRIM("Text")</paragraph> 590 <paragraph xml-lang="en-US" id="par_id3151362" role="paragraph" l10n="CHG" oldref="58"> 591 <emph>Text</emph> refers to text in which spaces are removed.</paragraph> 592 <paragraph xml-lang="en-US" id="hd_id3146838" role="heading" level="3" l10n="U" 593 oldref="59">Example</paragraph> 594 <paragraph xml-lang="en-US" id="par_id3156074" role="paragraph" l10n="U" oldref="60"> 595 <item type="input">=TRIM("hello")</item> returns hello.</paragraph> 596 </section> 597 <section id="unichar"> 598<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_UNICHAR" id="bm_id0907200904004674" localize="false"/> 599<bookmark xml-lang="en-US" branch="index" id="bm_id0907200904030935"><bookmark_value>UNICHAR function</bookmark_value> 600</bookmark> 601<paragraph xml-lang="en-US" id="hd_id0907200904022525" role="heading" level="2" l10n="NEW">UNICHAR</paragraph> 602 <paragraph xml-lang="en-US" id="par_id0907200904022538" role="paragraph" l10n="NEW"><ahelp hid=".">Converts a code number into a Unicode character or letter.</ahelp></paragraph> 603 <paragraph xml-lang="en-US" id="hd_id0907200904123753" role="heading" level="3" l10n="NEW">Syntax</paragraph> 604 <paragraph xml-lang="en-US" id="par_id0907200904123753" role="paragraph" l10n="NEW">UNICHAR(number)</paragraph> 605 <paragraph xml-lang="en-US" id="hd_id0907200904123720" role="heading" level="3" l10n="NEW">Example</paragraph> 606 <paragraph xml-lang="en-US" id="par_id090720090412378" role="paragraph" l10n="NEW">=UNICHAR(169) returns the Copyright character <emph>©</emph>.</paragraph> 607 </section> 608 <section id="unicode"> 609<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_UNICODE" id="bm_id0907200904011330" localize="false"/> 610<bookmark xml-lang="en-US" branch="index" id="bm_id0907200904033543"><bookmark_value>UNICODE function</bookmark_value> 611</bookmark> 612<paragraph xml-lang="en-US" id="hd_id0907200904022588" role="heading" level="2" l10n="NEW">UNICODE</paragraph> 613 <paragraph xml-lang="en-US" id="par_id0907200904022594" role="paragraph" l10n="NEW"><ahelp hid=".">Returns the numeric code for the first Unicode character in a text string.</ahelp></paragraph> 614 <paragraph xml-lang="en-US" id="hd_id0907200904123874" role="heading" level="3" l10n="NEW">Syntax</paragraph> 615 <paragraph xml-lang="en-US" id="par_id0907200904123846" role="paragraph" l10n="NEW">UNICODE("Text")</paragraph> 616 <paragraph xml-lang="en-US" id="hd_id0907200904123899" role="heading" level="3" l10n="NEW">Example</paragraph> 617 <paragraph xml-lang="en-US" id="par_id0907200904123919" role="paragraph" l10n="NEW">=UNICODE("©") returns the Unicode number 169 for the Copyright character.</paragraph> 618 </section> 619 <section id="upper"> 620<bookmark xml-lang="en-US" branch="index" id="bm_id3145178"><bookmark_value>UPPER function</bookmark_value> 621</bookmark> 622<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_GROSS" id="bm_id3145189" localize="false"/> 623<paragraph xml-lang="en-US" id="hd_id3145178" role="heading" level="2" l10n="U" 624 oldref="62">UPPER</paragraph> 625 <paragraph xml-lang="en-US" id="par_id3162905" role="paragraph" l10n="U" oldref="63"><ahelp hid="HID_FUNC_GROSS">Converts the string specified in the <emph>text</emph> field to uppercase.</ahelp></paragraph> 626 <paragraph xml-lang="en-US" id="hd_id3148526" role="heading" level="3" l10n="U" 627 oldref="64">Syntax</paragraph> 628 <paragraph xml-lang="en-US" id="par_id3148539" role="code" l10n="U" oldref="65">UPPER("Text")</paragraph> 629 <paragraph xml-lang="en-US" id="par_id3148496" role="paragraph" l10n="U" oldref="66"> 630 <emph>Text</emph> refers to the lower case letters you want to convert to upper case.</paragraph> 631 <paragraph xml-lang="en-US" id="hd_id3148516" role="heading" level="3" l10n="U" 632 oldref="67">Example</paragraph> 633 <paragraph xml-lang="en-US" id="par_id3146757" role="paragraph" l10n="U" oldref="68"> 634 <item type="input">=UPPER("Good Morning")</item> returns GOOD MORNING.</paragraph> 635 </section> 636 <section id="value"> 637<bookmark xml-lang="en-US" branch="index" id="bm_id3150802"><bookmark_value>VALUE function</bookmark_value> 638</bookmark> 639<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_WERT" id="bm_id3150814" localize="false"/> 640<paragraph xml-lang="en-US" id="hd_id3150802" role="heading" level="2" l10n="U" 641 oldref="185">VALUE</paragraph> 642 <paragraph xml-lang="en-US" id="par_id3152551" role="paragraph" l10n="U" oldref="186"><ahelp hid="HID_FUNC_WERT">Converts a text string into a number.</ahelp></paragraph> 643 <paragraph xml-lang="en-US" id="hd_id3152568" role="heading" level="3" l10n="U" 644 oldref="187">Syntax</paragraph> 645 <paragraph xml-lang="en-US" id="par_id3153638" role="code" l10n="U" oldref="188">VALUE("Text")</paragraph> 646 <paragraph xml-lang="en-US" id="par_id3153651" role="paragraph" l10n="U" oldref="189"> 647 <emph>Text</emph> is the text to be converted to a number.</paragraph> 648 <paragraph xml-lang="en-US" id="hd_id3144719" role="heading" level="3" l10n="U" 649 oldref="190">Example</paragraph> 650 <paragraph xml-lang="en-US" id="par_id3144733" role="paragraph" l10n="U" oldref="191"> 651 <item type="input">=VALUE("4321")</item> returns 4321.</paragraph> 652 </section> 653</sort> 654<section id="relatedtopics"> 655 <embed href="text/scalc/01/04060100.xhp#drking"/> 656 </section> 657 </body> 658</helpdocument>