๐ Excel Formulas โ Part 5
This part focuses on Text Functions โ essential for cleaning, extracting, and combining text in Excel.
1๏ธโฃ LEFT
Extracts characters from the beginning of a text.
=LEFT(A2,5)
Example:
INDIA123 โ INDIA
2๏ธโฃ RIGHT
Extracts characters from the end of a text.
=RIGHT(A2,3)
Example:
INV123 โ 123
3๏ธโฃ MID
Extracts characters from the middle of a text.
=MID(A2,4,5)
Example:
EMP-12345 โ 12345
4๏ธโฃ LEN
Counts the number of characters in a text.
=LEN(A2)
Example:
Excel โ 5
Spaces are also counted.
5๏ธโฃ TRIM
Removes unnecessary spaces from text.
=TRIM(A2)
Example:
" John Smith " โ "John Smith"
Very useful when cleaning imported data.
6๏ธโฃ UPPER
Converts text to uppercase.
=UPPER(A2)
excel โ EXCEL
7๏ธโฃ LOWER
Converts text to lowercase.
=LOWER(A2)
EXCEL โ excel
8๏ธโฃ PROPER
Capitalizes the first letter of each word.
=PROPER(A2)
john smith โ John Smith
9๏ธโฃ CONCAT
Combines text from multiple cells.
=CONCAT(A2," ",B2)
Example:
A2 = John
B2 = Smith
Result โ John Smith
๐ TEXTJOIN
Combines multiple values using a delimiter.
=TEXTJOIN(", ",TRUE,A2:A5)
Example:
SQL, Excel, Power BI, Tableau
The TRUE tells Excel to ignore empty cells.
๐ง Quick Reference
LEFT โ Extract from beginning
RIGHT โ Extract from end
MID โ Extract from middle
LEN โ Count characters
TRIM โ Remove extra spaces
UPPER โ Convert to uppercase
LOWER โ Convert to lowercase
PROPER โ Capitalize words
CONCAT โ Combine text
TEXTJOIN โ Combine text with a separator
๐ก Practice
Suppose:
A2 = " john smith "
Try creating formulas to:
1. Remove extra spaces โ TRIM
2. Convert to uppercase โ UPPER
3. Convert to lowercase โ LOWER
4. Capitalize properly โ PROPER
5. Count characters โ LEN
โค๏ธ Double Tap & React For Part 6!
Post #2329
2.5K
- โค 20
- ๐ 1