Dbcs
Syntax:¶
DBCS(text)
- text: The text string containing half-width (single-byte) characters that you want to convert to full-width (double-byte) characters.
Description:¶
The DBCS function in Excel converts half-width (single-byte) characters in a text string to full-width (double-byte)
characters. This function is the inverse of the ASC function and is primarily designed for use with languages that
support double-byte character sets (DBCS), such as Japanese, Chinese, and Korean. In DBCS languages, characters can be
represented as either full-width (taking up more space) or half-width.
For example, half-width characters like ABC will be converted to their full-width counterparts ABC.
Examples:¶
=DBCS("Hello")- Returns:
Hello(The half-width charactersHelloare converted to full-width.)
- Returns:
=DBCS("12345")- Returns:
12345(The half-width numbers12345are converted to full-width.)
- Returns:
=DBCS("!#$%")- Returns:
!#$%(Half-width punctuation is converted to its full-width equivalents.)
- Returns:
Notes:¶
- The
DBCSfunction does not affect full-width characters; they remain unchanged. - This function works specifically with DBCS languages, and its effects might not be apparent in locales that primarily use single-byte character sets.
- The
DBCSfunction is useful when formatting text for systems or applications that require full-width characters, such as certain East Asian typesetting and display contexts. - If no half-width characters exist in the input string, the original text is returned unchanged.
- For converting full-width characters to their half-width (single-byte) versions, you can use the
ASCfunction. - The
DBCSfunction is equivalent to theJISfunction in Excel. Both perform the same conversion.