How To Separate Text In Excel?

How do you break text in Excel?

  • To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break. Double-click the cell in which you want to insert a line break Click the location where you want to break the line. Press Alt+Enter to insert the line break.


How do I split a text string by a function in Excel?

How to Split Text String by using Functions in Excel.

  1. =LEFT(text,FIND(character,text)-1)
  2. =MID(text, FIND(“-“, text) + 1, FIND(“-“, text,FIND(“-“,text)+1) – FIND(“-“,text) – 1)
  3. =RIGHT(text,LEN(text) – FIND(“-“, text, FIND(“-“, text) + 1))

How do you separate names in Excel?

Read the steps

  1. Add an empty column by right-clicking on the top of the column next to the existing column of names, then select Insert.
  2. Click the Data tab.
  3. Click on the top of the column with your contacts’ names to highlight the whole column.
  4. Click Text to Columns.
  5. Select “Delimited” and click Next.

How do I extract text from a cell in Excel?

Save the code and close the window, then type this formula =TextOnly(A1) (A1 is the first row cell in your list range you want to extract text only from) into a blank cell, press Enter button, then fill the handle to the range you want.

How do I separate text rows in Excel?

Try it!

  1. Select the cell or column that contains the text you want to split.
  2. Select Data > Text to Columns.
  3. In the Convert Text to Columns Wizard, select Delimited > Next.
  4. Select the Delimiters for your data.
  5. Select Next.
  6. Select the Destination in your worksheet which is where you want the split data to appear.

How do I separate text in sheets?

Select the text or column, then click the Data menu and select Split text to columns. Google Sheets will open a small menu beside your text where you can select to split by comma, space, semicolon, period, or custom character. Select the delimiter your text uses, and Google Sheets will automatically split your text.

How do I separate hyphenated text in Excel?

Select the data range that you want to split by dash.

  1. Click Data > Text to Columns, see screenshot:
  2. In step 1 of the Convert Text to Columns Wizard, select Delimited option, see screenshot:

How do I separate names in sheets?

Using Split Text into Columns Feature

  1. Select the cells that contain the name that you want to split.
  2. Click the Data tab.
  3. Click on ‘Split Text into Columns’ option.
  4. In the Separator box that appears, select Space as the delimiter.

How do you split names?

Split Names tool – fastest way to separate names in Excel

  1. Select any cell containing a name you want to separate and click the Split Names icon on the Ablebits Data tab > Text group.
  2. Select the desired names parts (all of them in our case) at click Split.

How do I separate numbers and names in Excel?

Split text and numbers

  1. Generic formula. =MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&”0123456789″))
  2. To separate text and numbers, you can use a formula based on the FIND function, the MIN function, and the LEN function with the LEFT or RIGHT function, depending on whether you want to extract the text or the number.
  3. Overview.

How do I extract text before a specific word in Excel?

Extract text before or after space with formula in Excel Select a blank cell, and type this formula =LEFT(A1,(FIND(” “,A1,1)-1)) (A1 is the first cell of the list you want to extract text), and press Enter button.

How do I only show text in Excel?

How to display only rows with certain text in Excel?

  1. In Excel, the Filter function is used widely in our daily work.
  2. Select the ranges you use, and click Data > Filter to enable the Filter function.
  3. Then click at the filter icon on the column you want to filter on, and select Text Filters > Contains.

8 Ways to Split Text by Delimiter in Excel

When data is imported into Excel, it might be in a variety of forms, depending on the source program that has supplied it to the spreadsheet. If it contains names and addresses of customers or workers, for example, it will appear as a continuous text string in one column of the worksheet rather of being divided into discrete columns such as name, street, city, and country. Using a common delimiter character, you may divide the data into two or more parts. A delimiter character is often one of the following: comma, tab, space, or semi-colon.

It is important to note that utilizing a delimiter character does not rely on set widths inside the text, which is a significant advantage.

It is possible that you will need to separate the data because you will want to sort the data based on a certain section of the address or because you will want to be able to filter on a specific component.

This article demonstrates eight different methods of dividing text into the component portions that are necessary, each of which makes use of a delimiter character to identify the split points.

Sample Data

The sample data shown above will be utilized in all of the examples that follow. The sample data and several techniques for extracting data based on delimiters may be found in the example file, which can be downloaded.

Excel Functions to Split Text

Excel functions may be used to divide and alter text within a cell, and there are numerous of them available.

LEFT Function

In this case, theLEFTfunction returns the number of characters to the left of the text.


= LEFT SIDE (Text,)

  • ‘Text’ refers to the text string from which you desire to extract information. The phrase can also be used as a valid cell reference within an Excel file. You can specify the amount of characters you want to extract from the text string using this parameter. The value must be larger than or equal to zero in order to be valid. The characters in the text string will be returned in their entirety if the value is more than the length of the string. Because it is not specified, the value will be interpreted as 1.

RIGHT Function

This method returns the number of characters from the right-hand side of a string of characters.


= CORRECT (Text,) The parameters behave in the same way as they do for theLEFTfunction, which was previously mentioned.

FIND Function

The FINDfunction locates the provided text inside a text string and returns its location. This may be used to locate a delimiter character in a string of text. Please keep in mind that the search is case-sensitive.


= DISCOVER (SubText, Text,)

  • SubText– This is a text string that you wish to look for in the search results. Text– This is the text string that is to be searched for in the database. Beginning position for the search
  • It is also known as the starting position.

LEN Function

The length of a text string is determined by the number of characters in the text string.



  • Text– This is the text string for which you wish to calculate the number of characters in the string.

Extracting Data with the LEFT, RIGHT, FIND and LEN Functions

