
How Do You Separate First and Last Name in Google Sheets?
Carlos GarciaPublished How Do You Separate First and Last Name in Google Sheets?
You have a column of full names and you need two columns. It is one of the most common five minutes of spreadsheet work there is, and Google documents an answer for it.
The catch is that Google documents the easy version. Its own worked example in the Docs Editors Help pages splits a column formatted as "Last name, First name" around a comma into exactly two columns. Almost nobody's data arrives that way. It arrives as "Mary Jane Watson" and "Ana van der Berg" and "Dr. Raj Patel Jr.", separated by spaces, with no comma anywhere to split on.
This guide covers the three methods that exist in Google Sheets today, each cited to Google's own documentation, and it is equally explicit about the places where Google's pages say nothing at all. Those silences are where the real work is, because every one of them is a case your name column will contain.
How Do You Separate First and Last Name in Google Sheets?
There are three methods, and which one you want depends on whether you need the result to update by itself.
The menu route is Data, then Split text to columns. Google's own help page frames the task in exactly these terms: "You can split clearly defined data, like text separated by commas, into several columns with Google Sheets." It is the fastest option and it writes static values into the sheet.
The formula route is the SPLIT function. Google documents it as a function that "Divides text around a specified character or string, and puts each fragment into a separate cell in the row." Because it is a formula, the split result updates whenever the source cell changes.
The pattern-recognition route is Smart Fill. You type the first name manually in a couple of rows, Sheets notices the pattern, and it offers to fill the rest. Google says Smart Fill "will detect patterns and make suggestions to help automate data entry", and names this exact task in its examples.
Choose the menu route for a one-off import you are about to clean up by hand anyway. Choose SPLIT when the name column is fed by a form, an import, or another formula and the split has to stay live. Choose Smart Fill when the pattern in your data is obvious to a human but awkward to express as a delimiter, which is more often than you would expect.
All three share one weakness, and it is the reason this article is longer than a single formula. None of them knows what a name is. They know what a space is.
Not sure your spreadsheet data is clean enough to trust? Get a free audit and find out what is quietly wrong with it.
Free audit
Where do you stand in AI search?
A manual SEO + AI search audit of your site: how ChatGPT, Gemini, Perplexity and Claude read and cite it today, and what to fix first. Report within 48 hours, no credit card.
Get my free auditOr have it all done: AI SEO services, $999 once
Why Google's Own Example Does Not Match Your Data
This is worth dwelling on before you pick a method, because it explains every problem that follows.
What Google Actually Documents
Google's help page for splitting text uses one name example, and it uses it twice. In its own words: "For example, a column with "Last name, First name" can be split into 2 columns: "Last name" and "First name."" The same example, almost word for word, appears on the Google Workspace Learning Center page about cleaning up data.
Notice what that example does. It splits on a comma. A comma appears exactly once in "Last name, First name", so the split produces exactly two fields, every time, on every row, regardless of how many words are in either name.
That is not a simplification for the sake of a help page. It is the only version of this task that has a guaranteed answer.
What Your Data Actually Looks Like
A space-separated full name has no such guarantee. "John Smith" has one space. "Mary Jane Watson" has two. "Ana van der Berg" has three. Splitting on the space character gives you two columns, three columns and four columns from the same operation.
Google documents no example of this case, and no guidance for it, on any of the pages covered here. That is not an oversight you can work around with a better formula. It is the actual shape of the problem: deciding where a first name ends and a surname begins is a judgment call, and a delimiter cannot make judgment calls.
So the honest framing of this task is not "which formula splits a name". It is "split on the delimiter, then deal with the rows the delimiter got wrong". Every method below does the first part well. None of them does the second part at all.
How Do You Split Names With Data, Split Text to Columns?
This is the menu route. It takes under a minute and it overwrites, so read the second step before you start.
Step 1: Open your spreadsheet and find the name column. Google's own first step is "On your computer, open a spreadsheet in Google Sheets."
Step 2: Insert blank columns to the right of it first. This step is not in Google's instructions, and it is the one that costs people data. The split writes its output into the columns immediately to the right of your selection, replacing whatever is already there. Insert two or three empty columns before you begin, and the problem disappears.
Step 3: Select the cells you want to split. Google words this as "If the data's already in the sheet, select the cells you want to split." If you have not pasted the data yet, Google's alternative step is simply "If the data isn't in the sheet yet, paste it."
Step 4: Open the Data menu and choose Split text to columns. Google's instruction is "At the top, click Data" followed by "Split text to columns." Sheets will split on its best guess at a delimiter straight away, before you have chosen one.
Step 5: Set the separator. A small control appears near the split data. Google's wording is "To change which character Sheets uses to split the data, next to "Separator" click the dropdown menu." Pick the space for a space-separated full name.
Step 6: Check the rows with more than two columns. Sort or filter on the third output column to find them. These are your multi-word names, and they need a human.
One thing Google's page documents that is genuinely useful: there is a "Detect automatically" option in that separator menu, which is what Sheets uses by default. It is right more often than it has any business being, and it is the first thing to change when a split goes strangely.
Worth knowing about that dropdown: Google's page documents the menu and the "Separator" label but does not list the individual separator options. If you want to know what is in it, you have to open it and look.
And one word of warning about what this method produces. The output is plain text, not a formula. Change the original name and the split columns do not follow. For a one-off cleanup that is exactly what you want; for a sheet that keeps receiving new rows it is a trap.
Spreadsheet data feeding your reporting? Get a free audit to see whether what you are measuring survives the journey.
How Does the SPLIT Function Work?
SPLIT is the live version of the same operation, and Google documents it fully.
The documented syntax is SPLIT(text, delimiter, [split_by_each], [remove_empty_text]). Two arguments are required and two are optional, and both optional ones default to TRUE. For a full name in cell A2, =SPLIT(A2, " ") is the whole formula.
The two optional arguments are more interesting than they look. Google documents split_by_each as controlling whether each character in your delimiter is treated individually, so a delimiter of "the" would otherwise split around "t", "h" and "e" separately. Setting it to FALSE makes Sheets treat the delimiter as one whole string.
The fourth argument handles the double-space problem. With remove_empty_text left at its default, consecutive delimiters are treated as one, so "John Smith" with two spaces still produces two fields rather than a blank column in the middle. Set it to FALSE and you get the empty cell.
Google also documents a detail that trips people up when they try to rebuild a name afterwards: "Note that the character or characters to split the string around will not be contained in the result themselves." The space is consumed, not kept.
To pull out one specific part rather than spilling all of them across the row, you can wrap SPLIT in INDEX, which Google documents as returning "the content of a cell, specified by row and column offset" with the syntax INDEX(reference, [row], [column]). So =INDEX(SPLIT(A2, " "), 1, 1) gives the first fragment and =INDEX(SPLIT(A2, " "), 1, 2) the second. This combination is our own construction rather than something Google publishes: the SPLIT page's "See Also" section lists only CONCATENATE, and the INDEX page never mentions SPLIT at all.
The same caveat applies to running SPLIT down a whole column with ARRAYFORMULA, which Google documents as enabling "the display of values returned from an array formula into multiple rows and/or columns" and "the use of non-array functions with arrays". The pairing works, but Google documents neither function in terms of the other, so treat =ARRAYFORMULA(SPLIT(A2:A100, " ")) as a community technique built from two documented parts rather than a sanctioned recipe.
If you are going the other way and need to stitch name parts back together, the inverse operation has its own set of functions and its own set of gotchas, which we have covered in our guide to combining cells in Google Sheets without losing data. Messy imported data usually needs both directions: split the field apart, clean the pieces, then recombine only the pieces you want.
Can Smart Fill Do It For You?
Smart Fill is the method people forget exists, and for this specific task Google documents it by name.
Google's description of the feature is that it "will detect patterns and make suggestions to help automate data entry". The example it gives on that page is pointedly relevant: Smart Fill works for tasks like "extracting the first name from a given list of full names".
Be precise about what that sentence covers, though. Google's example is extracting the first name. The page gives no last-name example, and no example of splitting a name into both columns in one move. Treat the second column as untested rather than documented.
In practice you use it by typing the result you want in the first two or three rows of an empty column, then waiting. A suggestion appears, and you accept it. The keyboard shortcut Google lists is Ctrl + Shift + Y on Windows and Chromebook, or Command + Shift + Y on a Mac. To stop the suggestions, Google's page points to Tools, then Suggestion controls, and clearing "Enable autocomplete".
Smart Fill's real advantage over a delimiter is that it is inferring from your examples rather than counting spaces. If you handle three awkward rows by hand, there is a reasonable chance it generalizes from them. That is the opposite of how SPLIT behaves, and it is why the two methods fail on different rows.
One distinction matters here and it is easy to get wrong. Plain Smart Fill, on the page carrying that name-extraction example, states no restriction by language, plan or account type. There is a separate feature called enhanced Smart Fill with Gemini, documented on its own page, which does carry restrictions: that page says "This feature requires an eligible Google Workspace or Google AI plan", that "Enhanced Smart Fill can only detect and support English values", and that "This feature is available on desktop." Those limits belong to the enhanced version, not to the Smart Fill that documents the name example.
Running a site on data you have not checked? Get a free audit before you build another report on top of it.
What Happens to Middle Names, Suffixes and Two-Word Surnames?
Nothing good, and nothing documented. This section is the one you will actually need.
Across every Google page covering SPLIT, Split text to columns, Smart Fill and data cleanup, there is no guidance on multi-word surnames, middle names, compound names or suffixes. Not a worked example, not a caveat, not a warning. The silence is complete, and it is consistent with Google's choice to demonstrate the comma case only.
What that means mechanically is simple. Split "Mary Jane Watson" on the space and you get three columns, with "Jane" sitting in the column you labeled as the surname. Split "Ana van der Berg" and you get four, with "van" in it. The formula did not fail; it did exactly what you asked, and what you asked was wrong for that row.
The usual workaround is to take the first fragment as the first name and treat everything after the first space as the surname. That gets "van der Berg" right and gets "Mary Jane Watson" wrong in a different way, by filing "Jane Watson" as a surname. There is no delimiter rule that is correct for both, because the two names have the same shape and different meanings.
So the practical approach is to stop trying to be clever and make the exceptions visible instead. Split on the space, then count the output columns. Rows producing two columns are almost certainly fine. Rows producing three or more are a list of decisions for a person, and it is usually a short list.
Suffixes deserve their own pass. "Jr.", "Sr.", "III" and "PhD" will land in whichever column the space count puts them in, and no method here recognizes them as a category. If your data has them, strip them into their own column first and split what is left.
Leading and trailing spaces cause a quieter version of the same problem, and here Google's own pages disagree about the fix. The TRIM function's own help page describes it as removing "leading, trailing, and repeated spaces in text". Google's Sheets function list table describes the same function as removing only "leading and trailing spaces in a specified string", with no mention of repeated spaces. Two Google pages, one function, two different descriptions, and nothing reconciling them. The function page is the more complete of the two, and wrapping your source in TRIM(text) before splitting is worth doing either way.
What Google Does Not Document
It is worth collecting these in one place, because several of them are claims you will find stated confidently elsewhere with no source behind them.
Google's help pages do not warn, anywhere, that Split text to columns overwrites data in the columns to the right. The words overwrite, replace and delete do not appear on that page at all. The behavior is real and that is why Step 2 above exists, but it is our observation of the tool, not something Google documents.
Google does not list the separator options in that dropdown either. The only option it names is "Detect automatically", alongside the label "Separator". Any article giving you a tidy list of Comma, Semicolon, Period, Space and Custom is describing a screenshot, not the documentation.
If you have arrived from Excel, one absence will matter more than the rest. Google's Sheets function list contains no TEXTBEFORE, no TEXTAFTER and no TEXTSPLIT. The only TEXT-prefixed functions in it are TEXT and TEXTJOIN, and the only SPLIT-prefixed one is SPLIT itself. Those three are Excel functions, and formulas built on them will not work here.
Here is the full set of silences worth knowing about before you start:
- No Google example of splitting a space-separated full name, as opposed to a comma-separated one
- No warning that Split text to columns overwrites adjacent columns
- No list of the available separator options
- No guidance on multi-word surnames, middle names or suffixes
- No documented maximum column count per sheet, which means the widely repeated 18,278 figure is not Google's number
- No last-updated date on any of the Google help pages used for this article, so none of the above can be checked against a revision date
That final one is worth a sentence of its own. Not one of the Google pages behind this article carries a stated update date. Everything here was read on December 4, 2026, and that is the only date any of it can be pinned to.
How Does This Compare With Excel and the Alternatives?
If you have a choice of tool, the comparison is genuinely lopsided, and not in the direction you might assume.
Excel is better equipped for this specific job. It has Text to Columns, the same as Sheets, plus TEXTSPLIT, TEXTBEFORE and TEXTAFTER as dedicated functions, plus Flash Fill as the pattern-recognition option. Sheets has three methods to Excel's five, and two of Excel's five are purpose-built for splitting text around a delimiter in a formula.
Where Sheets wins is live data. A SPLIT formula wrapped in ARRAYFORMULA keeps working as new rows arrive from a form or an import, with no refresh step and no reopening the file. Excel's dynamic array functions do the same thing, but Sheets is the one already sitting in a browser next to the form that is feeding it.
For a large one-off cleanup, neither spreadsheet is really the right tool. A few thousand names with inconsistent formatting is a job for a script or a dedicated data tool, where you can write an actual rule, log the exceptions and rerun the whole thing when the rule turns out to be wrong. Doing it in a spreadsheet means doing it once and hoping.
For an ongoing pipeline, split as early as possible instead. If the names are arriving from a form, collect first name and surname as two separate fields and the problem never exists. Every method in this article is a repair for a decision that was made upstream, and the repair is always worse than not needing it.
And if the data is already a mess, resist the temptation to solve it with one heroic formula. Split on the delimiter, flag the rows that produced too many columns, fix those by hand, and move on. The formula is five minutes; the exceptions are the work.
Reporting on data that started life in a spreadsheet? Get a free audit and see what is getting lost between the sheet and the dashboard.
Final Thoughts
Google documents three ways to separate a first and last name in Google Sheets, and all three are sound: the Data menu's Split text to columns for a one-off, the SPLIT function for a result that stays live, and Smart Fill for patterns that are easier to demonstrate than to describe.
What Google does not document is the part that will take your time. Its only worked name example splits on a comma, which produces exactly two fields by construction. Your data is separated by spaces, which does not, and there is no guidance anywhere in Google's pages on the multi-word surnames, middle names and suffixes that follow from that.
Treat the split as the easy ninety percent and the leftover columns as the real task. Insert blank columns before you overwrite anything, wrap your source in TRIM, and count the output columns to find the rows that need a person. That is a reliable process, which is more than any single formula here can offer.
Want this done for you?
SEO Stuff gets businesses cited by ChatGPT, Gemini, Perplexity and Claude, and ranking in Google. Start with the free audit, a call, or the package.
See where you stand
A free, manual SEO + AI search audit of your site, with a report within 48 hours. No credit card, no sales call.
Get my free auditTalk it through
A free 15-minute call with the founder about whether AI search is a meaningful opportunity for your business.
Free strategy callHave it done
The Done-For-You Package: audit, 10 pages of content, 3 DR50+ placements, dashboard. $999 once, delivered in 21 business days.
See the package

