Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V26.2
  • Text Functions in Formulas

    • 3 minutes to read

    This document describes text functions supported by DevExpress Spreadsheet Document API.

    Name

    Description

    Syntax

    BAHTTEXT

    Converts a number to Thai text and appends “Baht” to the end of the text.

    BAHTTEXT(number)

    CHAR

    Returns the character that corresponds to the specified number in the system character set.

    CHAR(number)

    The number must be between 1 and 255.

    CLEAN

    Removes all non-printable characters from text.

    CLEAN(text)

    The CLEAN function removes the first 32 nonprinting characters in the 7-bit ASCII code (values 0 through 31) from text. The Unicode character set contains additional nonprinting characters (values 127, 129, 141, 143, 144, and 157).

    CODE

    Returns a numeric code for the first character in a text string.

    CODE(text)

    CONCAT

    Combines text from multiple ranges or strings without a delimiter.

    CONCAT(text1, [text2],…)

    CONCATENATE

    Joins two or more text strings into one string.

    CONCATENATE(text1, [text2], …)

    DOLLAR

    Converts a number to text in currency format and rounds decimals to the specified number of places.

    DOLLAR(number, [decimals])

    EXACT

    Checks whether two strings are exactly the same.

    EXACT(text1, text2)

    FIND

    Returns the starting position of one text string within another text string. The function is case-sensitive.

    FIND(find_text, within_text, [start_num])

    FIXED

    Rounds a number to the specified number of decimals and returns the result as text with or without commas.

    FIXED(number, [decimals], [no_commas])

    LEFT

    Returns a specified number of characters from the start of a text string.

    LEFT(text, [num_chars])

    LEN

    Returns the number of characters in a text string.

    LEN(text)

    LOWER

    Converts all uppercase letters in a text string to lowercase.

    LOWER(text)

    MID

    Returns a specified number of characters from a text string, from the position that you specify.

    MID(text, start_num, num_chars)

    NUMBERVALUE

    Converts text to a number in a locale-independent manner.

    NUMBERVALUE(Text, [Decimal_separator], [Group_separator])

    PROPER

    Converts all characters in a text string to proper case (the first letter in each word is uppercase and all other letters are lowercase).

    PROPER(text)

    REPLACE

    Replaces part of a text string with another string. The replaced part starts at the specified position.

    REPLACE(old_text, start_num, num_chars, new_text)

    REPT

    Repeats text the specified number of times.

    REPT(text, number_times)

    RIGHT

    Returns a specified number of characters from the end of a text string.

    RIGHT(text,[num_chars])

    SEARCH

    Returns the position of a character or text string within a specified text string. The function is not case-sensitive.

    SEARCH(find_text,within_text,[start_num])

    SUBSTITUTE

    Substitutes new text for old text in a text string.

    SUBSTITUTE(text, old_text, new_text, [instance_num])

    T

    Returns the text that the value argument refers to. If the value argument does not refer to text, T returns “” (empty text).

    T(value)

    TEXT

    Converts a value to text in a specific number format.

    TEXT(value, format_text)

    TEXTJOIN

    Combines text strings and separates them with the specified delimiter.

    TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

    TRIM

    Removes all spaces from text except for single spaces between words.

    TRIM(text)

    UNICODE

    Returns the number (code point) that corresponds to the first character of the text.

    UNICODE(text)

    UNICHAR

    Returns the Unicode character that corresponds to the specified numeric value.

    UNICHAR(number)

    UPPER

    Converts text to uppercase.

    UPPER(text)

    VALUE

    Converts a text string that contains a number to a number.

    VALUE(text)