Function Problems

How to Apply a Formula to a Range and Split Full Names in Excel

Olivia MillerOlivia Miller Nov 11, 2026 869 views

Question details

The user needs to apply a text manipulation formula to a large range of cells (B3:B1873) and separate a single column of full names into two distinct columns for first and last names.

How to Apply a Formula to a Range and Split Full Names in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Data cleaning and formatting in a spreadsheet where bulk text extraction and name separation are required simultaneously.
Observed behavior
The dataset contains full names combined in one column, requiring an efficient method to process the entire range to extract specific string portions and split the names without manual entry.
Before you start

Ensure your dataset has empty columns immediately to the right of the names column, as splitting the text will require adjacent blank cells to accommodate the separated data without overwriting existing information.

Solution 1Recommended

Use Dynamic Array Formulas and TEXTSPLIT

Utilize Microsoft 365's dynamic array capabilities to spill formulas across the range and the TEXTSPLIT function to divide names automatically.

If you are using Microsoft 365 or Excel for the Web, you can apply a single formula that automatically 'spills' the results down the entire range without needing to drag the fill handle.

1
Apply a bulk extraction formula

Click an empty cell adjacent to your data and enter =LEFT(B3:B1873,LEN(B3:B1873)-10). Press Enter to spill the results automatically for the entire range of B3:B1873.

2
Split names with TEXTSPLIT

In another empty column next to your full names (e.g., cell C2), enter =TEXTSPLIT(A2, " "). This will separate the first and last names based on the space character.

3
Copy the TEXTSPLIT formula down

Select the cell containing the TEXTSPLIT formula, then double-click the fill handle (the small square at the bottom-right of the cell) to apply the split to all names in your dataset.

Use Dynamic Array Formulas and TEXTSPLIT
Version Compatibility: The TEXTSPLIT function is exclusive to Microsoft 365. If you are using an older version of Excel, it will return a #NAME? error. In such cases, use the Text to Columns feature instead.
Free Spreadsheet Tool

Split Full Names and Apply Bulk Formulas in WPS Office

WPS Spreadsheet offers powerful data processing tools including an intuitive Text to Columns wizard, intelligent Flash Fill, and advanced functions to clean and organize your datasets effortlessly.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your Excel workbook containing the full names.
  2. 2. Launch Text to Columns: Highlight the column with the names, navigate to the 'Data' tab, and select 'Text to Columns'.
  3. 3. Apply space delimiter: Choose 'Delimited', set the delimiter to 'Space', and click 'Finish' to instantly separate first and last names across adjacent columns.
Fully compatible with Microsoft Excel file formats (.xlsx, .xls, .csv).Features an intuitive Text to Columns wizard for quick data splitting.Supports intelligent Flash Fill (Ctrl+E) to automate repetitive data separation.Free, lightweight, and available on Windows, Mac, Linux, and mobile devices.
QA img-9

Frequently Asked Questions

Why is the TEXTSPLIT function returning a #NAME? error?

The TEXTSPLIT function is only available in Microsoft 365 and Excel for the web. If you are using an older desktop version like Excel 2019 or Excel 2016, the function will not be recognized. In this case, rely on the Text to Columns feature or Flash Fill instead.

How do I prevent my split data from overwriting existing columns?

Before using Text to Columns or array formulas, ensure there are enough completely empty columns immediately to the right of your target column. You can right-click the column header next to your data and select 'Insert' to create new blank columns.

Can I split names that are separated by a comma instead of a space?

Yes. If you are using the Text to Columns wizard, simply check the 'Comma' option in the Delimiters menu. If using the TEXTSPLIT function, adjust the formula to use a comma as the delimiter, like this: =TEXTSPLIT(A2, ",").

What does the formula =LEFT(B3:B1873,LEN(B3:B1873)-10) actually do?

This is a dynamic array formula that removes the last 10 characters from every cell in the range B3:B1873 simultaneously. The LEN function calculates the total number of characters in each cell, and the LEFT function extracts the remaining characters from the left side of the string.