TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.2K subscribers
Post #2139 3.01K
๐Ÿš€ Excel Formulas Fundamentals โ€” Part 8

๐Ÿ“ Text Functions for Data Cleaning & Manipulation

In real-world datasets, text data is often inconsistent. Names may have extra spaces, different letter cases, or be combined into one field.

Text functions help you clean, extract, combine, and standardize text efficiently.

๐Ÿ“Œ These functions are heavily used by Data Analysts, Business Analysts, HR teams, and Finance professionals.

๐Ÿง  1. LEN() โ€“ Count Characters
LEN() returns the total number of characters in a cell, including spaces.
Syntax: =LEN(text)
Example: =LEN(A2)
If A2 contains Deepak
Result: 6
๐Ÿ“Œ Use Cases: Validate IDs, Check password length, Verify product codes

โฌ…๏ธ 2. LEFT() โ€“ Extract Characters from the Left
Extracts a specified number of characters from the beginning of a text string.
Syntax: =LEFT(text,num_chars)
Example: =LEFT(A2,3)
If A2 = "Laptop"
Result: Lap
๐Ÿ“Œ Useful for extracting prefixes or department codes.

โžก๏ธ 3. RIGHT() โ€“ Extract Characters from the Right
Returns characters from the end of a text string.
Syntax: =RIGHT(text,num_chars)
Example: =RIGHT(A2,4)
If A2 = "INV2026"
Result: 2026
๐Ÿ“Œ Useful for extracting years, invoice numbers, or suffixes.

๐Ÿ” 4. MID() โ€“ Extract Characters from the Middle
Extracts text starting from a specified position.
Syntax: =MID(text,start_num,num_chars)
Example: =MID(A2,3,4)
If A2 = "EMP12345"
Result: P123
๐Ÿ“Œ Useful for extracting parts of employee IDs or product codes.

โœ‚๏ธ 5. TRIM() โ€“ Remove Extra Spaces
Removes leading, trailing, and extra spaces between words.
Syntax: =TRIM(A2)
Example:
Before: John Doe
After: John Doe
๐Ÿ“Œ Essential for cleaning imported data.

๐Ÿ”  6. UPPER(), LOWER(), PROPER()
These functions standardize text case.

UPPER()
=UPPER(A2)
Result: JOHN DOE

LOWER()
=LOWER(A2)
Result: john doe

PROPER()
=PROPER(A2)
Result: John Doe
๐Ÿ“Œ Useful for customer names, addresses, and reports.

๐Ÿ”— 7. CONCAT() and & โ€“ Combine Text
Using &
=A2&" "&B2
If A2 = John, B2 = Doe
Result: John Doe

Using CONCAT()
=CONCAT(A2," ",B2)
๐Ÿ“Œ Combines multiple text values into one.

๐Ÿ“‹ 8. TEXTJOIN()
Joins text with a chosen delimiter.
Syntax: =TEXTJOIN(", ",TRUE,A2:A5)
Example:
Names: Rahul, Priya, Amit
Result: Rahul, Priya, Amit
๐Ÿ“Œ Useful for generating email lists or summaries.

๐Ÿ”„ 9. SUBSTITUTE()
Replaces specific text with new text.
Syntax: =SUBSTITUTE(text,old_text,new_text)
Example: =SUBSTITUTE(A2,"Yes","Approved")
If A2 = "Yes"
Result: Approved
๐Ÿ“Œ Great for standardizing values.

๐Ÿ› ๏ธ 10. REPLACE()
Replaces text based on position.
Syntax: =REPLACE(old_text,start_num,num_chars,new_text)
Example: =REPLACE("ABC123",1,3,"XYZ")
Result: XYZ123
๐Ÿ“Œ Useful when the position of the text is fixed.

๐Ÿ”Ž 11. FIND() and SEARCH()
Both functions return the position of text inside another text string.

FIND() Case-Sensitive
=FIND("Excel",A2)

SEARCH() Case-Insensitive
=SEARCH("excel",A2)
Example: If A2 = "Learn Excel Today"
Result: 7
๐Ÿ“Œ Useful for checking whether a keyword exists in a text string.

๐ŸŽฏ Mini Practice Project
Create: Customer_Data.xlsx
Data:
First Name | Last Name | Full Name | Customer ID
john | doe | CUST-2026-001

Tasks:
โœ… Convert names to Proper Case
=PROPER(A2)

โœ… Create Full Name
=A2&" "&B2

โœ… Remove Extra Spaces
=TRIM(C2)

โœ… Extract Year from Customer ID
=MID(D2,6,4)

โœ… Count Characters in Customer ID
=LEN(D2)

๐Ÿ† End of Part 8
After completing this lesson, you should be able to:
โœ… Extract text using LEFT(), RIGHT(), and MID()
โœ… Clean data using TRIM()
โœ… Standardize text with UPPER(), LOWER(), and PROPER()
โœ… Combine text using CONCAT(), TEXTJOIN(), and &
โœ… Replace and modify text using SUBSTITUTE() and REPLACE()
  • โค 9
  • ๐Ÿ‘ 1
More from @excel_analyst
  1. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  2. Oct 12, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 7 This part focuses on Paste Special, Go To Special & Advanced Pโ€ฆ
  3. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  4. Oct 10, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 6 This part focuses on Worksheet & Sheet Management shortcuts โ€”โ€ฆ
  5. Oct 9, 2026Hey guys, Today, Iโ€™m covering some Excel interview questions that often pop up in data anaโ€ฆ
  6. Oct 9, 2026๐Ÿ‡ฎ๐Ÿ‡ณ ๐—š๐—ข๐—ฉ๐—˜๐—ฅ๐—ก๐— ๐—˜๐—ก๐—ง ๐—ข๐—™ ๐—œ๐—ก๐——๐—œ๐—” โ€” ๐—”๐—œ๐—–๐—ง๐—˜ ๐—œ๐—ก๐—ง๐—˜๐—ฅ๐—ก๐—ฆ๐—›๐—œ๐—ฃ๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐Ÿš€โ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’