Excel Text functions: exact, fixed, proper, rept, text
The EXACT() function is used to determine if the value of two texts are identical.
This function returns a Boolean value of TRUE or FALSE based on the comparison.
TRUE is returned if the texts are identical, else, FALSE is returned.
This function is case sensitive.
|Text 1||Text 2||Formula||EXACT()|
The FIXED() function is used to round a specified number to a fixed number of decimal places.
Though it deals with numbers, it is classified as a text function since the result is expressed as a text.
This function takes an optional parameter, which specifies whether the comma separation is to be used.
The proper function is used to convert first character of every word in a sentence to upper case.
All characters that do not immediately follow an alphabet are converted to upper case characters.
Even if a character occurs immediately after a number or a symbol, that character is also converted to upper case.
|I am sam||I Am Sam||=PROPER(L29)|
|I am sam's brother||I Am Sam'S Brother||=PROPER(L30)|
|the book is mine.||The Book Is Mine.||=PROPER(L31)|
|THIS IS MY PLACE.||This Is My Place.||=PROPER(L32)|
|My PassWord is 123abcd||My Password Is 123Abcd||=PROPER(L33)|
Note the last sentence. The function has converted the 'a' to 'A'. This is not the desired result.
Hence, this function has its drawbacks and should be used cautiously.
The REPT() function is used to repeat a given string for the specified number of times.
This function repeats the string in the same cell and is contiguous.
The maximum number of times a string can be repeated is restricted to a maximum of 32767 chars in all.
That is, a cell can accommodate a maximum of 32K chars and the maximum repeat value depends on length of
A repeat value of 0, results in an empty text.
|hello anderson||hello andersonhello anderson||=REPT(L44,2)|
The TEXT() function is used to convert a supplied number into text format.
The format to be used with the result is also specified in the function.
This is similar to FIXED() function except that, this does not round the number.