LibreOffice 24.8 Help
This section contains descriptions of the Text functions.
To include a text string in a formula, place the text string between two double quotation marks (") and Calc takes the characters in the string without attempting to interpret them. For example, the formula ="Hello world!" displays the text string Hello world! in the cell, with no surrounding double quotation marks.
The more complex formula =CONCATENATE("Life is really simple, "; "but we insist on making it complicated "; "(Confucius).") concatenates three individual strings in double quotation marks, outputting Life is really simple, but we insist on making it complicated (Confucius).
To place a literal double quotation mark within a string inside a formula, two methods can be used:
You can "escape" the double quotation mark with an additional double quotation mark, and Calc treats the escaped double quotation mark as a literal value. For example, the formula ="My name is ""John Doe""." outputs the string My name is "John Doe". Another simple example is the formula =UNICODE("""") which returns 34, the decimal value of the Unicode quotation mark character (U+0022) — here the first and fourth double quotation marks indicate the beginning and end of the string, while the second double quotation mark escapes the third.
You can use the CHAR function or the UNICHAR function to insert a double quotation mark. For example, the formula =UNICHAR(34) & "The Catcher in the Rye" & UNICHAR(34) & " is a famous book by J. D. Salinger." displays the string "The Catcher in the Rye" is a famous book by J. D. Salinger.
Be aware that Calc's AutoCorrect function may modify double quotation marks. AutoCorrect should not change the double quotation marks within formula cells but may change those used in non-formula cells containing text. For example, if you copy a string that is surrounded by some other form of typographical double quotation marks, such as the left double quotation mark (U+201C) and the right double quotation mark (U+201D), and then paste into a formula cell, an error may result. Open the Double Quotes area of the dialog to set the characters used to automatically correct the start and end typographical double quotation marks. Uncheck the toggle button to disable the feature.
Maqaawwan maallaqa Thai hammachuudhaan, lakkoofsa gara barruu Thai itti jijjiira.
BAHTTEXT(Lakkoofsa)
Lakkoofsa is any number. "Baht"iin gara qaama integiraalii lakkoofsaatti miiltessama, fi "Satang"iin gara qaama dessimaalii lakkoofsaatti miiltessama.
=BAHTTEXT(12.65) diraa arfiiwwan Thai hiikkaa "Baht kudha lamaa fi Satang shan" qabu deebisa.
COM.MICROSOFT.BAHTTEXT
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])
Lakkoofsi intiijera pozatiivii jijjiiramuu qabudha.
Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36.
DheerinniXiqqaan (dirqala) dheerina xiqqaa tartiiba arfii uumamee jiruu murteessa. Yoo barruun dheerina xiqqaa mul'ifame caalaa gabaabaa ta'e, zeeroowwan gara bitaa diraatti ida'amu.
=BASE(17;10;4) 0017 sirna dessimalii keessa jiru deebisa.
=BASE(17;2) 10001 sirna baayinarii keessa jiru deebisa.
=BASE(255;16;4) 00FF sirna heksaadessimaalii keessa jiru deebisa.
Haala gabatee lakkaddaa ammeetiin lakkoofsa gara arfiitti jijjiira. Lakkoofsichi intiijera dijiitii-lamee ykn dijiitii-sadee ta'uu danda'a.
CHAR(Lakkoofsa)
Lakkoofsi lakkoofsa 1 fi 255 gidduu arfiidhaaf gatii lakkaddaa bakka bu'udha.
=CHAR(100) arfii d deebisa.
="abc" & CHAR(10) & "def" arfii sarara haaraa gara diraatti saaga.
Arfiiwwan maxxansaaf hin gargaarre hundi diraa irraa ni haqamu.
CLEAN("Barruu")
Barruun barruu arfiiwwan maxxanuu hin dandeenye irraa haquu qabnu agarsiisa.
=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.
Arfii jalqabaa diraa barruu keesa jiruuf lakkaddaa lakkoofsaa keenna.
CODE("Barruu")
Barruun barruu lakkaddaan arfii jalqabaa barbaadamuufii qabudha.
=CODE("Hieronymus") 72 kenna, =CODE("hieroglyphic") 104 kenna.
Lakkaddaan asitti fayyadamame ASCII hin ibsu, garuu gabatee lakkaddaa amma fe'ame agarsiisa.
Diraawwan barruu hedduu gara diraa tokkootti walitti qaba.
CONCATENATE(String 1 [; String 2 [; … [; String 255]]])
String 1[; String 2][; … ;[String 255]] are strings or references to cells containing strings.
=CONCATENATE("Good ";"Morning ";"Mrs. ";"Doe") Akkam Bultan obbo. Doe: deebisa.
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("Barruu"; Hundee lakkoofsaa)
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) 17 kenna.
=DECIMAL("FACE";16) 64206 kenna.
=DECIMAL("0101";2) 5 kenna.
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.
Dhangii maallaqaa sirna qindaa'inootaa ke keessatti qindeessiteetta.
DOLLAR(Value [; Decimals])
Gatiin lakkoofsa, wabii mandhee lakkoofsa qabatee, ykn foormulaa lakkoofsa kennudha.
Dessimaalonni lakkoofsa dirqalaa bakkeewwan dessimaaliidha.
=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.
Diraawwan barruu lama wal madaalsisee yoo isaan walfkkaatu ta'e DHUGAA kenna. Faankishiniin kun qub-suukanaawaadha.
EXACT("Barruu1"; "Barruu2")
Barruun1 barruu jalqaba walmadaalsisuu jiru agarsiisa.
Barruun2 walmadaalsiidhaaf barruu lammaffaati.
=EXACT("Sirnootni maaykiroo Aduu";"Sirnootni maaykiroo Aduu") SOBA kenna.
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])
BarruuBarbaadi barruu barbaadamuu qabu agarsiisa.
Barruun barruu bakkatti barbaachi gaggeeffamudha.
Qubannoon (dirqala) qubannoo barruu keessaa bakka irraa barbaachi eegaludha.
=FIND(76;998877665544) 6 kenna.
Returns a number as text with a specified number of decimal places and optional thousands separators.
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.
=FIXED(1234567.89;3) akka diraa barruutti 1,234,567.890 kenna.
=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.
Arfii jalqabaa ykn arfiiwwan barruu deebisa.
LEFT("Text" [; Number])
Barruun barruu bakkatti jechoonni walakkaa jalqabaa murteessamuu qabanidha.
Lakkoofsi (dirqala) barruu jalqabaaf lakkoofsa arfiiwwanii adda baasa. Yoo ulaagaan kun hin ibsmne ta'e, arfiin tokko ni deebi'a.
=LEFT("firii";3) “ala” deebisa.
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("中国";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).
Dheerina diraa iddoowwan qabuu deebisa.
LEN("Barruu")
Barruun barruu dheerinni isaa murteessamuu qabudha.
=LEN("Akkam Oolte") 14 deebisa.
=LEN(12345.67) 8 deebisa.
For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string.
LENB("Text")
Barruun barruu dheerinni isaa murteessamuu qabudha.
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.
Qubee guguddaa diraa barruu keessa jiran gara qubee xixiqqaatti jijjiira.
LOWER("Barruu")
Barruun barruu jijjiiramuu qabu ibsudha.
=LOWER("Aduu") aduu deebisa.
Diraa barruu kan barruu deebisa. Ulaagaaleen iddoo jalqabaa fi lakkoofsa arfiiwwanii adda baasa.
MID("Barruu"; Jalqaba; Lakkoofsa)
Barruun barruu arfiiwwan kasheessuu of keessatti qabata.
Jalqabni iddoo jalqaba arfii barruu kasheessuu keessa jirudha.
Lakkoofsi lakkoofsa arfiiwwanii qaama barruu keessa jiru adda baasa.
=RIGHT("Sun";2) un deebisa.
Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters.
MIDB("Text"; Start; Number_bytes)
Barruun barruu arfiiwwan kasheessuu of keessatti qabata.
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).
Qubee jalqabaa jechoota diraa barruu hunda keessa jiru qubee guddaa godha.
PROPER("Barruu")
Barruun barruu jijjiiramuu qabu ibsudha.
=PROPER("the document foundation") returns The Document Foundation.
Qaama diraa barruu diraa barruu biraatiin bakka buusa. Faankishiniin kun arfiiwwanii fi lakkoofsota (ofumaan gara barruutti jijjiiraman) bakka buusuuf gargaara. Firiin faankishinii yeroo hunda akka barruutti mul'ata. Yoo Lakkoofsa barruudhaan bakka bu'e irratti shallaggiiwwan dabalataa adeemsisuu barbaadde, faankishinii VALUE fayyadamuudhaan deebistee gara lakkoofsaatti jijjiiruu si barbaachisa.
Yoo barruun lakkoofsota qabatu kamiyyu akka lakkoofsaatti akka inni hiikamu hin barbaaddu ta'ee fi ofumaan gara barruutti jijjiirame mallattoo waraabbii keessatti hammatamuu qaba.
REPLACE("Barruu"; Qubannoo; Dheerina; "BarruuHaaraa")
Barruun barruu kutaan isaa bakka bu'u agarsiisa.
Qubannoon bakka barruu keessa jiru iddootti bakka bu'iinsi jalqabu agarrsiisa.
Dheerinni lakkoofsa barruuwwanii Barruu bakka bu'uu qabudha.
BarruuHaaraan barruu Barruu bakka bu'u agarsiisa.
=REPLACE("1234567";1;1;"444") "444234567" deebisa. Arfiin tokko qubannoo 1 irra jiru BarruuHaaraa guutuudhaan bakka bu'a.
Diraa arfii lakkoofsa garagalchoota kennamaniin irra deddeebi'a.
REPT("Barruu"; Lakkoofsa)
Barruun barruu irra deddeebi'amuu qabudha.
Lakkoofsi lakkoofsa irra deddeebbiiti.
=REPT("Akkam bultan";2) Akkam bultanAkkam bultan deebisa.
Refer to the REPT wiki page for more details about this function.
Arfii ykn arfiiwwan barruu dhumaa deebisa.
RIGHT("Text" [; Number])
Barruun barruu kutaan isaa mirgaa murteessamuu qabudha.
Number (optional) is the number of characters from the right part of the text. If this parameter is not defined, one character is returned.
=RIGHT("Sun";2) un deebisa.
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("中国";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).
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).
SEARCH("FindText"; "Text" [; Position])
BarruuBarbaadi barbaadamuu qabudha.
Barruun barruu iddootti barbaachi gaggeeffamudha.
Qubannoon (dirqala) iddoo barruu keessaa bakkatti barbaachi jalqabamudha.
=SEARCH(54;998877665544) 10 deebisa.
Barruu moofaa diraa keessaa barruu haarawaan bakka buusa.
SUBSTITUTE("Text"; "SearchText"; "NewText" [; Occurrence])
Barruun barruu kutaawwan barruu adda ta'an keessatti wal jijjiiruu qabanidha.
BarruuBarbaachi kutaa barruu adda ta'e kan bakka bu'amuu qabudha (al hedduu).
BarruuHaarawni barruu kutaa barruu adda ta'e bakka bu'uuf jirudha.
Uumamni (dirqala) uumama barruu barbaaduu kamtu akka bakka bu'amuu qabu mul'isa. Yoo ulaagaan kun hafe barruu barbaachi yeroo hunda bakka bu'ama.
=SUBSTITUTE("123123123";"3";"abc") 12abc12abc12abc deebisa.
=SUBSTITUTE("123123123";"3";"abc";2) 12312abc123 deebisa.
Faankishiniin kun barruu galtee, ykn yoo galteen barruu miti ta'e diraa barruu duwwaa deebisa.
T(Gatii)
Yoo Gatiin diraa baruu ykn diraa barruu agarsiisa ta'e, Tn diraa barruu sana deebisa; ta'uu baannaan diraa barruu duwwaa deebisa.
=T(12345) diraa duwwaa deebisa.
=T("12345") diraa 12345 deebisa.
Converts a value into text according to a given format.
TEXT(Value; Format)
Value is the value (numerical or textual) to be converted.
Dhangiin barruu dhangii ibsudha. Haala afaan dhangii mandhee keessatti qindaa'een gargarbaastota dessimaalii ykn kumootaa fayyadami.
=TEXT(12.34567;"###.##") barruu 12.35 deebisa
=TEXT(12.34567;"000.00") barruu 012.35 deebisa
=TEXT("xyz";"=== @ ===") returns the text === xyz ===
See also Number format codes: custom format codes defined by the user.
Jechoota gidduutti iddoo arfii qeenxee hambisuudhaan, diraa irraa iddoowwan haqa.
TRIM("Barruu")
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.
Lakkaddaa lakkoofsaa gara arfii ykn qubee lakaddaa qeenxeetti jijjiira.
UNICHAR(number)
=UNICHAR(169) arfii mirga abbummaa deebisa ©.
See also the UNICODE() function.
Barruu keessatti arfii lakaddaa qeenxee jalqabaaf lakaddaa lakkoofsaa deebisa.
UNICODE("Text")
=UNICODE("©") lakkoofsa lakaddaa qeenxee 169 arfii mirga abbummaaf deebisa.
See also the UNICHAR() function.
Diraa dirree barruu keessatti adda ba'e gara qubee guguddaatti jijjiira.
UPPER("Barruu")
Barruun qubeewwan xixiqqoo ati gara qubee guguddaatti jijjiiruu barbaaddu agarsiisa.
=UPPER("Good Morning") AKKAM BULTE deebisa.