What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Excel offers five documented ways to split a name column: text formulas, Text to Columns, Flash Fill, TEXTSPLIT, and Power Query. The right choice depends on whether your names follow one consistent pattern and whether you need a one-time split or a repeatable result. None of these methods can reliably determine every person’s intended first and last names from arbitrary text, so check your data’s naming pattern before applying a split to the full column.

Choose a method that matches your name data

Before splitting, decide what counts as the boundary between fields. A rule that splits at the first space works for a two-part name such as “Alex Morgan,” but it does not determine how to handle a middle name, a two-part given name, a multi-part surname, a prefix or suffix, or a family-name-first format such as “Morgan, Alex.” Hyphens also do not necessarily mark a boundary between first and last names.

  • Consistent, simple pairs: Use formulas or a delimiter-based split.
  • Inconsistent patterns: Flash Fill can infer a pattern from examples, but inspect its results.
  • One-time conversion: Text to Columns writes the split into adjacent worksheet cells.
  • Formula-driven output: Use TEXTSPLIT if the Excel edition where the workbook will be used supports it.
  • Recurring cleanup: Power Query can apply a chosen split rule as a repeatable transformation.

For names with extra components, decide how those components should be assigned before splitting. For example, if a “last name” field should preserve a compound surname, splitting at every space will not produce that result automatically.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Method 1: Use formulas for simple first-and-last pairs

If A2 contains exactly one given name, one space, and one surname, formulas can extract the text on either side of the first space. Microsoft documents these examples in its guide to splitting text with functions.

#1 Best Overall
Sale
The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • ABIS BOOK

To return the first name, enter:

=LEFT(A2,SEARCH(" ",A2,1))

This version includes the separating space at the end of the result. To remove it, wrap the formula in TRIM:

=TRIM(LEFT(A2,SEARCH(" ",A2,1)))

To return the surname, enter:

=RIGHT(A2,LEN(A2)-SEARCH(" ",A2,1))

These formulas treat the first space as the boundary. They are not a general-purpose way to identify semantic first and last names. Test them on representative rows before filling down, especially if the column contains extra spaces or names with additional parts.

Method 2: Build formulas around a more complex pattern

When names contain middle components or follow a different structure, formulas can locate successive spaces and extract selected portions with functions such as SEARCH, LEFT, MID, RIGHT, and LEN. The formula must reflect the layout you actually have; there is no single formula that assigns every name component correctly for every naming convention.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft’s function guidance includes examples involving middle initials, prefixes, suffixes, and comma-reversed order. Use such a pattern only when it matches your rows. Before copying a formula through the column, try it against examples that include the shortest and longest names and each structure present in the source data.

Method 3: Split once with Text to Columns

Text to Columns is useful when a delimiter consistently separates the text and you want to write the results into worksheet cells. Microsoft’s guidance describes the wizard in its Excel cell-splitting documentation.

  1. Select the source cell or column.
  2. Choose Data > Text to Columns.
  3. Select Delimited, then continue through the wizard.
  4. Choose the delimiter used in your data, such as a space or comma, and inspect the preview.
  5. Set a destination with enough empty columns to hold the results, then finish the wizard.

Splitting on a space separates every occurrence, not just the boundary between first and last names. Names with middle components or compound names may therefore occupy more than two output columns. Check the preview and output, and ensure the destination cells are empty so existing worksheet data is not overwritten. Microsoft says the Excel for the web application does not include this wizard.

Method 4: Use Flash Fill to infer the pattern

Flash Fill can be useful when rows vary and you can show Excel the output you want. Enter the intended first-name result beside a source name, then provide additional examples when needed. Use the same approach in a separate output column for surnames. Excel can use the examples to infer how to complete the column.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Review the completed results rather than assuming the inferred pattern represents each person’s intended name fields. Multiple spaces, inconsistent order, middle names, and compound names can make an example-based pattern ambiguous. Correct any mistakes before treating the output as authoritative.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Method 5: Use TEXTSPLIT for formula-based delimiter splits

TEXTSPLIT divides text using specified delimiters and returns the result as a formula output. Microsoft describes it as a formula-based counterpart to the Text to Columns wizard. Its function page lists Microsoft 365 and Excel 2024; Microsoft’s support guidance also demonstrates TEXTSPLIT in Excel for the web. Check the target users’ Excel editions before building a shared workbook around this function. See Microsoft’s TEXTSPLIT and cell-splitting documentation.

For a simple name in A2, a space-delimited split can be entered as:

=TEXTSPLIT(A2," ")

This splits at the delimiter; it does not decide which resulting token should be the first name or whether the remaining tokens belong together as a surname. Consider how your data should handle middle names, repeated spaces, empty tokens, and compound surnames, and verify the output on representative rows.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Method 6: Use Power Query for repeatable cleanup

Power Query can split a text column by a delimiter as part of a repeatable data-preparation workflow. Microsoft documents the name-column workflow and split choices in its Power Query instructions.

  1. Open the name data in Power Query and select the column to split.
  2. Choose the command to split the column by a delimiter.
  3. Select the delimiter and choose whether to split at the left-most occurrence, right-most occurrence, or each occurrence.
  4. Review the resulting columns, then load the transformed table back into Excel.

Choose the split position based on the source format rather than defaulting to every space. For a consistent “given name surname” pattern, the left-most delimiter may separate the first token from the remainder; the right-most delimiter may separate the final token from preceding text. Either rule can still misassign components when the real naming structure does not match that assumption. When the source data changes, refresh the query to apply the transformation again.

Check the results before using them

  • Compare the output with the original names, including rows with middle components, punctuation, multiple spaces, or reversed order.
  • Confirm whether any extra components should stay with the given name, the surname, or in a separate field.
  • For Text to Columns, verify that the destination has enough empty cells to the right.
  • For formulas and TEXTSPLIT, check that the Excel editions used by workbook recipients support the functions.
  • For Flash Fill and Power Query, inspect the transformed values; a consistent character-based rule is not proof that the identity fields are correct.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.