Excel Practice Test

β–Ά

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.

Five Ways to Split Cell Data in Excel

βœ‚οΈ
5
Built-in Methods
⚑
Ctrl+E
Flash Fill Shortcut
πŸ“…
2022
TEXTSPLIT Launched
πŸ”„
Live
Formula Updates
🧩
Multi
Delimiter Support
πŸ’»
All
Versions

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.

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

πŸ“‹ Basic Split

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.

πŸ“‹ Multiple Delimiters

Real-world data isn't always tidy. Sometimes one row uses commas, another uses slashes, a third uses pipes. TEXTSPLIT takes an array of delimiters:

=TEXTSPLIT(A1, {",","/","|"})

Now any of those three characters triggers a split. The function does not care which one appears where. This single formula replaces what used to require nested SUBSTITUTE calls to normalize the input first.

For multi-character delimiters like " - " (space-hyphen-space), pass a string instead of a single character: =TEXTSPLIT(A1, " - "). The whole three-character sequence becomes the split point.

πŸ“‹ Row + Column Split

TEXTSPLIT takes a second delimiter argument for row splits. Imagine A1 holds name,age;Sarah,32;John,28. The formula:

=TEXTSPLIT(A1, ",", ";")

Splits across columns at every comma and down rows at every semicolon. You get a 3x2 grid β€” header row "name | age", then "Sarah | 32", then "John | 28". One formula, fully tabular output. This is the spreadsheet equivalent of a CSV import, inline.

πŸ“‹ Handling Empty Values

TEXTSPLIT has two more optional arguments worth knowing. The fourth, ignore_empty, is a TRUE/FALSE that tells Excel whether to skip consecutive delimiters. If your input is a,,b,,c and you pass TRUE, you get three values; pass FALSE (the default), you get five with empty strings between them.

The fifth, match_mode, controls case sensitivity for letter delimiters. The sixth, pad_with, lets you replace empty cells with a placeholder like "N/A" instead of blank strings.

Most users never touch these. They exist for the moment when you do need them.

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.

Test Your Excel Skills with a Free Practice Exam

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.

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

What is the fastest way to separate data in a single Excel cell?

For a one-time split with a consistent delimiter, the Text to Columns wizard is the fastest. Select your column, click Data, choose Text to Columns, pick your delimiter, and finish. Three clicks and you're done. For Excel 365 users with multi-delimiter data, TEXTSPLIT in one formula is even faster. Flash Fill (Ctrl+E) is the speed winner when your data has inconsistent formatting and you can show Excel the pattern by typing one or two example rows.

How do I split a cell in Excel using a formula?

The classic pattern combines LEFT, MID, RIGHT, and FIND. To get text before the first comma in A1: =LEFT(A1, FIND(",", A1) - 1). To get text after the first comma: =MID(A1, FIND(",", A1) + 2, 99). Wrap each formula in IFERROR to handle rows where the delimiter is missing. In Excel 365, TEXTSPLIT does the entire job in one call: =TEXTSPLIT(A1, ",").

What is a delimiter in Excel?

A delimiter is the character that separates fields within a single cell or row of text. Common delimiters include the comma, tab, space, semicolon, and pipe (|). Excel's splitting tools use delimiters to decide where one piece of data ends and the next begins. Text to Columns, TEXTSPLIT, and Power Query all let you choose which character or characters to treat as delimiters. Some data uses multi-character delimiters like ' - ' (space-hyphen-space), which TEXTSPLIT and Power Query handle but the older Text to Columns wizard does not.

Why is my Text to Columns greyed out?

Text to Columns is disabled when you have more than one column selected, when you're inside a structured Excel Table that's been formatted with the Insert Table command, or when the worksheet is protected. To fix it: select only a single column of cells, or convert the table back to a range using Table Design > Convert to Range, then run the wizard again.

Is TEXTSPLIT available in Excel 2019 or 2021?

TEXTSPLIT is available in Microsoft 365 (any current subscription) and in Excel 2021 on Windows and Mac. It is not available in Excel 2019 or earlier perpetual-license versions. If you're stuck on an older version, use Text to Columns, formulas with LEFT/MID/RIGHT, or Power Query as substitutes. Upgrading to Microsoft 365 is the easiest path if you regularly need dynamic-array text functions.

Can Flash Fill split data based on multiple patterns?

Flash Fill recognizes one pattern at a time per column. If your source data mixes two formats β€” like some rows being 'First Last' and others 'Last, First' β€” Flash Fill will lock onto whichever pattern dominates the first few rows and may get the rest wrong. The workaround is to sort or filter the data into consistent groups, run Flash Fill on each group separately, then re-sort to the original order. For mixed-format data, Power Query is usually a better choice because you can apply conditional logic.

How do I split text on a line break inside a cell?

Line breaks created by Alt+Enter are character 10 on Windows (character 13 on classic Mac). Use CHAR(10) in formulas: =TEXTSPLIT(A1, CHAR(10)). In Power Query, the Split Column dialog has a Line Feed option in the delimiter dropdown that handles this directly. The Text to Columns wizard does not have a built-in option for line-break delimiters, so this is one situation where the newer tools clearly outperform the classic wizard.

What is the reverse of separating data in a cell?

The reverse operation is joining multiple cells back into one. The modern function is TEXTJOIN: =TEXTJOIN(",", TRUE, A1:A5) combines the values in A1 through A5 with commas between them, ignoring empty cells. For older Excel versions, use CONCATENATE or the ampersand operator: =A1 & ", " & B1. CONCAT is a slightly newer variant that accepts ranges directly. All three give the same result; pick whichever matches your Excel version.
Practice Real Excel Questions Before Your Next Test
β–Ά Start Quiz