Textový řetězec použitý ve vzorci se umisťuje mezi dvojici dvojitých uvozovek (") a Calc převezme znaky tohoto řetězce, aniž by se pokusil je interpretovat. Například vzorec ="Ahoj světe" zobrazí v buňce textový řetězec Ahoj světe bez obklopujících dvojitých uvozovek.
Složitější vzorec =CONCATENATE("Život je vlastně jednoduchý, "; "ale my trváme na tom, abychom si ho zkomplikovali "; "(Konfucius).") sloučí tři samostatné řetězce v uvozovkách do výsledného Život je vlastně jednoduchý, ale my trváme na tom, abychom si ho zkomplikovali (Konfucius).
Chcete-li umístit dvojitou uvozovku do řetězce ve vzorci, můžete použít dva způsoby:
Na dvojitou uvozovku můžete použít „escape sekvenci“, kterou je další dvojitá uvozovku, Calc bude takto ošetřenou uvozovku považovat za textový řetězec. Například výsledkem vzorce "Jmenuji se ""Jan Novák""." bude Jmenuji se "Jan Novák". Jiným jednoduchým příkladem je vzorec UNICODE(""""), který vrátí 34, desítkovou hodnotu znaku uvozovky v Unicode (U+0022) – první a čtvrtá dvojitá uvozovka značí začátek a konec řetězce, druhá uvozovka představuje escape sekvenci pro třetí.
Pro vložení dvojité uvozovky můžete použít funkci CHAR nebo UNICHAR. Například vzorec =UNICHAR(34) & "Kdo chytá v žitě" & UNICHAR(34) & " je slavná kniha J. D. Salingera." zobrazí řetězec "Kdo chytá v žitě" je slavná kniha J. D. Salingera.
Mějte na paměti, že dvojité uvozovky mohou být změněny automatickými opravami Calcu. Tyto opravy nemění uvozovky ve vzorci, avšak mohou změnit ty, které jsou použity v buňkách, které neobsahují vzorec, ale text. Pokud například zkopírujete řetězec obklopený některými z typograficky správných uvozovek, jakými jsou levá dvojitá uvozovka (U+201E) a pravá dvojitá uvozovka (U+201C), a pak jej vložíte do buňky se vzorcem, výsledkem může být chyba. Znaky, které mají automatické úpravy používat pro nahrazování typograficky správnými uvozovkami, nastavíte v části Dvojité uvozovky v dialogovém okně Nástroje - Nastavení automatických oprav - Místní možnosti. Zrušením zaškrtnutí pole Nahradit tuto funkci zakážete.
Empty string and blank cells
Cells with the empty string ("") are not equivalent to blank cells. When searching or calculating with text, the empty string "" is the text with length zero.
For example, when the formula in A1 returns the empty string "", the following applies:
=ISBLANK(A1) returns FALSE. The cell is not blank.
=ISFORMULA(A1) returns TRUE. The cell is a formula.
=ISLOGICAL(A1) returns FALSE. Not a logical value.
=ISNONTEXT(A1) returns FALSE. The cell has the empty string.
=ISNUMBER(A1) returns FALSE. Not a number.
=ISTEXT(A1) returns TRUE. The cell has the empty string, calculated by a formula.
=LEN(A1) returns 0. The length of the empty string is 0.
Converts text that represents a number in a numeral system with the given base radix to a positive integer. The radix must be in the range 2 to 36. Spaces and tabs are ignored. The Text field is not case-sensitive.
Converts a number to a string representing the amount in the currency format, rounded to a specified decimal places, using the decimal separator that corresponds to the current locale setting. In the Value field enter the number to be converted. Optionally, you may enter the number of decimal places in the Decimals field. If no value is specified, all numbers in currency format will be displayed with two decimal places.
Returns the position of a string of text within another string.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.
Replaces part of a text string with a different text string. 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 VALUE function.
Returns the position of a text segment within a character string. 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. If the text is not found, returns error 519 (#VALUE).
Převede řetězec představující číslo na číselnou podobu. Představuje-li řetězec platné datum, čas nebo datum a čas, vrátí se odpovídající pořadové číslo data a času.