How To Use Excel String Functions
How To Use Excel String Functions
(Examples of 17 Functions)
Arguments Explanation:
ARGUMENT REQUIRED/OPTIONAL EXPLANATION
ReturnParameter:
A numeric value in a specified format.
Arguments Explanation:
ARGUMENT REQUIRED/OPTIONAL EXPLANATION
AD
=CONCATENATE(text1,[text2],...)
Arguments:
The arguments can be in any format, e.g. text, number, cell reference, or an
array of values.
Return Value:
Returns a joint text value combining all the arguments.
AD
=MID(text,start_num,num_chars)
Argument:
Special Notes:
If the start_num argument is greater than the total number of characters of a string,
the MID function will return an empty string.
Now, we will see the MID function in action.
AD
SEARCH(find_text,within_text,[start_num])
Arguments:
Note:
Syntax:
=LEN(TEXT)
Arguments:
REQUIRED OR VALUE
ARGUMENT
OPTIONAL
Note:
LEN reflects the length of text as a number.
This function works with numbers, but number formatting is not included.
LEN function returns zero in terms of empty cells.
We will see the LEN function in action.
AD
Version:
The RIGHT function is available from Excel 2007 to the latest version.
NOTES
If num_chars is not provided, it defaults to 1.
If num_chars is greater than the number of characters available, the RIGHT function
returns the entire text string.
RIGHT will extract digits from numbers as well as text.
This function does not consider the formatting of any cell, like a date, currency, etc.
While writing this article, I’m using the Office 365.
We see every instance of using the RIGHT function.
AD
Syntax:
Argument Explanation:
ARGUMENT REQUIRED/OPTIONAL EXPLANATION
AD
Arguments:
text Required The text string that contains the characters to extract.
Return Parameter:
AD
Arguments:
Return Value:
After entering the function, it will give you the text string free from all non-
printable characters.
Note:
AD
Return Parameter:
The CHAR function will return a character based on the number given as an
argument.
AD
Syntax:
=PROPER(text)
Arguments:
Returning Parameter:
It returns the first letter of every word to uppercase and other letters to
lowercase.
Syntax:
=EXACT (text1,text2)
Arguments Explanation:
Return Parameter:
TRUE or FALSE, depending on the exact match between the two arguments.
AD
Arguments Explanation:
Return Parameter:
Remove all spaces from a text string except for single spaces between words.
Argument Explanation:
Return Parameter:
A numeric number will be returned for the first character of the input text string.
In general, the number returned by CODE represents the ASCII decimal code
for a character. The CODE function was developed to operate in an ASCII/ANSI
domain, and it only knows how to map characters to integers 0-255.
Arguments Explanation:
Return Parameter:
AD
Arguments:
Return Parameter:
Things to Remember
Data Truncation: When using functions like LEFT, RIGHT, or MID to extract a
portion of a text string, there’s a risk of data truncation if the specified length
exceeds the actual length of the text. This can result in missing or incomplete
information.
Case Sensitivity Issues: Excel String Functions are generally case-sensitive. If there’s
a mismatch in the text being compared or manipulated, the results may not be as
expected, leading to errors or incorrect outputs.
Leading and Trailing Spaces: Extra leading or trailing spaces in text strings can cause
discrepancies in search, comparison, and data manipulation operations. Functions
like TRIM can be used to address this, but if overlooked, it can lead to issues