Text functions
These functions operate on text values. Unless otherwise stated, text functions require text expressions as arguments and produce text results.
Returns the ASCII character corresponding to the specified value. Format: =CHAR(number) Argument: Example: =CHAR(99.8) returns c, which is represented in ASCII code by 99. Returns the numeric ASCII code of the first character in the argument. Format: =CODE(text) Argument: Example: =CODE("z") returns 122, the ASCII code for lowercase z. Joins (concatenates) strings of text. Format: =CONCAT(text1,text2,...) Argument: Example: In the spreadsheet below, =CONCAT(A1,", ",B1) returns "Smith, Frank".
Returns the logical value TRUE if both arguments are identical in case and characters. Format: =EXACT(text1,text2) Argument:
Example: =EXACT(A1,B1) returns FALSE because the two arguments are not identical. Searches a text expression for a specified character or series of characters. It starts at the character position specified by "start offset" and returns the starting position of "find text." The search is case-sensitive and spaces are counted. Format: =FIND(find text,in text,start offset) Arguments: Example: =FIND("e","where on earth") returns 3 because "e" is the third character in the phrase "where on earth." Returns the number of characters specified in "number of characters" from the text specified in the text argument. The returned text string starts from the leftmost character in the text argument and extends for the given number of characters. Format: =LEFT(text,number of characters) Arguments: Example: =LEFT("Pauline Mitchell",4) returns "Paul," the first four characters in the text. Counts the number of characters in the text argument, including spaces, numbers, and special characters. Format: =LEN(text) Argument: Example: =LEN("Cowabunga!") returns 10. Converts uppercase characters in text to lowercase. Format: =LOWER(text) Argument: Example: =LOWER("Wow, LOOK!") returns "wow, look!" Returns the number of characters specified in "number of characters" from the text specified in the text argument, starting at the position indicated by "start position." Format: =MID(text,start position,number of characters) Arguments: Example: =MID("New Example,",3,6) begins with the third character and counts six characters, and returns "w Exam". Converts a number to its textual representation. This function is useful with spreadsheet tasks such as creating charts, where you don't want a number included in a calculation. Format: =NUMTOTEXT(number) Argument: Example: =NUMTOTEXT(1992) returns 1992. AppleWorks interprets this number as a label and won't include it as part of the data series used to build a chart. Capitalizes the first character in each word. Format: =PROPER(text) Argument: Example: =PROPER("Give peace a chance") returns "Give Peace A Chance." Replaces "old text" with "new text," starting from the position indicated by "start num" and continuing for the number of characters specified by "num chars." Format: =REPLACE(old text,start num,num chars,new text) Arguments: Example: =REPLACE("my father",4,2,"bro") starts with the fourth character in "my father," replaces text for two characters, and returns "my brother." Repeats text the specified number of times. Format: =REPT(text,# of times) Arguments: Example: =REPT("*",5) returns *****. Returns a string of text from the characters in the text argument, starting from the end and moving left the number of characters specified. Format: =RIGHT(text,number of characters) Arguments: Example: =RIGHT("New Example",7) counts seven characters from right to left and returns "Example." Converts text to a number for functions that require a numeric argument. It retains special characters such as commas, dollar signs, and decimals, except for cases when the characters conflict with numeric standards. Format: =TEXTTONUM(text) Argument: Example: =TEXTTONUM("456abc78") removes the text that doesn't conform to standard number rules and returns 45678. =TEXTTONUM("365 E. Olive Ave.") returns 365. Removes extra spaces from text. Format: =TRIM(text) Argument: Example: =TRIM("my cat Pancho") returns "my cat Pancho." Converts lowercase text characters to uppercase. Format: =UPPER(text) Argument: Example: =UPPER("make uppercase") returns "MAKE UPPERCASE." Related topic
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of contents | Index |