How to Separate Data in a Cell in Excel

Learn how to separate data in a cell in Excel with 5 proven methods: Text to Columns, Flash Fill, formulas, TEXTSPLIT, and Power Query.

Microsoft ExcelBy Katherine LeeMay 22, 202618 min read
How to Separate Data in a Cell in Excel

You open a worksheet. Hundreds of rows, one column, every cell stuffed with a name, an address, a phone number, a status code — all crammed together. The boss wants it split. Yesterday. Sound familiar?

Knowing how to separate data in a cell in Excel is one of those skills that quietly saves hours every week. Maybe you inherited a CSV export where everything landed in column A. Maybe a vendor sent you full names and you need first and last in their own columns. Maybe you're cleaning up sales data where the SKU, color, and size sit shoulder-to-shoulder inside a single cell. The mess is universal. The fix isn't always obvious.

Here's the good news: Excel gives you at least five solid ways to do this. Some are point-and-click. Some are formulas. One uses a function that didn't even exist until Microsoft 365 rolled it out in 2022. You don't need a macro, a plugin, or a paid add-in. You just need to know which tool to reach for, and when. That's what this guide is for.

We'll start with the classic text to columns in excel wizard, then walk through Flash Fill, the LEFT/RIGHT/MID family, the brand-new TEXTSPLIT function, and Power Query for the messy multi-delimiter situations that break the simpler methods. Along the way, you'll see use cases — full names, addresses, phone numbers, raw CSV dumps — and exactly which approach handles each best.

Open Excel. Grab some sample data. By the time you finish reading, you'll never dread a cluttered cell again.

Before we get into the step-by-step, a quick map. Five tools, five sweet spots.

Text to Columns is the workhorse. Use it when your data has a consistent delimiter — a comma, a tab, a space, a semicolon, or a pipe — and you want the split done once, statically, with adjacent columns as the output. It's been in Excel since the late 1990s and it still handles 80 percent of everyday splits.

Flash Fill is the magic trick. You type the result you want in the next column for one or two rows, hit Ctrl+E, and Excel guesses the pattern. It's pattern recognition, not formula logic, which means it handles weirdness — like extracting just the area code from a phone number formatted three different ways — without you having to write anything.

LEFT, RIGHT, MID with FIND or SEARCH is the formula approach. Use it when you need the split to stay live and update whenever the source data changes. It's the dependable choice for templates and dashboards.

TEXTSPLIT is the newcomer. Available only in Excel 365 (and Excel for the web), it returns a spilling array. One formula, multiple columns of output. Multi-character delimiters? Yes. Two delimiters at once? Yes. It's the cleanest answer for users on the current Microsoft 365 subscription.

Power Query is the heavy machinery. For repeatable, refreshable workflows where the same messy file lands in your inbox every Monday — Power Query is what you build once and run forever. It also handles delimiters that the other tools struggle with, like line breaks, mixed delimiters, and regex-style patterns.

Microsoft Excel - Microsoft Excel certification study resource

Five Ways to Split Cell Data in Excel

✂️5Built-in MethodsWizard, Flash Fill, formulas, TEXTSPLIT, Power Query
Ctrl+EFlash Fill ShortcutDetects pattern after 1–2 sample rows
📅2022TEXTSPLIT LaunchedExcel 365 dynamic array function
🔄LiveFormula UpdatesLEFT/RIGHT/MID stay in sync with source
🧩MultiDelimiter SupportTEXTSPLIT and Power Query handle several at once
💻AllVersionsText to Columns works in Excel 2007 onward, Mac included

Method 1: The Text to Columns Wizard

This is where almost every Excel user starts. The text to columns in excel wizard has lived under the Data tab for nearly three decades. It's reliable, fast for one-off splits, and surprisingly flexible.

Select the column or cells containing your packed data. Click Data, then Text to Columns. A three-step wizard opens. Step one asks you whether the data is Delimited (separated by a character) or Fixed Width (each field starts at a specific character position). Most real-world data is delimited, so leave that option selected and click Next.