These functions can be used in conjunction with one another to split a text string into portions using a delimiter character, as shown in the first row (B3) of the example data. = DISCOVER (“,”, B3) In order to determine the location of the initial delimiter character, you must utilize theFINDfunction. This will result in the value 18 being returned. = LEFT (B3, FIND(“,”, B3) – 1) = LEFT (B3, FIND(“,”, B3) – 1) = LEFT (B3, FIND(“,”, B3) = LEFT (B3, FIND(“,”, B3) = LEFT (B3, FIND(“,”, B3) = LEFT (B3, FIND(“,”, B3) = LEFT (B3, FIND(“,”, B3) = LEFT (B3, FIND(“,”, B3) = LEFT The LEFTfunction may then be used to extract the first component of the text string from the text string.

  1. This will result in the return ofTabbie O’Hallagan.
  2. The initial component of the text must be removed from the text using the formula above, as explained before.
  3. In order for the text string to get shorter and shorter when each delimiter character is encountered, it is truncated by theRIGHTfunction up to but not including the initial character.
  4. 056 Dennis Park is located in Greda, Croatia, and has a 44273 zip code.

If you do this for all of the delimiters in the text string, the text string will be divided into component pieces.

FILTERXML Function as a Dynamic Array

In Excel for Microsoft 365, you may use the FILTERXML function to separate text and output the results as a dynamic array of values. A text string can be divided by converting it to an XML string and replacing the delimiter characters with XML tags. You may then use theFILTERXMLfunction to extract data in this manner. Although XML tags may be set by the user, in this example, the letters s and t will indicate a sub-node and the letters n and t will represent the main node. >= In order to insert the XML tags into your text string, use the formula shown above.

This will result in the return of the formula shown above in the example.

These XML tags determine the beginning and ending points of each segment of the text, and they function in the same manner that delimiters do in practice.

As can be seen in the example above, the array will spill each item into its own cell.

FILTERXML Function to Split Text

If your version of Excel does not support dynamic arrays, you may still extract specific items by using the FILTERXML function. SUBSTITUTE (B3, “,”, “/ss “)” /s/t “, “/s”) FILTERXML (” ts ” SUBSTITUTE (B3,”,”, ” /ss “)” /ss “) Using the FILTERXMLformula mentioned before, you can now divide the string into portions. This will take you back to the first part. Tabbie O’Hallagan is a fictional character created by author Tabbie O’Hallagan. SUBSTITUTE (B3, “,”, ” /ss “)” /s/t “, “/s ” = FILTERXML (” ts” SUBSTITUTE (B3, “,”, “/ss “) To return to the previous section, apply the formula provided above.

You can use the same pattern to retrieve any portion of the example text; simply alter the found in the formula to reflect the desired section of the text.

Flash Fill to Split Text

Flash Fill allows you to enter a sample of how you wish your data to be split into sections. For more information, please see this instruction on how to use flash fill to clean your data for more information. When you have finished, choose the first cell in the row where you want your data to be split and click on the Flash Fill button. Excel will fill in the blanks for the remaining rows in your example. For example, enterNameinto cellC2, followed byTabbie O’Hallaganinto cellC3. Using the sample data, enterNameinto cellC2, thenTabbie O’Hallaganinto cellC3.

Otherwise, you may pick cellC4 and then click on theFlash Fillicon in theData Toolsgroup of theDatatab on the Excel ribbon, which will fill the cell with a flashing fill pattern.

Select each of the following cells (D2 to G2) one at a time, and then click on the Flash Fill icon. The remainder of the text components will be inserted into these columns once they are completed.

Text to Columns Command to Split Text

This Excel feature may be used to divide text in a cell into pieces based on the character that is used as a delimiter in the text.

  1. Make a selection from the whole sample data range (B2 to B12)
  2. In the Excel ribbon, select the Datatab button. When you click on theText to Columnsicon in theData Toolsgroup on the Excel ribbon, a wizard will emerge to guide you through the process of determining how the text will be divided. SelectDelimitedfrom the list of available options
  3. To proceed, click on theNext button.
  1. Select the comma as the delimiter and uncheck any additional delimiters that may be present
  2. To proceed, click on theNext button. It will be displayed in the Data Preview box how your data will be divided. Select a location for the output to be stored
  3. To finish, press the Finishbutton.

You will now see your information organized into columns on your worksheet.

Convert the Data into a CSV File

Commas are the only delimiters that will function with this, because a CSV (comma separated value) file relies on commas to separate the data in the file. Open Notepad and paste the example data into it by copying and pasting it. Notepad may be accessed by typing the word Notepad into the search box located to the left of the Windows task bar, or by selecting it from the application list on the left side of the screen. Once you’ve copied the information into Notepad, you may save it by selectingFileSave Asfrom the menu bar.

You might be interested:  How To Cite Apa In Text? (TOP 5 Tips)

After that, you may open the file in Excel.

Your data will be automatically organized into columns, with each component appearing in its own column.

VBA to Split Text

Visual Basic for Applications (VBA) is a programming language that runs underneath Excel and allows you to write your own code for data manipulation or even the creation of new functionalities. The Visual Basic Editor (VBE) is accessed by using the keys Alt+F11. SplitText is a subset of SplitText () MyArray() should be treated as a string. Count as a variable, I as a length For n ranging from 2 to 12 The array MyArray is split into two halves by the string “,” and the cell number n. 3 is the total number of items.

  1. For the module, a new pane will be displayed.
  2. A single-dimensional array named MyArray is created by running this code.
  3. The split function makes use of a comma as a delimiter, resulting in each piece of the text becoming a member of the array created by the function.
  4. The code then iterates through each element in the array, populating each cell with the element that was iterated through before.
  5. During each loop, the variableCount is increased by one, causing the data to fill across the row and subsequently down the row.

Power Query to Split Text

Power Query in Microsoft Excel allows you to divide a column into portions by using a delimiter character in the formula. Posts related to this one:

  • A delimiter character can be used in Excel to divide a column into pieces, which is accomplished through the use of Power Query. Posts that may interest you include:

Your data source, which is comprised of the sample data that you placed into your Excel spreadsheet, is the initial step to taking your analysis further. After you have selected the Datatab from the Excel ribbon, you should select Get Data from the GetTransform Datagroup of the ribbon. In the first drop-down menu, select “From File,” and then in the second drop-down menu, select “From Workbook.” A file browser will be shown as a result of this. Find and choose your sample data file (the file that you now have open) and then click on “OK.” A navigation pop-up window will appear, displaying all of the worksheets contained within your workbook.

  • Expand the tree of data in the left-hand pane to provide a glimpse of the data that has already been entered.
  • Make sure that only the one column with the data is highlighted in the table above.
  • In the drop-down menu that opens, selectBy Delimiterin the order that you want.
  • The comma is used as the default.

Click OK, and the data will be changed into different columns as a result of the transformation. The Close and Loadin theClosegroup of the ribbon will add a new worksheet to your workbook with a table of the data in the new format, which will be shown on the new worksheet.

Power Pivot Calculated Column to Split Text

Power Pivot may be used to separate the text into several sections by utilizing computed columns. Click on the Power Pivottab on the Excel ribbon, and then on the Add to Data Modelicon in the Tablesgroup to add the data to the Power Pivottab. Your data will be automatically detected, and the location will be shown in a pop-up window. If this is not the proper place, it can be re-set from this point onward. The My table contains headerscheck box should be left unchecked in the pop-up window since we also wish to separate the header.

  1. Insert a new data column by right-clicking on the header of your data column (Column1) and selecting Insert Column from the pop-up menu.
  2. = LEFT (, FIND (“,”,) – 1) = LEFT (, FIND (“,”,) In the formula bar, type in the formula shown above.
  3. This formula will return the Namecomponent from a text string that contains the name component.
  4. = LEFT (RIGHT (, LEN () – LEN () – 1), FIND (“,”, RIGHT (, LEN () – LEN () – 1), LEFT (RIGHT (, LEN () – LEN () – 1), LEFT (RIGHT (, LEN () – LEN () – 1), LEFT (RIGHT (, LEN () – LEN () – 1), LEFT (RIGHT (, LEN ( Fill in the blanks using the formula from above in the formula bar.
  5. As a result, theStreetcomponent will be included in the text string.
  6. The difficulty with a pivot table is that it requires both numeric and text data in order to function properly.
  7. The formula =1 should be entered in the formula bar of the first cell in theAdd Columncolumn after clicking on it.
  8. In the Hometab of the ribbon, select thePivot Tableicon to open it.
  9. The location of your pivot table should be specified in the first pop-up box, and then click OK.
  10. Click on theCalculated Columnsin the Field List and drag them into the Rowswindow to complete the calculation.


Being able to deal with data that has been split by commas or other delimiters may be a real nuisance if you don’t know how to extract each item into its own cell.

Fortunately, Excel has a plethora of choices to assist with this often performed operation. Which one do you like to use, if any at all?

How to Split Text in Cells Using Formulas

To summarize, learn how to divide a list of full names into columns of first and last names by employing formulae and functions in Microsoft Excel. Intermediate level of ability

Watch the Tutorial

You may see it on YouTube. Please consider subscribing to our channel.

Download the Excel Files

You may download both the before and after images from the links provided below. The before file is included so that you can follow along with the process, and the after file has all of the formulae that have already been created. Split-Names-with-Formulas-BEGIN.xlsx Split-Names-with-Formulas-FINAL.xlsx

Splitting Text Into Separate Columns

We’ve been talking about different approaches to dividing text that is currently in one column into two columns of text. Specific to this discussion is the well-known example of taking a Full Name column and splitting it into two columns: First Name and Last Name. This tutorial on how to split cells and text in Excel with Power Query is the first solution we looked at. You can find it here: How to Split Cells and Text in Excel with Power Query. Afterwards, we looked at how to split cells using the Text to Columns feature that is built into Excel: Split Cells with Text to Columns in Excel (see Resources).

Using 4 Functions to Build our Formulas

We will need to apply four distinct functions in order to divide our Full Name column into First and Last utilizing formulae. We’ll be utilizing the SEARCHandLEFTkeyboard shortcuts to find the first name. Then we’ll use the LEN and RIGHT operators to get the last name.

The SEARCH Function

The key to distinguishing the first names from the last names is in the first names. It is the responsibility of Excel to determine what all of the complete names have in common. The common component between the two names is the space character that separates them. Using the SEARCH feature will assist us in identifying anything to the left of that space character as the first name, which will aid our formula in identifying the first name. The SEARCH function gives the number of the character at which a certain character or text string is located when read from left to right, as shown by the arrows.

Because the space character (after the letters J, o, and n) is the fourth character in my given name, Jon Acampora, the SEARCH function returns the number 4.

  • The find text parameter is the first argument to the SEARCH function. The space character is the text we want to locate in our entries, so we’ll look for it. For example, we input ” ” for find text and make certain that the quotation marks are included
  • The second parameter iswithin text. This is the section of text in which we are looking for the space character. That would be the cell with the whole name in it, if there is one. In our example, the first cell with a full name is designated as A2. The formula will copy down and alter to B2, C2, etc., for each corresponding row because we are working with Excel Tables
  • The third and last parameter is. This option is used in situations when you wish to disregard a specific number of characters in the text before starting your search. This parameter is not required in our situation since we want to search the entire text, beginning with the very first character, and so we do not need to define it.

Our entire formula is written as follows:=SEARCH(” “,A2) Since the SEARCH function will be used as one of the inputs for the next function we’ll be looking at, I started with that one. That is the purpose of the LEFT arrow.

The LEFT Function

The LEFT method returns the number of characters from the beginning of a text string that has been given.

To define that number, we will make use of the value that we just discovered using the SEARCH command. TheLEFT function will extract the letters from theFull Namecolumn to the left of the cursor. There are two parameters to the LEFT function.

  • There are two arguments to this function: text and arithmetic. That is simply the cell from which the function is drawing its data—in our example, A2
  • The second parameter is nothing more than that. This is the maximum number of characters that should be pulled by the function. When it comes to this argument, we will take the formula we defined previously and deduct 1 from the result, because we do not want the space character to be included in our final results. As an example, the search function would be SEARCH(” “,A2)-1
  • And the argument would be

Our formula is written as LEFT(A2,SEARCH(” “,A2)-1) when put all together. Now that we’ve extracted the first name using the LEFT function, you can probably predict how we’ll utilize the RIGHT function to complete the extraction. It will retrieve the last name from the database. To get us started, allow me to describe one of the components that we will want for that formula. TheLEN function is responsible for this.

The LEN Function

LEN is an abbreviation for LENGTH. When given a text string, this method returns the number of characters in the string. There are 12 characters in my given name: three for Jon, eight for Acampora, and one for the space in between. There is only one argument to LEN, and that is to specify which text should be used to count the characters in the count. For the sake of this example, we will use the full name A2 once more. Our formula is as follows:=LEN (A2)

The RIGHT Function

The RIGHT formula returns the number of characters from the end of a text string that has been supplied. The RIGHT has two counter-arguments.

  • There are two arguments to this function: text and arithmetic. Here’s the text that it’s going through in order to find the appropriate characters to return. We are looking at cellA2 in the same way that we were looking at the LEFT function above. The second point of contention is. It is necessary to deduct the number of characters that were identified using the SEARCH function from the total number of characters that were identified using the LEN function in order to calculate this parameter. Using this method, we can determine the amount of characters in the last name.

Adding everything together, our formula is=RIGHT(A2,LEN(A2)-SEARCH(” “,A2)) It is important to note that we did not subtract 1 as we did previously because we want the space character to be included in the amount that is being subtracted from the overall length of the sentence.

Pros and Cons for Using Formulas to Split Cells

The only significant advantage of using this approach for text splitting is that it is completely automated. When changes are made to the Full Name column, the First and Last names of the individuals affected are updated as a result of the changes. In comparison to Text to Columns, which forces you to totally restart the procedure every time you make a change, this provides significant time savings and convenience. The Power Query approach, while considerably easier to update than Text to Columns, still requires a manual selection of the refresh option once it has been selected.

In other words, it is not the most straightforward option to implement out of the three ways that have been shown thus far.

If you have data that contains middle names or two first names, the formula technique isn’t very useful unless you make significant changes to the formulae themselves.

We’d appreciate it if you could give it a shot and report back in the comments.

Ways to Split Text

Here are the links to the previous postings on different methods of text splitting:

  • In Excel, you may divide cells containing text into columns. Using Excel’s Flash Fill feature, you may split text in cells. Learn how to use Power Query to split cells and text in Microsoft Excel. Power Query may be used to split a data set into rows (and columns) based on a delimiter.


With this essay, I hope you have gained some new knowledge that you can use to the process of dividing information into distinct column headings.

If you have any questions or comments, please post them in the comments section below!

Separate text in Excel (Examples)

Excel may be used to separate text (Table of Contents)

  • Introduction to Excel’s Separate Text feature
  • What is Text to Columns
  • Examples of Separated Text in Excel
  • What is Text to Columns

Introduction to Separate text in Excel

Text may be separated into columns in Excel by using the Text to Column option, which can be found in the Data menu tab under the Data Tools heading. This option may also be accessed by using the shortcut keys ALT + A + E at the same time after selecting the data that needs to be separated. We would have two options for separating the data once we had selected it and clicked on Text To Column. The first is referred to as Delimited, and the second as Fixed Width. While we may pick the criterion by which we want to divide a text with the assistance of Delimited and Fixed Width, we can simply choose the width of the text from which we want to split it with the aid of Fixed Width.

  1. Some other symbol
  2. Comma-“,” semicolon-“
  3. “, space-” “, tab-” “, some other symbol

Another option is to group all of the data into a single column and use a defined amount of characters to indicate the different groups of data. Because the data has not been structured into an appropriate row and column format, when data is received or organized in any of the forms indicated above, it becomes impossible to deal with the data. Although it is difficult to tell from the image, if you look closely, you will notice that the columns are separated by semicolons – “;”, as they should be.

  • All of the other rows are in agreement with this.
  • In a similar vein, we can see in the second screenshot that all of the data has been consolidated into a single column.
  • The first column is labeled “Name,” while the second is labeled “Sales.” We can see that the length of “Name” is 4 characters and the length of “Sales” is 5 characters.
  • As a result, we may partition text data in Excel into columns based on the Fixed Lengths of the text data.
  • In Excel, the “Text to Columns” and the “Split Cell” functions are very beneficial for resolving these types of formatting difficulties by enabling data re-arrangement and manipulation/cleaning, which is particularly challenging when working with a large or all of the data in a single column.
  • Text to Column is also significantly quicker.
You might be interested:  What Does Sos Mean In Text? (TOP 5 Tips)

What is Text to Columns?

It is common for us to meet scenarios similar to the ones depicted above while obtaining data from databases, CSV files, or text files. We have a very useful tool in Excel called ” Text to Columns ” that we may use to tackle these kind of issues. Data Tools may be discovered by selecting the Data tab and then selecting the “Data Tools” option.

The shortcut key combination is Alt+A+E on the keyboard. In addition, the “Text to Columns” option will be activated. Let’s have a look at some samples to better understand how “Text to Columns” can help us with our problem.

Examples of Separate text in Excel

The following are some examples of how to separate text in Excel:


First Name, Last Name, and Age should be separated into different text columns in Excel (by separating them with delimiters): Examine the following scenario in which we have been provided with information in the following format: First name, last name, and age information are all combined into a single column for convenience. Our goal is to divide the data into independent text columns in Excel, which is a text-based format. In order to divide the data into distinct text columns in Excel, we must first do the following operations: Step1– First, we will choose the data column that will be used: We’ll go to the “Data” tab and then to the “Data Tools” section, where we’ll click on the “Text to Columns” button.

  1. Step 3– Make certain that we pick “Delimited” from the drop-down menu before clicking on “Next.” Step 4– After that, on the next tab, pick “Tab” and then deselect it.
  2. As soon as we pick “Semicolon,” we can see that the text preview has been updated to show the columns clearly delineated.
  3. After that, we may go on to the next step by pressing the “Next” button.
  4. Step 5– We have the option of keeping the data in any of the following formats:
  • This function translates numeric inputs to numbers, date values to dates, and the remainder to text. All values are converted to text format using the “Text” option. ” Date ” – Converts all of the values to the Date format (MDY, DMY, YMD, DYM, MYD, YDM)
  • ” Date ” – Converts all of the values to the Date format (MDY, DMY, YMD, DYM, MYD, YDM)
  • Ignore Column– This will save you from having to read the column.

Following that, we’ll look at the “Advanced” option. When we select “Advanced,” we have the option of selecting the decimal separator and the thousands separator. After that, we’ll choose the cell that will be our final destination. We don’t need to change anything here, but if we don’t, it will overwrite the original column with “First Name,” the next cell will become “Last Name,” and the cell adjacent to that will become “Age.” If we decide to preserve the original column, we will have to include a value in this section (which will be the next adjacent cell).

As a result, we will get the following outcome:


Split the following text columns into separate text columns in Excel (using Fixed Width): Name Sales Assume we have a circumstance in which we have data, as illustrated in the example below. As we can see, all of the information has been consolidated into a single column (A). However, we can see that the data is presented in a somewhat different style here. “Name” should be in the first column, as it should be, and “Sales” should be in the second column, as we can see in the table. “Name” is four characters long, and “Sales” is five characters long.

  • We may use “Fixed Width” to divide the data from a single column into numerous columns in this case because we do not have any delimiters to use in this situation.
  • We’ll go to the “Data” tab and then to the “Data Tools” section, where we’ll click on the “Text to Columns” button.
  • 3.
  • Step 4– In the Data Preview portion of the next screen, we will have to make adjustments to the fixed-width vertical divider lines (also known as Break Lines) that have been set.
  • We must click on the precise location where the first column width comes to a finish in order to complete the task.

This will bring the Break Line to that particular moment in time. Afterwards, we’ll look at the portion of the document that describes the column data format. Step 5– We have the option of keeping the data in either format —

  • This translates numeric data into numbers, date value into dates and the remainder as text
  • It is also known as ” General “. All values are converted to text format using the “Text” option. ” Date ” – Converts all of the values to the Date format (MDY, DMY, YMD, DYM, MYD, YDM)
  • ” Date ” – Converts all of the values to the Date format (MDY, DMY, YMD, DYM, MYD, YDM)
  • Ignore Column– This will save you from having to read the column.

Following that, we’ll look at the “Advanced” option. When we select “Advanced,” we have the option of selecting the decimal separator and the thousands separator. After that, we’ll choose the cell that will be our final destination. This will replace the original column with the word “Name,” and the neighboring cell will be renamed to “Sales” if we do not change it. If we decide to preserve the original column, we will have to include a value in this section (which will be the next adjacent cell).

As a result, we will get the following outcome: A data column’s first “n” characters can be extracted using the same reasoning as the first “n” characters of a string.

Things to Remember about Separate text in Excel

  1. In order to divide a column (separate the clubbed data from a column), we should stop using difficult formulas and/or copy-and-paste and instead start utilizing Text to Columns. When using the Fixed-Width approach, Excel will divide the data into groups based on the length of the characters. Excel will separate the data depending on a set of delimiters, such as a comma, semicolon, tab, and so on, when using the Delimited technique. Text to Columns may be accessed quickly and easily by pressing the Alt+A+E keyboard shortcut.

Recommended Articles

This article has provided instructions on how to separate text in Excel. The Separate text in Excel feature and how to utilize the Separate text in Excel feature are covered in this article, which also includes practical examples and an Excel template for download. You can also check out some of our other recommended posts –

  1. Excel Text with Formula
  2. Excel Text Search
  3. Excel Text Formatting
  4. VBA Text
  5. Excel Text with Formula

How to split text in Excel in 5 ways

To demonstrate how to separate text in Excel using a delimiter, we’ll walk you through the process. Workbook may be downloaded here. We have a sample data set that comprises values that have been concatenated and are separated by the character “|.” It is critical that the data has a particular delimiter character between each block of information in order to make text splitting easy.

Text to Columns feature for splitting text

When it comes to separating text in Excel, the Text to Columns function is one of the most often used. The Text to Columnsfeature is compatible with all versions of Microsoft Excel. Text may be divided using a specified character count or delimiter with this capability.

  1. Begin by selecting the information you want to use. In a column, you can utilize more than one cell at a time. DataText to Columns in theRibbon may be accessed by clicking on it. Two slicing methods are available for selection on the first stage of the wizard. You can select one of these alternatives on the next phase. Due to the fact that our data in this case is divided by delimiters, we will select Delimited as our format. Continue by pressing the Next button. Select the delimiters that are appropriate for your data or select a character length and then clickNext. Select the data types for the columns and the target cell that are compatible with one another. If the destination cell is the same cell as where your data is located, please be aware that the original data will be overwritten. To see the final result, clickFinish.

Using formulas to split text

Excel has a number of text formulae that may be used to find delimiters and parse data, among other things. When this is accomplished through the use of formulae, Excel automatically updates the parsed data whenever the source is modified. To populate numerous cells without utilizing a list formula, the formula in this example makes advantage of the dynamic array functionality in Microsoft 365, which is available in Office 365. If you are able to view theSEQUENCEformula, you can employ this technique.


=TRIM(MID(SUBSTITUTE(text, separator, REPT(” “, LEN(text))),(SEQUENCE(1, column count) – 1),(SEQUENCE(1, column count) – 1),(SEQUENCE(1, column count) – 1), Text length is calculated as LEN(text) + 1,LEN(text).

How it works

The formula substitutes each separator character with a space character first, followed by the next separator character. (seeSUBSTITUTE) The amount of space characters will be equal to the number of characters in the original string, which will be adequate to separate each string block with enough space characters (seeREPTandLEN). TheSEQUENCEfunction produces an array of integers starting with 1 and continuing until the maximum number of columns is reached. Taking the length of the original string and multiplying these sequential values together yields character numbers denoting the start of each block in the sequence.

Because the separators have been substituted with space characters, each parsed block has these spaces in the vicinity of the actual string it contains. The TRIM function is then used to eliminate these blank spaces.

Flash Fill

TheFlash Fillis an Excel application that can recognize patterns in data as it is being entered into it. A frequent example is the separation or combination of first and last names. Consider the following scenario: column A includes first name – last name pairings. In column B, if you write in the first name that corresponds to the row in which you typed it, Excel displays a preview of the remainder of the column. We would like to point you that the Flash Fill is only accessible for Excel 2013 and higher editions.

Simply click on a cell in the neighboring column and begin typing in it.

If this is the case, press Ctrl + Elike to divide your text.

Power Query

Power Queryis a strong function that may be used not just for text splitting, but also for data management more generally. Power Query has a text splitting tool that allows you to separate text in a variety of ways, including by delimiters, the number of characters, and the case of the letters in the text. You can access Power Query choices beneath the Datatab’s GetTransformsection if you are using Excel 2016 or later – including Microsoft 365 – and you are utilizing the Datatab’s GetTransformsection.

  1. The cells holding the text should be highlighted. DataFrom Sheet may be accessed by clicking on it. If the data is not already in an Excel Table, Excel turns it into an Excel Table first
  2. Otherwise, it does nothing. Then, after the Power Querywindow is open, locate theSplit Columnoption under theTransformtab and click on it to view a list of available choices. Choose the strategy that is most appropriate for your data arrangement. Because the data in our case is divided by the character “|,” Power Query will display the delimiter character when the data is used using By Delimiter. You may either pick from a list of delimiters or type it in manually if the intended delimiter is not displayed. To divide text, use the OK button. If your data has headers in the first row, like in our example, choose TransformUse First Row as Headers to maintain the headers in their original position. As soon as you are pleased with the outcome, click the HomeCloseLoadbutton to transfer the divided data into your worksheet.


VBA is the final text splitting method we’d want to cover in this post. Splitting text may be accomplished in two ways using Visual Basic for Applications:

  1. By calling theText to Columnsfeature using VBA
  2. Using VBA’sSplitfunction to create array of sub-strings and using a loop to distribute the sub-strings into adjacent cells in the same row

Text to Columns by VBA

With the help of the following code, you may divide data from chosen cells into neighboring columns. It is important to note that each available delimiter is presented as an argument that may be enabled or disabled by passing them eitherTrueorFalse as values. In a nutshell,Truemeans that you want to use that character as a delimiter, andFalsemeans that you want to disregard that character. Recording a macro is a simple approach to write VBA code that will split text into many columns. Start a recording section by clicking on theRecord Macrobutton in theDevelopertab and then selecting theText to Columnsfeature from the drop-down menu.

The code:

VBATextToColumns Multiple is a subroutine () MyRange should be referred to as Range. MyRange = Selection ‘To work with a static range, replace Selection with a Range object, such as Range(“B6:B12”)MyRange.’ Destination:=MyRange TextToColumns Source:=MyRange Offset is a term that refers to the position of something in relation to another thing (, 1), =xlDelimited, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, TextQualifier:=xlDoubleQuote, If ConsecutiveDelimiter:=False, then Tab is the appropriate separator.

If SemiColon:=False, then Comma is the appropriate separator.

Split Function

If you wish to retain the split blocks together in an array, the split function might be handy. Using this approach for splitting is only possible due to the restriction of using a single delimiter. In the following code, a loop is used to iterate over each cell in a specified column, separate and store text using the delimiter “|,” and then a second loop is used to populate the values in an array on cells.

The finalEntireColumn of the finalEntireColumn. The AutoFit command makes adjustments to the column widths.

The code:

Separate text into cells using SplitText(). Sub StringArray() Dim Cell As Range, I As Integer For Each Cell In Selection For example, Range(“B6:B12”) can be used to operate on a static range instead of the Selection object. StringArray = Split(Cell, “|”) where Cell is the cell to be split. ‘Change the delimiter to a character that is appropriate for your data.’ With respect to I = 0, to UBound(StringArray) Cell Cell with Offset(, I + 1) equals StringArray(i). Offset(, I + 1) is the offset between two numbers.

You might be interested:  How Do You Leave A Group Text? (Solution found)

Automated Fitting (AutoFit) This is for the column width and is completely optional.

How to split text by space/comma/delimiter in Excel?

As seen in the photos below, you may divide a column list of data into many columns by using a certain delimiter. But how do you do this in Excel? Perhaps some users are only familiar with the Text to Column function; nevertheless, I will now introduce not only the Text to Column method, but also a VBA code for your convenience.

  • Text to Columns allows you to divide text strings into several columns using a space, a comma, or a delimiter. Text strings can be divided into numerous rows/columns using a space, comma, or other delimiter.

Split text strings into multiple columns by space/comma/delimiter by Text to Columns feature

The Text to Columns function in Excel is quite handy for dividing a list into many columns. This approach describes how to use the Text to Column tool in Excel to divide data into groups based on a chosen delimiter. Please complete the following steps: Choose the column list you wish to divide by delimiter from the drop-down menu and clickDataText to Columns. Take a look at this screenshot: 2. After that, aConvert Text to Columns Wizarddialog will appear, which you should check the Delimited option and then clickNext.

In the Convert to Text to Columns Wizard – Step 2 of 3 dialog box that appears, select the delimiter that you want to use to divide the data into columns.


As you can see, the column list in the selection has been divided into many columns as a result of the delimiter that was supplied.

Extract numbers (or text) only from one cell/column into different columns/rows

Kutools for Excel has improved its Split Cellsfeature, which now allows you to batch extract all text characters or integers from a single cell or column into two columns or rows at the same time. Featured in its entirety Free 30-day trial period! Kutools for Excel is a collection of more than 300 useful tools for the Microsoft Excel spreadsheet program. Free 30-day trial with full functionality, no credit card required! Get It Right Away

Split text strings into multiple rows/columns by space/comma/delimiter with Kutools for Excel

The approach described above can only divide text strings into several columns. This technique will introduce the Divide Cellsutility from Kutools for Excel, which allows you to effortlessly split text strings into several rows or columns in Excel by using a delimiter. Kutools for Excel is a collection of more than 300 useful tools for the Microsoft Excel spreadsheet program. Free 30-day trial with full functionality, no credit card required! Now is a great time to start your free trial! 1. Select the range of text strings from which you want to divide them (in our example, we chose the range A1:A9), and then clickKutoolsTextSplit Cells.

Take a look at the screenshot above: Now that another Split Cells dialog box has appeared, please choose the first cell in the destination range and click theOKbutton to proceed.

Kutools for Excel is a collection of more than 300 useful tools for the Microsoft Excel spreadsheet program. Free 30-day trial with full functionality, no credit card required! Get It Right Away

Demo: Split text strings into multiple rows/columns by space/comma/delimiter

  • Reuse: Insert complicated formulae, charts, and anything else that you have previously used in a snap. Cells should be encrypted with a password. Develop and send emails to a mailing list Super Formula Bar (allows you to effortlessly change numerous lines of text and formula at the same time)
  • Layout Reading (the ability to quickly read and alter vast numbers of cells)
  • Copy and paste into the Filtered Range
  • Cells, rows, and columns can be merged without losing data. Separate the content of the cells
  • Duplicate rows and columns should be combined. Prevent the formation of duplicate cells. Compare and contrast ranges
  • Select Duplicate or UniqueRows from the drop-down menu. Blank Rows (all cells are empty) should be selected. Numerous Workbooks
  • Super Find and Fuzzy Findin Many Workbooks
  • Random Select
  • CopyMultiple Cells in the same format without modifying the formula reference
  • Create references to several sheets automatically
  • Insert bullets, check boxes, and other formatting elements
  • Text extraction, text addition, text removal by position, and space removal are all options. Paging Subtotals can be created and printed. Convert between the contents of cells and their comments
  • Super Filter (allows you to save and reuse filter schemes across several pages)
  • Advanced Sorting by month, week, day, frequency, and other criteria
  • Special Filtering by bold and italic text
  • Workbooks and WorkSheets should be combined. Tables can be merged depending on the columns that are important. Separate data onto many sheets
  • Convert multiple xls, xlsx, and PDF files at the same time
  • More than 300 strong functions are available. Supports Office/Excel 2007-2019, as well as Office 365. It is compatible with all languages. It is simple to implement in your firm or group. Complete set of characteristics Free trial period of 30 days. Money-back guarantee for 60 days

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Make it possible to edit and view documents in tabbed mode in Microsoft Office applications including Word, Excel, PowerPoint, Publisher, Access, Visio, and Project. Instead of opening and creating several documents in separate windows, multiple documents can be opened and created in different tabs of the same window. increases your productivity by 50% and eliminates hundreds of mouse clicks for you on a daily basis

How to Separate Text and Numbers in Excel (4 Easy Ways)

In Excel, we frequently have to segregate text from numbers when dealing with large amounts of data. The following are four simple methods for doing this task quickly and conveniently: 1.

Download Practice Workbook

Take a look at this data set for a moment. We have the Combined Data of a group of pupils from a school called Saint Xaviers School in our possession. We have two distinct columns for you to read. Where we want to extract the Student Names and Student IDs individually from the data in ColumnsCandD What method will you use to do this? The following are the approaches you can take.

1.Using Text to Column Menu from Excel Toolbar

Choose the cells in which you wish to distinguish between text and numbers by clicking on them. Cells B4 through B13 are the ones I’m interested in. Then, under the Excel Toolbar’s Data Toolssection, select theData Text to Columnsmenu from the Data Toolssection. Simply click on it. Afterwards, you’ll see a Convert Text to Column Wizard Box. Check theDelimitedoption because we want to separate text and numbers using aDelimiter(comma) to do this. You will be able to get a preview of your information.

  • Then you’ll go to the second stage of the Convert Text to Column Wizard.
  • If you require anything else, you can select it.
  • You will now be able to get a preview of your data being divided.
  • Step 3 of the Convert Text to Column Wizard Box will be displayed once you have completed step 2.
  • It is possible to view your data divided into the needed number of columns at the bottom of the box.
  • Then, in theColumn data formatoption, pick the data format in which you want that column to appear.
  • When it comes to this situation, I want both columns to be inGeneralformat.
  • Alternatively, you may manually choose the leftmost cell of the Destinationrange by clicking on the little box to its right.
  • After that, clickFinish.

2. Using Flash Fill

Assume that you do not have the commas(,) in the combined data in the data collection. This is an example. The above-mentioned procedure will no longer function. So, how are you going to distinguish between the sentences and the numbers this time? Don’t be concerned. Flash Fill is the most effective method of separating right now. It may be used in two different ways.

Way 1: From Excel Toolbar

First, manually separate the first set of data. Steve Morris is in cell C4 and 1 01 is in cell D4 in this example. Then choose the remainder of the cells in the first column from the drop-down menu. I choose all of the cells from cellC4 to cellC13. Then selectData Flash Fillin the Excel Toolbar, which is located under theData Toolssection.

Flash Fill may be accessed by clicking on it. In columnC, you will discover sentences from all of the cells in columnB, which have been elegantly organized. Repeat the process for the remaining columns. I repeat the process for columnD.

Way 2: From Fill Handle

To make advantage of theFlash Fill, you can use theFill Handleof Excel. Manually separating the first cell once again. I placed Steve Morris in cellC4 and 101 in cellD4 in the spreadsheet. Then drag theFill Handleof the first column through the remainder of the cells to complete the filling process. After dragging, a little icon named Auto Fill Options will appear in the bottom right corner of the screen. To access the drop-down menu linked with it, click on it. You will be presented with four alternatives.

In columnC, you will discover sentences from all of the cells in columnB, which have been elegantly organized.

I repeat the process for columnD.

Users of prior versions will not be able to access it.

3. Using Excel Functions

It will be handy when we have a collection of data that has not been separated by commas (,). Similar to the one that we used in Section 2. Syntax of the RIGHT() Function

  • A text and a position number are required as inputs for this function. returns the rightmost portion of the text, beginning at the position number specified from the end of the text

For instance, RIGHT(“Anahita”,4) = hita If you’d want to learn more about the RIGHT()Function, check out this link. Syntax of the LEFT() Function It accepts two parameters, one of which is text and the other which is position number.

  • Returns the text up to the specified position number from the leftmost section of the text.

For example, if you want to learn more about the LEFT()Function, you may do so by visiting this link. The MIN() function has the following syntax: =MIN(Number 1,Number 2,.)

  • It accepts as input a list of integers in an array
  • As an output, it produces the smallest possible number.

You may learn more about the MIN() function, for example, by clicking on this link. The FIND() function has the following syntax: =FIND(find text, within text,)

  • This function accepts three inputs: find text (which can be either a single value or an array), within text, and start num. This function returns the location in the within text text where the find text input matches the within text text. It starts looking for matches from the start num position. It is case sensitive.

For example, FIND(“a”,”anahita,”2) Equals 3 when the search term is “a.” Now it’s time to get back to work. To begin, we must determine where the numbers begin in the Combined Data and from which place they end. This will be represented by the formula=MIN(FIND(,B4 “0123456789”)) You may learn more about the FIND() function by clicking on the following link. As you can see, the digits in the name Steve Morris101 begin at the thirteenth place. In this case, the formula for splitting the Name will be=LEFT(B4,MIN(FIND(,B4 “0123456789”))).

Drag theFill Handle to the left to separate the names for the remaining cells.

You will also receive a list of Student IDs that have been separated.

Furthermore, you must use theMAX()function rather than theMIN()function.

Method 2: Using a Combination of RIGHT(), LEFT() and SEARCH() Function

As long as the combined data is separated using commas(,), as was the case with the data set we utilized in part 1, you may use this strategy.

SEARCH() Function Syntax =SEARCH(find text,within text,) SEARCH(find text,within text,)

  • This function accepts three inputs: find text (which can be either a single value or an array), within text, and start num. This function returns the location in the within text text where the find text input matches the within text text. It starts looking for matches from the start num position.

For example, SEARCH(“a”,”anahita,”2) Equals 3 when the search term is “a.” In many ways, it is identical to the FIND()Function. If you would want to learn more about the SEARCH() function, please see this page. After that, the formula for separating the names will be=LEFT(B4,SEARCH(,””, B4)-1), and the formula for separating the IDs will be=RIGHT(B4,LEN(B4)-SEARCH(,””, B4)). Note: If you have numbers first, followed by text, as in 101Steve Morris, you will need to swap the formulae in your program.

4. Using a Macro (VBA Code)

Using aMacro, we will now separate text and numbers from a cell in our spreadsheet (VBA Code)

  • To begin, press Alt + F11 on your keyboard. Having theVBAwindow open, select theInsertoption from theVBAtoolbar and press Enter. Simply click on it. You will be presented with a number of alternatives. ChooseModule

Performing a Public Function The string ‘Updated by Extendoffice’ is created by splitting the text into two parts: pWorkRng as a range, and pIsNumber as a Boolean. To make xLen equal to VBA, convert xLen to Long and xStr to String. In the case of I = 1, Len(pWorkRng.Value) To xLen xStr = VBA. The middle of the road (pWorkRng.Value, i, 1) If ((VBA.IsNumeric(xStr) and pIsNumber) or ((VBA.IsNumeric(xStr) and pIsNumber)) or ((VBA.IsNumeric(xStr)) and ((pIsNumber))) then SplitText = SplitText + xStr End If ((VBA.IsNumeric(xStr) and pIsNumber) or (( If the following occurs, the end result is This website assisted us in the creation and development of the code.

  • A new function, SplitText(), is created by this code. It takes two arguments: a merged data set and a Boolean value (either TRUE or FALSE). Then save it as a file with the extension “Excel Macro Enabled Worksheet.” Return to your worksheet at this point. Entering a formula into theStudent Name field is simple.

You will receive a list with the names separated. You will be provided with a list of the students’ ID numbers. Special Note: This Macros function has a unique characteristic that makes it more useful than other similar functions. It is capable of distinguishing between numbers and text in data that has been randomly jumbled. For example, it can distinguish between 101andSteve Morris and Steve10 M1orris, something that the other approaches are unable to achieve. Take a look at the photographs in the gallery below.


You can separate numbers and text from any cell in Excel by using one of these techniques. Do you have any suggestions for an alternative method? Please share your thoughts in the comments area.

Further Readings

  • Only numbers may be extracted from an Excel cell using one of six useful methods. How to Separate Numbers in Excel Using a Formula (5 Methods)
  • How to Separate Numbers in Excel Using a Formula

Leave a Reply

Your email address will not be published. Required fields are marked *