Difference between revisions of "Documentation/How Tos/Calc: REPLACE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:REPLACE function}} |
+ | {{Documentation/CalcFunc TextTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_PROPER_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_REPT_function | ||
+ | }}__NOTOC__ | ||
== REPLACE == | == REPLACE == | ||
Line 15: | Line 20: | ||
=== Issues: === | === Issues: === | ||
− | * Excel and the | + | * Excel and the ODFF standard allow <tt>'''length'''</tt> to be zero. |
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: SUBSTITUTE function|SUBSTITUTE]] | * [[Documentation/How_Tos/Calc: SUBSTITUTE function|SUBSTITUTE]] | ||
* [[Documentation/How_Tos/Calc: FIND function|FIND]] | * [[Documentation/How_Tos/Calc: FIND function|FIND]] | ||
Line 26: | Line 31: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Text functions]] |
Latest revision as of 15:35, 2 February 2024
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
REPLACE
Replaces part of a text string with a different text string.
Syntax:
REPLACE(originaltext; startposition; length; newtext)
- in originaltext, removes length characters beginning at character startposition, replaces them with newtext, and returns the result.
- startposition and length must be 1 or more.
Example:
REPLACE("mouse"; 2; 3; "ic")
- returns mice. Beginning at character position 2, 3 characters (ous) are removed and replaced by ic.
Issues:
- Excel and the ODFF standard allow length to be zero.
{{#switch:EN
| RU = Смотрите также:
| UA = Дивіться також:
| EN = See Also
| PT = Ver também
| #default = See Also
}}