MS Excel for Data Analysis: post #2285 โ€” TG.ME

๐Ÿ“Š Excel Basics #36 โ€“ Text to Columns

Sometimes multiple pieces of information are stored inside a single Excel cell.

For example:
"Rahul,IT,Pune"

You may want to separate this into:
Rahul | IT | Pune

Excel's Text to Columns feature can do this quickly.

๐Ÿ“Œ What is Text to Columns?

Text to Columns splits the contents of one column into multiple columns based on a specific separator or fixed position.

Go to:
Data โ†’ Text to Columns

There are two main options:

๐Ÿ‘‰ Delimited
๐Ÿ‘‰ Fixed Width

๐Ÿ“Œ 1. Delimited

Use Delimited when different pieces of data are separated by a character.

Common delimiters:
โ€ข Comma ","
โ€ข Space
โ€ข Tab
โ€ข Semicolon ";"
โ€ข Other custom characters

Example

Suppose A2 contains:
"Rahul,IT,Pune"

Select the column and choose:
Data โ†’ Text to Columns โ†’ Delimited โ†’ Comma

Excel separates the data into:
Name | Department | City
Rahul | IT | Pune

๐Ÿ“Œ 2. Space as a Delimiter

Suppose:
"Rahul Sharma"
is stored in one cell.

Using Space as the delimiter can split it into:
First Name | Last Name
Rahul | Sharma

โš ๏ธ Be careful with this method if names contain multiple words.

For example:
"Rahul Kumar Sharma"
would be split into three columns.

๐Ÿ“Œ 3. Fixed Width

Use Fixed Width when data is aligned based on character positions rather than a separator.

Example:
101 Rahul IT
102 Priya HR
103 Amit Finance

You can place column breaks at specific positions to separate the fields.

๐Ÿ“Œ 4. Text to Columns for Dates

Text to Columns can also help when dates are stored as text and need to be converted or split.

For example:
"17-08-2026"

You can use the wizard to specify the appropriate date format.

๐Ÿ“Œ 5. Important: Check the Destination

By default, Excel may place the split data into columns next to the original data.

โš ๏ธ If those columns already contain information, the existing data can be overwritten.

You can specify a different Destination in the Text to Columns wizard.

๐Ÿ“Œ Real-World Example

Suppose you receive customer data like:
Customer Details
Rahul,IT,Pune
Priya,HR,Mumbai
Amit,Finance,Delhi

You can split the single column using:
Data โ†’ Text to Columns โ†’ Delimited โ†’ Comma

Result:
Name | Department | City
Rahul | IT | Pune
Priya | HR | Mumbai
Amit | Finance | Delhi

Now the data can be easily filtered, sorted, analyzed, or used in Pivot Tables.

๐Ÿ“Œ Text to Columns vs Formulas

Text to Columns
โ†’ Quick one-time transformation.

Text Functions
โ†’ Useful when you want the transformation to update dynamically as the source data changes.

For example:
"LEFT()", "RIGHT()", "MID()", "TEXTBEFORE()", and "TEXTAFTER()" can be useful alternatives depending on your Excel version and requirement.

๐Ÿ“Œ Common Mistakes

โŒ Forgetting to check the preview before finishing.
โŒ Using the wrong delimiter.
โŒ Overwriting existing data in neighboring columns.
โŒ Splitting names or addresses incorrectly because they contain the chosen delimiter.

โœ… Best Practices

โ€ข Always preview the result before clicking Finish.
โ€ข Make sure the destination columns are empty.
โ€ข Keep a backup when transforming important data.
โ€ข Choose the delimiter carefully.
โ€ข For repeatable workflows, consider formulas or Power Query instead of repeatedly using Text to Columns manually.

๐Ÿ’ก Double Tap โค๏ธ For More
โค10
August 28, 2026 1.5K 6