Step two is the important one. Excel offers checkboxes for the common delimiter in excel options — Tab, Semicolon, Comma, Space — and an Other field where you can type any single character: a pipe |, a forward slash, a tilde, anything. You can tick multiple boxes if your data uses more than one separator. Below the checkboxes is a preview pane that updates live as you toggle options. Watch it. If you see vertical lines splitting your data the way you intended, you're good.

There's also a Treat consecutive delimiters as one checkbox. Turn it on when you have data like John  Smith  Manager — multiple spaces between fields. Without that option, Excel creates empty columns for each extra space, which nobody wants.

Step three lets you set the data type for each new column. Most of the time you'll leave everything as General, but if you have a column of dates in a non-US format or leading zeros you want preserved (think ZIP codes starting with 0), this is your chance to tell Excel to treat that column as Text or a specific Date format. Pick a destination cell — by default it overwrites the original — and click Finish.

Done. Your packed cell is now several adjacent columns. The split is static; if the source data changes, you'll need to run the wizard again. That's both a strength (predictable, no formula errors) and a weakness (no automation).

A quirk worth knowing: Text to Columns remembers its last settings inside your session. If you paste raw text into a new column and it auto-splits at commas, that's because Excel held onto your previous delimiter choice. To reset, run the wizard once with no delimiters checked.

Two example rows beat one every time

Flash Fill is pattern-matching, not telepathy. If you give it one example, it'll guess based on that single row — which works for simple splits but fails when your data has variations like middle initials, hyphenated names, or extra spaces. Type the expected output for the first two rows manually before pressing Ctrl+E. Two examples give Excel enough signal to handle edge cases like "Mary-Jane O'Brien" without choking.

If Flash Fill suggests something weird, press Esc, add another correct example row, and try again. Three examples almost always nails it.

Method 2: Flash Fill (Excel 2013 and Newer)

Microsoft introduced Flash Fill in Excel 2013, and it remains one of the most underused features in the application. The premise: type the expected result in the column next to your data, and Excel watches what you're doing. If it recognizes a pattern, it offers to finish the rest of the column for you.

Say you have a column of full names in A2:A100 — "Sarah Connor", "John Doe", "Maria Lopez Hernandez", and so on. You want first names in B and last names in C. Click into B2 and type Sarah. Move to B3 and type John. Now press Ctrl+E. Excel fills B4 through B100 with the first word of each cell in column A. Move to C2, type Connor, then C3 Doe, hit Ctrl+E, and column C populates with last names.

The magic? Flash Fill works on patterns you don't have to describe. Want only the digits from a part number like "SKU-44832-RED"? Type 44832 in the next cell, then the digits from a second example, and Ctrl+E pulls the numbers from every row. Want to format phone numbers as (555) 123-4567 from raw strings of digits? Type the formatted version twice, Ctrl+E, done.

Where Flash Fill stumbles: inconsistent source data. If half your names are "Last, First" and the other half are "First Last", Flash Fill will pick whichever pattern dominates the first few rows and get the rest wrong. Always scan the output before you trust it. The fix is to sort or filter your data into consistent groups first, then run Flash Fill on each group separately.

One more thing — Flash Fill is destructive. It pastes values, not formulas. If your source column changes later, the Flash-Filled output won't update. For dynamic splits, you'll want formulas, which is exactly where we're headed next.

The Text-Function Toolkit for Splitting Cells

⬅️LEFT(text, num_chars)

Returns the leftmost N characters of a string. Combine with FIND to extract everything before a delimiter. Example: =LEFT(A1, FIND(",", A1) - 1) returns the text before the first comma in A1.

➡️RIGHT(text, num_chars)

Returns the rightmost N characters. Useful for grabbing file extensions, the last segment of a path, or the final word in a string when paired with LEN and FIND.

🎯MID(text, start, length)

Returns a substring starting at a given position for a given length. The Swiss army knife of text splitting; nests inside FIND-based formulas to extract anything between two delimiters.

