Text Functions

This section contains descriptions of the Text functions.

이 명령을 사용하려면...

삽입 - 함수 - 범주 텍스트


Using double quotation marks in formulas

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:

  1. 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.

  2. 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 Tools - AutoCorrect Options - Localized Options dialog to set the characters used to automatically correct the start and end typographical double quotation marks. Uncheck the Replace toggle button to disable the feature.

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.

ARABIC

Returns the numeric value corresponding to a Roman number expressed as text.

ASC

Converts double-byte (full-width) characters to single-byte (half-width) ASCII and katakana characters.

BAHTTEXT

태국어 통화 이름을 포함하여 숫자를 태국어 텍스트로 변환합니다.

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.

CHAR

현재 코드 테이블에 따라 숫자를 문자로 변환합니다. 숫자는 두 자리 또는 세 자리 정수가 될 수 있습니다.

CLEAN

인쇄할 수 없는 모든 문자가 문자열에서 제거됩니다.

CODE

텍스트 문자열의 첫 문자에 대한 숫자 코드를 구합니다.

CONCATENATE

여러 텍스트 문자열을 하나의 문자열로 결합합니다.

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.

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.

EXACT

두 개의 텍스트 문자열을 비교하여 동일한 경우 TRUE를 돌려줍니다. 이 함수는 대/소문자를 구분합니다.

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.

FIXED

지정된 소수점 이하 자릿수와 선택적으로 천단위 구분 기호를 사용하여 숫자를 텍스트로 반환합니다.

JIS

Converts single-byte (half-width) ASCII or katakana characters to double-byte (full-width) characters.

LEFT

텍스트의 첫 번째 문자를 하나 이상 반환합니다.

LEFTB

Returns the first characters of a DBCS text.

LEN

공백을 포함하는 문자열의 길이를 구합니다.

LENB

For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string.

LOWER

텍스트 문자열의 모든 대문자를 소문자로 변환합니다.

MID

텍스트의 텍스트 문자열을 반환합니다. 이 매개 변수는 문자 수와 시작 위치를 지정합니다.

MIDB

Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters.

PROPER

텍스트 문자열의 모든 단어에서 첫 글자를 대문자로 바꿉니다.

REGEX

Matches and extracts or optionally replaces text using regular expressions.

REPLACE

텍스트 문자열의 일부를 다른 텍스트 문자열로 대체합니다. 이 함수를 사용하여 문자 및 숫자(텍스트로 자동 변환되는)를 대체할 수 있습니다. 함수 결과는 항상 텍스트로 표시됩니다. 텍스트로 대체된 숫자를 사용하여 추가 계산을 수행하려면 VALUE 함수를 사용하여 해당 텍스트를 다시 숫자로 변환해야 합니다.

REPT

주어진 복사본 Number만큼 문자열을 반복합니다.

RIGHT

텍스트의 마지막 문자(들)를 반환합니다.

RIGHTB

Returns the last character or characters of a text with double bytes characters sets (DBCS).

ROMAN

Converts a number into a Roman numeral. The value range must be between 0 and 3999. A simplification mode can be specified in the range from 0 to 4.

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).

SUBSTITUTE

문자열의 이전 텍스트를 새 텍스트로 대체합니다.

T

이 함수는 대상 텍스트를 반환하거나, 대상이 텍스트가 아닌 경우 빈 텍스트 문자열을 반환합니다.

TEXT

Converts a value into text according to a given format.

TRIM

문자열에서 공백을 제거하여 단어 사이에 공백을 하나만 남깁니다.

UNICHAR

유니코드 문자나 글자를 코드 번호로 변환합니다.

UNICODE

텍스트 문자열에서 첫 번째 유니코드 문자의 숫자 코드를 반환합니다.

UPPER

text 필드에 지정된 문자열을 대문자로 변환합니다.

VALUE

Converts the string representation of a number to numeric form. If the supplied string is a valid date, time, or date-time, the corresponding date-time serial number is returned.

WEBSERVICE

Get some web content from a URI.

FILTERXML

Apply a XPath expression to a XML document.

ENCODEURL

Returns a URL-encoded string.

Please support us!