Text Functions
This section contains descriptions of the Text functions.
ARABIC
Арзиши рақами Римиро ҳисоб мекунад. Арзиш бояд дар фосилаи 0 ва 3999 бошад.
ARABIC("Text")
Text матне, ки рақами Римиро ифода мекунад.
ARABIC("MXIV") натиҷа 1014
ARABIC("MMII") натиҷа 2002
ASC
The ASC function converts full-width to half-width ASCII and katakana characters. Returns a text string.
See https://wiki.documentfoundation.org/Calc/Features/JIS_and_ASC_functions for a conversion table.
ASC("Text")
Text is the text that contains characters to be converted.
See also JIS function.
BAHTTEXT
Рақамро бо ҳарфҳои Тайи менависад бо иловаи арз.
BAHTTEXT(Number)
Number ягон рақам. "Baht" ба қисми бутуни рақам ва "Satang" ба қисми касрии рақам ҳамроҳ карда мешаванд.
BAHTTEXT(12.65) сатрро ба забони Тайи, ки маънои "Дувоздаҳ Баҳт ва шасту панҷ сатанг"ро дорад.
BASE
Рақами мусбатро ба матн табдил медиҳад аз системаи рақамӣ. Рақамҳои 0-9 ва ҳарфҳои A-Z истифода мешаванд.
BASE(Number; Radix; [MinimumLength])
number рақами мусбат, ки табдил дода мешавад.
radix асоси системаи рақамӣ. Рақами мусбати аз 2 то 36.
Minimum length (ихтиёрӣ) дарозии хурдтарини давомнокии рамзҳоро муайян месозад. Агар матн аз ин рақам хурд бошад, онгоҳ сифрҳо дар чапи он илова карда мешаванд.
BASE(17;10;4) натиҷа 0017 дар ченаки даҳҳӣ.
BASE(17;2) натиҷа 10001 дар системаи дуӣ (бинарӣ).
BASE(255;16;4) натиҷа 00FF дар системаи шонздаҳӣ.
CHAR
Рақамро ба ҳарф табдил медиҳад мувофиқи ҷадвали код. Рақам бояд ду ё серақама бошад.
YEAR(рақам)
numberрақам аз 1 то 255, ки коди ҳарфро ифода мекунад.
CHAR(100) натиҷа "d".
="abc" & CHAR(10) & "def" inserts a newline character into the string.
CLEAN
Ҳама рамзҳои чопнашаванда аз сатр бароварда мешаванд.
CLEAN("Text")
text матн.
CODE
Коди рақамии рамзи аввали матнро бармегардонад.
CODE("Text")
Text матн.
CODE("Hieronymus") натиҷа 72, CODE("hieroglyphic") натиҷа 104.
Коди дар ин ҷой истифодашуда ба ASCII дахл надорад, балки ба коди истифодашудаистода.
CONCATENATE
Якчанд сатрро якҷоя мекунад.
CONCATENATE("Text1"; ...; "Text30")
Text 1; text 2; ... то 30 матн барои якҷоякунӣ.
CONCATENATE("Субҳ ";"Бахайр ";"Хонум. ";"Моҳира") натиҷа Субҳ Бахайр Хонум Моҳира.
DECIMAL
Матнро бо рамзҳои системаи рақамӣ ба рақами мутлақ табдил медиҳад. Radix аз 2 то 36 шуда метавонад. Space ва tab инкор карда мешаванд. матн аз ҳарфи хурду калон вобаста нест.
Агар радикс ба 16 баробар бошад, x, X, 0x ё 0X дар аввал, ва h ё H -и изофашуда ба инрбат гирифта намешаванд. Агар радикс баробари 2 бошад, b ё B-и изофашуда ба инобат гирифта намешавад. Дигар рамзҳо, ки ба системаи рақамӣ таалуқ надоранд хато ҳосил мекунанд.
DECIMAL("Text"; Radix)
text матн. Барои фарқ кардани матн аз системаи шонздаҳӣ матнро дар нохунак гиред.
radix асоси системаи рақамӣ. Рақами мусбати аз 2 то 36.
DECIMAL("17";10) натиҷа 17.
DECIMAL("FACE";16) натиҷа 64206.
DECIMAL("0101";2) натиҷа 5.
DOLLAR
Рақамро ба арз табдил медиҳад, ки ба миқдори гуфташуда бутун карда шудааст. Дар майдони арзиш рақамро дохил кунед то ба арз табдил дода шавад. Ихтиёри метавонед рақами баъдикасриро лохил кунед дар майдоникасрӣ. Агар ин арзиш рабошад ду адади баъдикасрӣ истифода мешавад.
Формати арзиро дар системаатон ҷӯр созед.
DOLLAR(Value; Decimals)
valueрақам, шавола ба чашмак, ки рақами табдилшаванда дорад.
decimals рақами ихтиёрии баъдикасрӣ.
DOLLAR(255) натиҷа $255.00.
DOLLAR(367.456;2) натиҷа $367.46. Ҷудокунаки касриро мувофиқи Ҷӯрсозиҳои ҷории система гузоред.
EXACT
Ду матнро санҷида ҲАҚҚОНӢ бармегардонад агар онҳо якхела бошанд. Ин фуктсия ҳарфҳои хурду калонро фарқ мекунад.
EXACT("Text1"; "Text2")
text_1 матни аввал.
text_2 матни дуюм.
EXACT("Sun microsystems";"Sun Microsystems") натиҷа ҚАЛБАКӢ.
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.
FIND("FindText"; "Text"; Position)
find_text матни ёфтшаванда.
text матни ҷустуҷӯшаванда.
position (ихтиёрӣ) мавқеи сар кардани ҷустуҷӯ.
FIND(76;998877665544) натича 6.
FIXED
Returns a number as text with a specified number of decimal places and optional thousands separators.
FIXED(Number; Decimals; NoThousandsSeparators)
Number рақам.
Decimals шумораи ададҳои каср.
No thousands separators (ихтиёрӣ) нишон додан ё надодани ҷудокунаки ҳазорҳоро муайян мекунад. Агар рақам нобаробари 0 бошад онгоҳ нишон дода намешавад, вагарна аз ҷӯрсозиҳои система истифода карда мешавад ҷӯрсозиҳои ҷории система.
FIXED(1234567.89;3) натиҷа 1,234,567.890 ҳамчун сатри матнӣ.
FIXED(1234567.89;3;1) натиҷа 1234567.890 ҳамчун сатри матнӣ.
JIS
The JIS function converts half-width to full-width ASCII and katakana characters. Returns a text string.
See https://wiki.documentfoundation.org/Calc/Features/JIS_and_ASC_functions for a conversion table.
JIS("Text")
Text is the text that contains characters to be converted.
See also ASC function.
LEFT
Returns the first character or characters of a text.
LEFT("Text"; Number)
text матн.
Number (ихтиёрӣ) шумораи рамзҳо аз аввал.
LEFT("output";3) натиҷа out.
LEFTB
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).
LEN
Дарозии сатрро бо холигиҳо медиҳад.
LEN("Text")
text матн.
LEN("Good Afternoon") натиҷа 14.
LEN(12345.67) натиҷа 8.
LENB
For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string.
LENB("Text")
text матн.
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
Ҳама ҳарфҳои калонро ба хурд табдил медиҳад.
LOWER("Text")
text матн.
RIGHT("Sun";2) натиҷа un.
MID
Returns a text string of a text. The parameters specify the starting position and the number of characters.
MID("Text"; Start; Number)
text матн.
startмавқеъ.
number шумораи рамзҳо.
MID("Sun Microsystems";5;5) натиҷа Micro.
MIDB
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 матн.
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).
PROPER
Ҳарфи аваали ҳар калимаро калон мегардонад.
PROPER("Text")
text матн.
PROPER("sun microsystems") натиҷа Sun Microsystems.
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.
Матни рақамдоштаро дар нохунак гиред, то кӣ рақам ба матн табдил наёбад.
REPLACE("Text"; Position; Length; "NewText")
Text матни қисмаш ивазшаванда.
position мавқеъи ивазкунӣ.
length шумораи рамзҳои ивазшавандаи матн.
new text матни нав, ки ба матни ивазшаванда дохил мешавад .
REPLACE("1234567";1;1;"444") натиҷа "444234567". Як рамз дар ҷаи 1 бо матни нав пурра иваз мешавад.
REPT
Сатрро ба шумораи додашуда такрор мекунад .
REPT("Text"; Number)
text матни ивазшаванда.
number шумораи такроркунӣ.
Натича метавонад то255 рамз бошад.
REPT("Good morning"; 2) натиҷаGood morningGood morning.
RIGHT
Returns the last character or characters of a text.
RIGHT("Text"; Number)
textматн.
number (ихтиёрӣ) шумораи рамзҳо аз рост.
RIGHT("Sun";2) натиҷа un.
RIGHTB
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.
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).
ROMAN
Рақамро ба Римӣ табдил медиҳад. Арзиш аз 0 то 3999 шуданаш мумкин, режим аз 0 то 4.
ROMAN(Number; Mode)
Number рақами табдилшаванда.
Mode (ихтиёрӣ) дараҷаи соддагиро мефаҳмонад.
ROMAN(999) натиҷа CMXCIX
ROMAN(999;0) натиҷа CMXCIX
ROMAN (999;1) натиҷа LMVLIV
ROMAN(999;2) натиҷа XMIX
ROMAN(999;3) натиҷа VMIV
ROMAN(999;4) натиҷа IM
SEARCH
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)
find_text матни ҷустуҷӯшаванда.
text Матне, ки дар он ҷустуҷӯ гузаронида мешавад.
position (ихтиёрӣ) мавқеи оғози ҷустуҷӯ.
SEARCH(54;998877665544) натиҷа 10.
SUBSTITUTE
Сатри навро ба қисми матни кӯҳна иваз месозад.
SUBSTITUTE("Text"; "SearchText"; "NewText"; Occurrence)
text матне, ки дар он қисмаш иваз карда мешавад.
search_text сегменти матн, ки иваз карда мешавад.
new text матне, ки гузошта мешавад.
пайдоиш (ихтиёрӣ) муайян месозад, ки кадом пайдоиши матни чустуҷӯ иваз карда шавад. Агар ин параметр гузошта нашуда бошад, онгоҳ саросар иваз карда мешавад.
SUBSTITUTE("123123123"; "3"; "abc") натиҷа 12abc12abc12abc.
SUBSTITUTE("123123123"; "3"; "abc"; 2) натиҷа 12312abc123.
T
This function returns the target text, or a blank text string if the target is not text.
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) натиҷа сатри холӣ "".
T("12345") натиҷа сатри 12345.
TEXT
Рақамро ба матн мувофиқи формати додашуда табдил медиҳад.
TEXT(Number; Format)
Numberарзиши рақамӣ, ки табдил дода мешавад.
Format формат.
=TEXT(12.34567;"###.##") returns the text 12.35
=TEXT(12.34567;"000.00") returns the text 012.35
See also Number format codes: custom format codes defined by the user.
TRIM
Холигиҳоро аз матнро кӯр карда, танҳо як холигӣ миёни калимаҳо мегузорад.
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.
UNICHAR
Converts a code number into a Unicode character or letter.
UNICHAR(number)
=UNICHAR(169) returns the Copyright character ©.
See also the UNICODE() function.
UNICODE
Коди рақамии рамзи аввали матнро бармегардонад.
UNICODE("Text")
=UNICODE("©") returns the Unicode number 169 for the Copyright character.
See also the UNICHAR() function.
UPPER
Сатри дар майдониtext бударо ба ҳарфи калон табдил медиҳад.
UPPER("Text")
textматн, ки дар он амал иҷро мешавад.
UPPER("Good Morning") натиҷа GOOD MORNING.
VALUE
Сатри матниро ба рақам табдил медиҳад.
DATEVALUE("Матн")
text матни табдилшаванда.
VALUE("4321") натиҷа 4321.