🔍FIND(find_text, within_text)

Case-sensitive search that returns the position of one string inside another. Returns #VALUE! if not found, so wrap it in IFERROR for robust formulas. SEARCH is the case-insensitive twin.

📏LEN(text)

Returns the total character count of a string. Essential for RIGHT-based splits where you need to calculate how many characters come after a delimiter without knowing the source length in advance.

✂️TEXTSPLIT(text, col_delim, row_delim)

Excel 365 only. Returns a dynamic array splitting the text by one or more delimiters. The cleanest single-function answer for splitting into multiple columns at once.

Excellence Playa Mujeres - Microsoft Excel certification study resource

Method 3: LEFT, RIGHT, MID Combined with FIND

Formulas are the right answer when you need the split to stay live. Source updates? Output updates. No re-running wizards, no re-flashing fills. Just clean, dependable references.

The classic split text in excel using formula pattern uses LEFT and FIND for the first piece, and MID with FIND and LEN for the second. Suppose A1 contains Smith, John. To get "Smith":

=LEFT(A1, FIND(",", A1) - 1)

FIND locates the comma at position 6. Subtract one to exclude the comma itself, and LEFT grabs the five characters "Smith". To get "John" (skipping the comma and the space):

=MID(A1, FIND(",", A1) + 2, 99)

Start at position 8 (one past the comma, plus one to skip the space) and grab up to 99 characters. The hard-coded 99 is a common shortcut — pick any number larger than your longest expected substring. Excel doesn't error out if you ask for more characters than exist; it just returns what's there.

For a three-part split — say Product-Color-Size with two hyphens — you'll nest two FIND calls. The middle piece is:

=MID(A1, FIND("-", A1) + 1, FIND("-", A1, FIND("-", A1) + 1) - FIND("-", A1) - 1)

Ugly, yes. Reliable, also yes. The inner FIND with a third argument tells Excel where to start looking, so the second FIND skips past the first hyphen.

Always wrap these formulas in IFERROR. If FIND can't locate the delimiter (maybe a row has no comma), it returns #VALUE! and your column lights up red. Like this:

=IFERROR(LEFT(A1, FIND(",", A1) - 1), A1)

If the comma is missing, just return the whole original cell. Clean, graceful, no broken spreadsheet.

One word of caution: SEARCH is case-insensitive while FIND is case-sensitive. For splitting at letters, SEARCH is usually the safer pick. For splitting at punctuation, either works.

TEXTSPLIT in Action: Examples for Excel 365

Suppose A1 contains red,blue,green,yellow. The simplest TEXTSPLIT call:

=TEXTSPLIT(A1, ",")

This returns a horizontal spill across four cells: B1 holds "red", C1 holds "blue", D1 holds "green", E1 holds "yellow". One formula. Four outputs. Resize your source, the spill resizes too. This is the function people wished for during the years they were nesting MID and FIND calls.

If the destination cells aren't empty, you'll get a #SPILL! error. Clear them and the array fills in instantly.

Real Use Cases: Names, Addresses, Phone Numbers, CSV Dumps

Theory is one thing. Real spreadsheets are another. Here are the four scenarios that account for maybe 90 percent of all cell-splitting requests in the wild, and the method that best handles each.

Full name to first and last. If every row is reliably "First Last" with one space, TEXTSPLIT(A1, " ") is the one-line answer in Excel 365. Older versions? Use Text to Columns with the Space delimiter checked. For messier data — middle names, suffixes, prefixes — Flash Fill outperforms formulas because it can learn from your examples.

Address into street, city, state, ZIP. If the source is consistently formatted as "123 Main St, Springfield, IL, 62704", Text to Columns with Comma works fine. If commas appear inconsistently or some addresses include apartment numbers, Power Query is the safer choice because you can apply multi-step cleanup before splitting.

CSV dump in a single column. This is the textbook case for the Text to Columns wizard. Highlight the column, run the wizard, pick Comma as the delimiter, finish. Done in under a minute. If the CSV is huge and you'll receive updates monthly, build a Power Query connection instead so refreshes are one click.

