From 4a27fa416765ce8ceecfbf1bd70ef1343dcc8e2a Mon Sep 17 00:00:00 2001 From: Pierre F Date: Tue, 27 Aug 2024 22:06:27 +0200 Subject: [PATCH] tdf#158180 - description of ERROR Value as argument of T() Change-Id: I9e31c35c74b265ef2b6c67bdcd5b0c99b8116991 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/172490 Reviewed-by: Pierre F Reviewed-by: Olivier Hallot Tested-by: Jenkins --- source/text/scalc/01/04060110.xhp | 515 +++++++++++++++--------------- 1 file changed, 258 insertions(+), 257 deletions(-) diff --git a/source/text/scalc/01/04060110.xhp b/source/text/scalc/01/04060110.xhp index 193380683d..4e36aec2d5 100644 --- a/source/text/scalc/01/04060110.xhp +++ b/source/text/scalc/01/04060110.xhp @@ -20,14 +20,14 @@ - Text Functions + Text Functions /text/scalc/01/04060110.xhp - + text in cells; functions functions; text functions Function Wizard;text @@ -35,14 +35,14 @@

Text Functions

-This section contains descriptions of the Text functions. +This section contains descriptions of the Text functions.
- + using double quotation marks in formulas formulas; using double quotation marks @@ -91,92 +91,92 @@
- + BAHTTEXT function -i66350 +i66350

BAHTTEXT

-Converts a number to Thai text, including the Thai currency names. +Converts a number to Thai text, including the Thai currency names. -BAHTTEXT(Number) - Number is any number. "Baht" is appended to the integral part of the number, and "Satang" is appended to the decimal part of the number. +BAHTTEXT(Number) + Number is any number. "Baht" is appended to the integral part of the number, and "Satang" is appended to the decimal part of the number. - =BAHTTEXT(12.65) returns a string in Thai characters with the meaning of "Twelve Baht and sixty five Satang". + =BAHTTEXT(12.65) returns a string in Thai characters with the meaning of "Twelve Baht and sixty five Satang". COM.MICROSOFT.BAHTTEXT
- + BASE function - - + + decimal system; converting to

BASE

-Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used. +Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used. -BASE(Number; Radix [; MinimumLength]) - Number is the positive integer to be converted. - Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36. - MinimumLength (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. +BASE(Number; Radix [; MinimumLength]) + Number is the positive integer to be converted. + Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36. + MinimumLength (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. - =BASE(17;10;4) returns 0017 in the decimal system. - + =BASE(17;10;4) returns 0017 in the decimal system. + binary system; converting to - =BASE(17;2) returns 10001 in the binary system. - + =BASE(17;2) returns 10001 in the binary system. + hexadecimal system; converting to - =BASE(255;16;4) returns 00FF in the hexadecimal system. + =BASE(255;16;4) returns 00FF in the hexadecimal system. DECIMAL
- + CHAR function - +

CHAR

-Converts a number into a character according to the current code table. The number can be a two-digit or three-digit integer number. +Converts a number into a character according to the current code table. The number can be a two-digit or three-digit integer number. -CHAR(Number) - Number is a number between 1 and 255 representing the code value for the character. +CHAR(Number) + Number is a number between 1 and 255 representing the code value for the character. - =CHAR(100) returns the character d. -="abc" & CHAR(10) & "def" inserts a newline character into the string. + =CHAR(100) returns the character d. +="abc" & CHAR(10) & "def" inserts a newline character into the string.
- + CLEAN function - +

CLEAN

-All non-printing characters are removed from the string. +All non-printing characters are removed from the string. -CLEAN("Text") - Text refers to the text from which to remove all non-printable characters. +CLEAN("Text") + Text refers to the text from which to remove all non-printable characters. =LEN(CLEAN(CHAR(7) & "LibreOffice Calc" & CHAR(8))) returns 16, showing that the CLEAN function removes the non-printable Unicode U+0007 ("BEL") and U+0008 ("BS") characters at the beginning and end of the string argument. CLEAN does not remove spaces. @@ -184,147 +184,147 @@
- + CODE function - +

CODE

-Returns a numeric code for the first character in a text string. +Returns a numeric code for the first character in a text string. -CODE("Text") - Text is the text for which the code of the first character is to be found. +CODE("Text") + Text is the text for which the code of the first character is to be found. - =CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104. + =CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104. The code used here does not refer to ASCII, but to the code table currently loaded.
- + CONCATENATE function - +

CONCATENATE

-Combines several text strings into one string. +Combines several text strings into one string. -CONCATENATE() +CONCATENATE() String 1[; String 2][; … ;[String 255]] are strings or references to cells containing strings. - =CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe") returns: Good Morning Mrs. Doe. + =CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe") returns: Good Morning Mrs. Doe.
- + DECIMAL function - +

DECIMAL

-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. -If the radix is 16, a leading x or X or 0x or 0X, and an appended h or H, are disregarded. If the radix is 2, an appended b or B is disregarded. Other characters that do not belong to the numeral system generate an error. +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. +If the radix is 16, a leading x or X or 0x or 0X, and an appended h or H, are disregarded. If the radix is 2, an appended b or B is disregarded. Other characters that do not belong to the numeral system generate an error. -DECIMAL("Text"; Radix) - Text is the text to be converted. - Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36. +DECIMAL("Text"; Radix) + Text is the text to be converted. + Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36. - =DECIMAL("17";10) returns 17. - =DECIMAL("FACE";16) returns 64206. - =DECIMAL("0101";2) returns 5. + =DECIMAL("17";10) returns 17. + =DECIMAL("FACE";16) returns 64206. + =DECIMAL("0101";2) returns 5. BASE
- + DOLLAR function - +

DOLLAR

-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. -You set the currency format in your system settings. +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. +You set the currency format in your system settings. -DOLLAR(Value [; Decimals]) - Value is a number, a reference to a cell containing a number, or a formula which returns a number. - Decimals is the optional number of decimal places. +DOLLAR(Value [; Decimals]) + Value is a number, a reference to a cell containing a number, or a formula which returns a number. + Decimals is the optional number of decimal places. - =DOLLAR(255) returns $255.00 for the English (USA) locale and USD (dollar) currency; ¥255.00 for the Japanese locale and JPY (yen) currency; or 255,00 € for the German (Germany) locale and EUR (euro) currency. - =DOLLAR(367.456;2) returns $367.46. + =DOLLAR(255) returns $255.00 for the English (USA) locale and USD (dollar) currency; ¥255.00 for the Japanese locale and JPY (yen) currency; or 255,00 € for the German (Germany) locale and EUR (euro) currency. + =DOLLAR(367.456;2) returns $367.46.
- + EXACT function - +

EXACT

-Compares two text strings and returns TRUE if they are identical. This function is case-sensitive. +Compares two text strings and returns TRUE if they are identical. This function is case-sensitive. -EXACT("Text1"; "Text2") - Text1 refers to the first text to compare. - Text2 is the second text to compare. +EXACT("Text1"; "Text2") + Text1 refers to the first text to compare. + Text2 is the second text to compare. - =EXACT("microsystems";"Microsystems") returns FALSE. + =EXACT("microsystems";"Microsystems") returns FALSE.
- + FIND function - +

FIND

-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. +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. -FIND("FindText"; "Text" [; Position]) - FindText refers to the text to be found. - Text is the text where the search takes place. - Position (optional) is the position in the text from which the search starts. +FIND("FindText"; "Text" [; Position]) + FindText refers to the text to be found. + Text is the text where the search takes place. + Position (optional) is the position in the text from which the search starts. - =FIND(76;998877665544) returns 6. + =FIND(76;998877665544) returns 6.
- + FIXED function - +

FIXED

-Returns a number as text with a specified number of decimal places and optional thousands separators. +Returns a number as text with a specified number of decimal places and optional thousands separators. -FIXED(Number; [Decimals = 2 [; NoThousandsSeparators = FALSE]]) +FIXED(Number; [Decimals = 2 [; NoThousandsSeparators = FALSE]]) - Number is rounded to Decimals places (after the decimal separator) and the result formatted as text, using locale-specific settings. - Decimals (optional) refers to the number of decimal places to be displayed. If Decimals is negative, Number is rounded to ABS(Decimals) places to the left from the decimal point. If Decimals is a fraction, it is truncated actually ignoring what is the closest integer. - NoThousandsSeparators (optional) determines whether the thousands separator is used. If it is TRUE or non-zero, then group separators are omitted from the resulting string. If the parameter is equal to 0 or if it is missing altogether, the thousands separators of your current locale setting are displayed. + Number is rounded to Decimals places (after the decimal separator) and the result formatted as text, using locale-specific settings. + Decimals (optional) refers to the number of decimal places to be displayed. If Decimals is negative, Number is rounded to ABS(Decimals) places to the left from the decimal point. If Decimals is a fraction, it is truncated actually ignoring what is the closest integer. + NoThousandsSeparators (optional) determines whether the thousands separator is used. If it is TRUE or non-zero, then group separators are omitted from the resulting string. If the parameter is equal to 0 or if it is missing altogether, the thousands separators of your current locale setting are displayed. - =FIXED(1234567.89;3) returns 1,234,567.890 as a text string. - =FIXED(123456.789;;TRUE) returns 123456.79 as a text string. - =FIXED(12345.6789;-2) returns 12,300 as a text string. - =FIXED(12134567.89;-3;1) returns 12135000 as a text string. - =FIXED(12345.789;3/4) returns 12,346 as a text string. - =FIXED(12345.789;8/5) returns 12,345.8 as a text string. + =FIXED(1234567.89;3) returns 1,234,567.890 as a text string. + =FIXED(123456.789;;TRUE) returns 123456.79 as a text string. + =FIXED(12345.6789;-2) returns 12,300 as a text string. + =FIXED(12134567.89;-3;1) returns 12135000 as a text string. + =FIXED(12345.789;3/4) returns 12,346 as a text string. + =FIXED(12345.789;8/5) returns 12,345.8 as a text string.
@@ -332,172 +332,172 @@
- + LEFT function - +

LEFT

-Returns the first character or characters of a text. +Returns the first character or characters of a text. -LEFT("Text" [; Number]) - Text is the text where the initial partial words are to be determined. - Number (optional) specifies the number of characters for the start text. If this parameter is not defined, one character is returned. +LEFT("Text" [; Number]) + Text is the text where the initial partial words are to be determined. + Number (optional) specifies the number of characters for the start text. If this parameter is not defined, one character is returned. - =LEFT("output";3) returns “out”. + =LEFT("output";3) returns “out”.
- + LEFTB function - +

LEFTB

-Returns the first characters of a DBCS text. +Returns the first characters of a DBCS text. -LEFTB("Text" [; Number_bytes]) -Text is the text where the initial partial words are to be determined. -Number_bytes (optional) specifies the number of characters you want LEFTB to extract, based on bytes. If this parameter is not defined, one character is returned. +LEFTB("Text" [; Number_bytes]) +Text is the text where the initial partial words are to be determined. +Number_bytes (optional) specifies the number of characters you want LEFTB to extract, based on bytes. If this parameter is not defined, one character is returned. -=LEFTB("中国";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead). -=LEFTB("中国";2) returns "中" (2 bytes constitute one complete DBCS character). -=LEFTB("中国";3) returns "中 " (3 bytes constitute one DBCS character and a half; the last character returned is therefore a space character). -=LEFTB("中国";4) returns "中国" (4 bytes constitute two complete DBCS characters). -=LEFTB("office";3) returns "off" (3 non-DBCS characters each consisting of 1 byte). +=LEFTB("中国";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead). +=LEFTB("中国";2) returns "中" (2 bytes constitute one complete DBCS character). +=LEFTB("中国";3) returns "中 " (3 bytes constitute one DBCS character and a half; the last character returned is therefore a space character). +=LEFTB("中国";4) returns "中国" (4 bytes constitute two complete DBCS characters). +=LEFTB("office";3) returns "off" (3 non-DBCS characters each consisting of 1 byte).
- + LEN function - +

LEN

-Returns the length of a string including spaces. +Returns the length of a string including spaces. -LEN("Text") - Text is the text whose length is to be determined. +LEN("Text") + Text is the text whose length is to be determined. - =LEN("Good Afternoon") returns 14. - =LEN(12345.67) returns 8. + =LEN("Good Afternoon") returns 14. + =LEN(12345.67) returns 8.
- + LENB function - +

LENB

-For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string. +For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string. -LENB("Text") -Text is the text whose length is to be determined. +LENB("Text") +Text is the text whose length is to be determined. -LENB("中") returns 2 (1 DBCS character consisting of 2 bytes). -LENB("中国") returns 4 (2 DBCS characters each consisting of 2 bytes). -LENB("office") returns 6 (6 non-DBCS characters each consisting of 1 byte). - =LENB("Good Afternoon") returns 14. - =LENB(12345.67) returns 8. +LENB("中") returns 2 (1 DBCS character consisting of 2 bytes). +LENB("中国") returns 4 (2 DBCS characters each consisting of 2 bytes). +LENB("office") returns 6 (6 non-DBCS characters each consisting of 1 byte). + =LENB("Good Afternoon") returns 14. + =LENB(12345.67) returns 8.
- + LOWER function - +

LOWER

-Converts all uppercase letters in a text string to lowercase. +Converts all uppercase letters in a text string to lowercase. -LOWER("Text") - Text refers to the text to be converted. +LOWER("Text") + Text refers to the text to be converted. - =LOWER("Sun") returns sun. + =LOWER("Sun") returns sun.
- + MID function - +

MID

-Returns a text string of a text. The parameters specify the starting position and the number of characters. +Returns a text string of a text. The parameters specify the starting position and the number of characters. -MID("Text"; Start; Number) - Text is the text containing the characters to extract. - Start is the position of the first character in the text to extract. - Number specifies the number of characters in the part of the text. +MID("Text"; Start; Number) + Text is the text containing the characters to extract. + Start is the position of the first character in the text to extract. + Number specifies the number of characters in the part of the text. - =MID("office";2;2) returns ff. + =MID("office";2;2) returns ff.
- + MIDB function - +

MIDB

-Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters. +Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters. -MIDB("Text"; Start; Number_bytes) -Text is the text containing the characters to extract. -Start is the position of the first character in the text to extract. -Number_bytes specifies the number of characters MIDB will return from text, in bytes. +MIDB("Text"; Start; Number_bytes) +Text is the text containing the characters to extract. +Start is the position of the first character in the text to extract. +Number_bytes specifies the number of characters MIDB will return from text, in bytes. -=MIDB("中国";1;0) returns "" (0 bytes is always an empty string). -=MIDB("中国";1;1) returns " " (1 byte is only half a DBCS character and therefore the result is a space character). -=MIDB("中国";1;2) returns "中" (2 bytes constitute one complete DBCS character). -=MIDB("中国";1;3) returns "中 " (3 bytes constitute one and a half DBCS character; the last byte results in a space character). -=MIDB("中国";1;4) returns "中国" (4 bytes constitute two complete DBCS characters). -=MIDB("中国";2;1) returns " " (byte position 2 is not at the beginning of a character in a DBCS string; 1 space character is returned). -=MIDB("中国";2;2) returns " " (byte position 2 points to the last half of the first character in the DBCS string; the 2 bytes asked for therefore constitutes the last half of the first character and the first half of the second character in the string; 2 space characters are therefore returned). -=MIDB("中国";2;3) returns " 国" (byte position 2 is not at the beginning of a character in a DBCS string; a space character is returned for byte position 2). -=MIDB("中国";3;1) returns " " (byte position 3 is at the beginning of a character in a DBCS string, but 1 byte is only half a DBCS character and a space character is therefore returned instead). -=MIDB("中国";3;2) returns "国" (byte position 3 is at the beginning of a character in a DBCS string, and 2 bytes constitute one DBCS character). -=MIDB("office";2;3) returns "ffi" (byte position 2 is at the beginning of a character in a non-DBCS string, and 3 bytes of a non-DBCS string constitute 3 characters). +=MIDB("中国";1;0) returns "" (0 bytes is always an empty string). +=MIDB("中国";1;1) returns " " (1 byte is only half a DBCS character and therefore the result is a space character). +=MIDB("中国";1;2) returns "中" (2 bytes constitute one complete DBCS character). +=MIDB("中国";1;3) returns "中 " (3 bytes constitute one and a half DBCS character; the last byte results in a space character). +=MIDB("中国";1;4) returns "中国" (4 bytes constitute two complete DBCS characters). +=MIDB("中国";2;1) returns " " (byte position 2 is not at the beginning of a character in a DBCS string; 1 space character is returned). +=MIDB("中国";2;2) returns " " (byte position 2 points to the last half of the first character in the DBCS string; the 2 bytes asked for therefore constitutes the last half of the first character and the first half of the second character in the string; 2 space characters are therefore returned). +=MIDB("中国";2;3) returns " 国" (byte position 2 is not at the beginning of a character in a DBCS string; a space character is returned for byte position 2). +=MIDB("中国";3;1) returns " " (byte position 3 is at the beginning of a character in a DBCS string, but 1 byte is only half a DBCS character and a space character is therefore returned instead). +=MIDB("中国";3;2) returns "国" (byte position 3 is at the beginning of a character in a DBCS string, and 2 bytes constitute one DBCS character). +=MIDB("office";2;3) returns "ffi" (byte position 2 is at the beginning of a character in a non-DBCS string, and 3 bytes of a non-DBCS string constitute 3 characters).
- + PROPER function - +

PROPER

-Capitalizes the first letter in all words of a text string. +Capitalizes the first letter in all words of a text string. -PROPER("Text") - Text refers to the text to be converted. +PROPER("Text") + Text refers to the text to be converted. - =PROPER("the document foundation") returns The Document Foundation. + =PROPER("the document foundation") returns The Document Foundation.
@@ -505,87 +505,87 @@
- + REPLACE function - +

REPLACE

-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. -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. +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. +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. -REPLACE("Text"; Position; Length; "NewText") - Text refers to text of which a part will be replaced. - Position refers to the position within the text where the replacement will begin. - Length is the number of characters in Text to be replaced. - NewText refers to the text which replaces Text. +REPLACE("Text"; Position; Length; "NewText") + Text refers to text of which a part will be replaced. + Position refers to the position within the text where the replacement will begin. + Length is the number of characters in Text to be replaced. + NewText refers to the text which replaces Text. - =REPLACE("1234567";1;1;"444") returns "444234567". One character at position 1 is replaced by the complete NewText. + =REPLACE("1234567";1;1;"444") returns "444234567". One character at position 1 is replaced by the complete NewText.
- + REPT function - +

REPT

-Repeats a character string by the given number of copies. +Repeats a character string by the given number of copies. -REPT("Text"; Number) - Text is the text to be repeated. - Number is the number of repetitions. +REPT("Text"; Number) + Text is the text to be repeated. + Number is the number of repetitions. - =REPT("Good morning";2) returns Good morningGood morning. + =REPT("Good morning";2) returns Good morningGood morning. Refer to the REPT wiki page for more details about this function.
- + RIGHTB function - +

RIGHTB

-Returns the last character or characters of a text with double bytes characters sets (DBCS). +Returns the last character or characters of a text with double bytes characters sets (DBCS). -RIGHTB("Text" [; Number_bytes]) -Text is the text of which the right part is to be determined. -Number_bytes (optional) specifies the number of characters you want RIGHTB to extract, based on bytes. If this parameter is not defined, one byte is returned. +RIGHTB("Text" [; Number_bytes]) +Text is the text of which the right part is to be determined. +Number_bytes (optional) specifies the number of characters you want RIGHTB to extract, based on bytes. If this parameter is not defined, one byte is returned. -RIGHTB("中国";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead). -RIGHTB("中国";2) returns "国" (2 bytes constitute one complete DBCS character). -RIGHTB("中国";3) returns " 国" (3 bytes constitute one half DBCS character and one whole DBCS character; a space is returned for the first half). -RIGHTB("中国";4) returns "中国" (4 bytes constitute two complete DBCS characters). -RIGHTB("office";3) returns "ice" (3 non-DBCS characters each consisting of 1 byte). +RIGHTB("中国";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead). +RIGHTB("中国";2) returns "国" (2 bytes constitute one complete DBCS character). +RIGHTB("中国";3) returns " 国" (3 bytes constitute one half DBCS character and one whole DBCS character; a space is returned for the first half). +RIGHTB("中国";4) returns "中国" (4 bytes constitute two complete DBCS characters). +RIGHTB("office";3) returns "ice" (3 non-DBCS characters each consisting of 1 byte).
@@ -593,159 +593,160 @@
- + SUBSTITUTE function - +

SUBSTITUTE

-Substitutes new text for old text in a string. +Substitutes new text for old text in a string. -SUBSTITUTE("Text"; "SearchText"; "NewText" [; Occurrence]) - Text is the text in which text segments are to be exchanged. - SearchText is the text segment that is to be replaced (a number of times). - NewText is the text that is to replace the text segment. - Occurrence (optional) indicates which occurrence of the search text is to be replaced. If this parameter is missing the search text is replaced throughout. +SUBSTITUTE("Text"; "SearchText"; "NewText" [; Occurrence]) + Text is the text in which text segments are to be exchanged. + SearchText is the text segment that is to be replaced (a number of times). + NewText is the text that is to replace the text segment. + Occurrence (optional) indicates which occurrence of the search text is to be replaced. If this parameter is missing the search text is replaced throughout. - =SUBSTITUTE("123123123";"3";"abc") returns 12abc12abc12abc. - =SUBSTITUTE("123123123";"3";"abc";2) returns 12312abc123. + =SUBSTITUTE("123123123";"3";"abc") returns 12abc12abc12abc. + =SUBSTITUTE("123123123";"3";"abc";2) returns 12312abc123.
- + T function - +

T

-This function returns the target text, or a blank text string if the target is not text. +This function returns the target text, or a blank text string if the target is not text. +If an error occurs the function returns the error value. -T(Value) -If Value is a text string or refers to a text string, T returns that text string; otherwise it returns a blank text string. +T(Value) +If Value is a text string or refers to a text string, T returns that text string; otherwise it returns a blank text string. - =T(12345) returns an empty string. - =T("12345") returns the string 12345. + =T(12345) returns an empty string. + =T("12345") returns the string 12345.
- + TEXT function - +

TEXT

-Converts a value into text according to a given format. +Converts a value into text according to a given format. -TEXT(Value; Format) - Value is the value (numerical or textual) to be converted. - Format is the text which defines the format. Use decimal and thousands separators according to the language set in the cell format. +TEXT(Value; Format) + Value is the value (numerical or textual) to be converted. + Format is the text which defines the format. Use decimal and thousands separators according to the language set in the cell format. - =TEXT(12.34567;"###.##") returns the text 12.35 - =TEXT(12.34567;"000.00") returns the text 012.35 - =TEXT("xyz";"=== @ ===") returns the text === xyz === + =TEXT(12.34567;"###.##") returns the text 12.35 + =TEXT(12.34567;"000.00") returns the text 012.35 + =TEXT("xyz";"=== @ ===") returns the text === xyz === See also Number format codes: custom format codes defined by the user.
- + TRIM function - +

TRIM

-Removes spaces from a string, leaving only a single space character between words. +Removes spaces from a string, leaving only a single space character between words. -TRIM("Text") - Text refers to text in which spaces are to be removed. +TRIM("Text") + Text refers to text in which spaces are to be removed. - =TRIM(" hello world ") returns hello world without leading and trailing spaces and with single space between words. + =TRIM(" hello world ") returns hello world without leading and trailing spaces and with single space between words.
- - + + UNICHAR function

UNICHAR

-Converts a code number into a Unicode character or letter. +Converts a code number into a Unicode character or letter. -UNICHAR(number) +UNICHAR(number) -=UNICHAR(169) returns the Copyright character ©. +=UNICHAR(169) returns the Copyright character ©. See also the UNICODE() function.
- - + + UNICODE function

UNICODE

-Returns the numeric code for the first Unicode character in a text string. +Returns the numeric code for the first Unicode character in a text string. -UNICODE("Text") +UNICODE("Text") -=UNICODE("©") returns the Unicode number 169 for the Copyright character. +=UNICODE("©") returns the Unicode number 169 for the Copyright character. See also the UNICHAR() function.
- + UPPER function - +

UPPER

-Converts the string specified in the text field to uppercase. +Converts the string specified in the text field to uppercase. -UPPER("Text") - Text refers to the lower case letters you want to convert to upper case. +UPPER("Text") + Text refers to the lower case letters you want to convert to upper case. - =UPPER("Good Morning") returns GOOD MORNING. + =UPPER("Good Morning") returns GOOD MORNING.