Phone number area-code extraction. Phone formats are wildly inconsistent — (555) 123-4567, 555-123-4567, 555.123.4567, +1 555 123 4567. Flash Fill is the easiest answer here. Type "555" next to the first two rows, hit Ctrl+E, and Excel handles the format variations through pure pattern recognition. Formulas would need a SUBSTITUTE-and-MID chain that takes longer to debug than the actual extraction takes to verify.

You can see the pattern: the right method depends on how clean your data is and whether you need the split to update later. Pick accordingly.

Method 5: Power Query for Repeatable, Refreshable Splits

Power Query — branded as "Get & Transform Data" since Excel 2016 — is the option you reach for when the same messy file lands in your inbox every week, or when the splitting logic is complex enough that you'd rather build it once than redo it constantly.

Click anywhere in your data range, then on the Data tab choose From Table/Range. Excel converts the range into a structured table and opens the Power Query Editor — a separate window with its own ribbon. Right-click the column you want to split and choose Split Column, then By Delimiter. A dialog asks which delimiter (Comma, Colon, Semicolon, Space, Tab, or a custom character), whether to split at the leftmost, rightmost, or every occurrence, and what to do with quoted strings.

This is where Power Query pulls ahead of every other method. The Split at each occurrence of the delimiter option creates as many new columns as needed automatically. The By Number of Characters option handles fixed-width data without you counting positions. There's also By Positions, By Lowercase to Uppercase, and By Digit to Non-Digit — splitting rules that Text to Columns can't dream of.

When you finish, click Close & Load. The split data lands back in Excel as a new query table. Now the magic: if the source file changes, right-click the table and choose Refresh. Power Query re-runs all your steps — load, split, clean, type-convert — in one shot. No re-clicking the wizard. No re-typing formulas. This is the closest Excel comes to true automation without VBA.

The trade-off is the learning curve. Power Query has its own formula language (M), its own concept of "applied steps", and its own quirks around data types and refreshing. For a one-time split, it's overkill. For a recurring report, it pays for itself within two weeks.

Excel Spreadsheet - Microsoft Excel certification study resource

Quick Checklist: Before You Split Any Cell

  • Copy the worksheet to a backup tab — splitting overwrites adjacent columns by default
  • Scan your data for inconsistent formatting before choosing a method
  • Check whether you need the split to update when the source changes (formulas = yes, Text to Columns = no)
  • Identify the exact delimiter character; consider whether multiple delimiters appear in the same cell
  • If you're on Excel 365, try TEXTSPLIT first — it's usually the shortest path
  • If you're on Excel 2010 or older, skip Flash Fill and TEXTSPLIT and use Text to Columns or formulas
  • For repeating data imports, invest 30 minutes in a Power Query workflow instead of redoing the same wizard weekly
  • After splitting, verify the result row-by-row in a few sample places — pattern-based tools occasionally guess wrong
  • Wrap formula-based splits in IFERROR so missing delimiters don’t break your column
  • If your source has line breaks inside cells (Alt+Enter), use CHAR(10) as the delimiter in formulas or TEXTSPLIT

Edge Cases: Custom Delimiters, Tabs, Line Breaks, and VBA

Most of the time you'll be splitting on commas or spaces. Sometimes the data isn't that polite. Here's how Excel handles the awkward delimiters.

Pipe character. The pipe (|) is a favorite in technical exports because it rarely appears in natural text. All five methods handle it: in Text to Columns, type | into the Other field; in formulas, use FIND("|", A1); in TEXTSPLIT, pass it as the delimiter argument; in Power Query, choose the Custom delimiter option.

Tab character. Tabs are tricky because you can't type one into a cell or a dialog. Use CHAR(9) in formulas: =TEXTSPLIT(A1, CHAR(9)). In Text to Columns there's a dedicated Tab checkbox. In Power Query the dialog has a Tab option in the dropdown.

Line breaks inside a cell. Hitting Alt+Enter inside a cell creates a line break — character 10. To split on those: =TEXTSPLIT(A1, CHAR(10)). Or in Text to Columns, type a special control sequence into Other; the simpler path is Power Query, which exposes a Line Feed delimiter directly. Also note that on Mac, a line break is CHAR(13), so if you exchange files between Windows and Mac users, test both.

VBA Split function. If you're already writing macros, Split("a,b,c", ",") returns a zero-based array of substrings. Combine it with a loop to populate cells: arr = Split(Range("A1").Value, ",") then For i = 0 to UBound(arr): Cells(1, i+2).Value = arr(i): Next. Fast for one-off scripts, but for most users the GUI methods above are simpler and don't require enabling macros.

Mac compatibility. All five methods exist on Excel for Mac. TEXTSPLIT requires Microsoft 365; the perpetual-license Excel 2021 for Mac includes it as well. Power Query has shipped on Mac since 2019, though some advanced connectors remain Windows-only.

Pros and Cons of Each Splitting Method

Pros
  • +Text to Columns: works in every Excel version since 2007, including Mac
  • +Flash Fill: handles inconsistent formatting that breaks formula-based splits
  • +Formulas with LEFT/RIGHT/MID: live updates when source data changes
  • +TEXTSPLIT: single formula handles multi-delimiter and two-dimensional splits
  • +Power Query: refreshable workflow for recurring data imports
  • +All methods are built into Excel — no add-ins, no plugins, no extra cost
  • +Splitting preserves the original column unless you explicitly overwrite it
  • +Works on entire columns, ranges, or single cells with the same approach
Cons
  • Text to Columns is static — source updates require re-running the wizard
  • Flash Fill pastes values, so output won’t update when source changes
  • Formula nests get unreadable for three-or-more-part splits
  • TEXTSPLIT is unavailable in Excel 2019 and older versions
  • Power Query has a steep learning curve for first-time users
  • Pattern-based tools (Flash Fill) can silently produce wrong output on edge-case rows
  • Reverse operation (joining columns back into one cell) requires TEXTJOIN or CONCATENATE
  • Custom delimiters with multiple characters need TEXTSPLIT or Power Query

The Reverse Operation: Joining Cells Back Together

Once you know how to split text in excel, you'll eventually want to do the opposite — combine multiple cells into one. The modern way is TEXTJOIN, available in Excel 2019 and Microsoft 365. Syntax: =TEXTJOIN(",", TRUE, A1:A5). The first argument is the delimiter, the second is whether to ignore empty cells, and the third is the range to combine.

For older versions of Excel, CONCATENATE or the ampersand operator (=A1 & ", " & B1 & ", " & C1) does the same job, more verbosely. CONCAT is the slightly newer cousin of CONCATENATE that accepts ranges directly. The functions overlap; pick whichever your team is comfortable with.

Picking the Right Method for Your Situation

Here's the decision tree, simplified. One-time split, clean delimiter? Text to Columns. Inconsistent source data, no formula skills? Flash Fill. Need live updates? Formulas. On Microsoft 365 with a complex multi-delimiter situation? TEXTSPLIT. Recurring data import that arrives every Monday? Power Query.

None of these methods are wrong. They overlap, and most experienced Excel users mix two or three depending on what's in front of them. Start with the simplest tool that does the job, and only escalate when you hit a limit.

One last thought: the data quality problem upstream is usually the real problem. If your supplier sends you packed cells every week, ask them for clean columns instead. A five-minute conversation often beats a six-month spreadsheet workaround. But when that conversation isn't possible — and it usually isn't — you now have five solid ways to split anything that lands in your worksheet.

Go open Excel. Try TEXTSPLIT on a real cell. Try Flash Fill on a phone-number column. Build a Power Query for that vendor file that drives you crazy. The tools have been there all along. Now you know how to use them.

Excel Questions and Answers

About the Author

Katherine LeeMBA, CPA, PHR, PMP

Business Consultant & Professional Certification Advisor

Wharton School, University of Pennsylvania

Katherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.