×

Separate Strings in Excel

How to Separate String in Excel

Day by day, Microsoft Excel is increasing for business and personal use. It is a combination of numbers and alphabets based on the data provided. The data entered by the user is present in different formats. Multiple details are represented in the range of columns. In such data types, the user needs to calculate the specified data present in the range of columns. Hence there is a need to split the particular data from the range of columns.

For example, if the cell contains the person's name and area name, the user must split the area name to finalize the data. In such situations, there is no need to type the data manually in separate columns. One can choose either the formula method or the delimiter character. Formula functions such as RIGHT, LEFT, LEN and FIND can be modified based on the user's preference to split the data. Delimiter includes commas, semi-colons, tabs, and spaces to split the required data from the given data.

But what if someone forgets the formula? There is a method called Flash Fill used to split the data. The formula and flash fill method are clearly explained in this tutorial.

1. How to split the data using the formula method?

The steps to be followed to split the data using the formula method are as follows,

Step 1: Enter the data in the column of range from A1:A10

Separate Strings in Excel

Step 2: Select cell B1, where the user wants to display the result. Enter the formula in the cell =RIGHT (A2, LEN (A2)-FIND (“,”, A2))

Step 3: Press Enter. The data which needs to be split will display in cell B1. To get the result for the remaining data, drag the formula towards B10.

Separate Strings in Excel

From the above worksheet, using the formula method, the first name is present in another column. From the above formula, the FIND function is used to find the position of the comma, and the LEN function denotes the length of the string. For example, the length of the data present in cell B1 is (17), and the position of the comma is 7. Therefore 17-7=10, where the number 10 indicates the VEGETABLES. Similarly, this method follows all the data in the table.

Example 1: How to split the last name from the data using the formula method?

To split the last name from the data, the steps to be followed are,

Step 1: Enter the data in the column of range from A1:A10

Separate Strings in Excel

Step 2: Select cell B1, where the user wants to display the result. Enter the formula in the cell =LEFT (A2, FIND (“,”, A2)-1)

Step 3: Press Enter. The data which needs to be split will display in cell B1. To get the result for the remaining data, drag the formula towards B10.

Separate Strings in Excel

Using the formula method from the above worksheet, the last name is present in another column. Here the formula '-1' indicates removing the comma while displaying the data in the new column.

Flash Fill Method

If one is unfamiliar with the formula method, another method called Flash Fill is used to split the first and last name without the formula method. Here in this example, the steps to display the first name using the Flash Fill Method are as follows,

Step 1: Enter the data in the column of range from A1:A10

Separate Strings in Excel

Step 2: Select a cell, namely B1, where the user wants to display the result. Enter the first name in cell B1. Here vegetables are entered as the first name in cell B1.

Step 3: Choose File>Options>Advanced options. In that option, check whether the Flash Fill box is checked. Another shortcut method is CTRL+E.

Step 4: Select cell B1. Either one can use the shortcut method or Excel options. The result will be displayed for the rest of the cells, which is the data's first name.

Separate Strings in Excel

The above worksheet displays the first name in the column range from B1:B10.

 Example 2: How to display the last name using the Flash Fill Method? The steps to be followed are as follows,

Step 1: Enter the data in the column of range from A1:A10

Separate Strings in Excel

Step 2: Select a cell, namely C1, where the user wants to display the result. Enter the last name in cell B1. Here fruits are entered as the last name in cell B1.

Step 3: Choose File>Options>Advanced options. In that option, check whether the Flash Fill box is checked. Another shortcut method is CTRL+E.

Step 4: Select cell C1. Either one can use the shortcut method or Excel options. The result will be displayed for the rest of the cells, which is the data's last name.

Separate Strings in Excel

From the above worksheet, the last name is displayed in the column range C1:C10 using Flash Fill Method.

Summary

From the above method, the various functions and methods to separate the strings are explained briefly.


Related Topics

Excel AND() Function

The AND() function in excel tests the multiple sets of conditions and returns TRUE if all supplied conditions met the criterion, FALSE otherwise. You need to have a minimum of 2 conditions...

2 minutes read.

Excel HOUR() Function

Excel HOUR() Function The HOUR() function in excel converts a serial number to an hour (0 - 23). Syntax HOUR(SERIAL_NUMBER) Parameter SERIAL_NUMBER (required)- This parameter represents the date or time from which you want to extract...

1 minute read.

What do you understand by Combination Chart in Microsoft Excel?

In Microsoft Excel, an individual has the Combo Chart option available, which can be effectively clubbed into two charts types, which are Column Clusters Chart, Line Chart to get the...

7 minutes read.

Excel FIND() Function

The FIND() function in excel finds one text value within another. It is a case-sensitive function. Syntax FIND (find_text, within_text, [start_num]) Parameter find_text (required)- This parameter represents the text to find. within_text (required)- This parameter represents...

1 minute read.

Excel VALUE() Function

The VALUE() function in excel converts the specific text representing a number (i.e., a number, date, or time format) into a numerical value. Syntax VALUE(Text) Parameter Text(required)- This parameter represents the string that you want...

1 minute read.

How to generate random numbers in Excel

In this tutorial, we will discuss the following things in detail that are as follows: Introduction about Random Numbers used in Microsoft Excel. Discuss how to generate the Random Numbers in Microsoft...

6 minutes read.

Go-To Special function in Excel

Go-to Special The Go-To Special function in Excel allows you to select all cells that meet certain criteria quickly. This command is used to identify specific cells – the ones which...

1 minute read.

Excel TEXT() Function

The TEXT () function in excel converts a supplied numerical value into the text of a specific format. Syntax TEXT(Value, Format_text) Parameter Value (required)- This parameter represents the value for which we need to...

1 minute read.

Notes in Excel

Notes in Excel Notes are used to include additional information to the cell and explain formulas calculation, any modification made to the cell, providing necessary information on data that is entered or to provide any...

3 minutes read.

Excel SUBSTITUTE() Function

The SUBSTITUTE() function in excel substitutes/replaces the old text with the new text in a string. SUBSTITUTE function is used to clean data. This function is case-sensitive. Syntax SUBSTITUTE(Text, Old_Text, New_Text, [instance_number]) Parameter Text (required)- This...

2 minutes read.

Excel MINUTE() Function

Excel MINUTE() Function The MINUTE() function in excel converts a serial number to minute (0 - 59). Syntax MINUTE (SERIAL_NUMBER) Parameter SERIAL_NUMBER (required)- This parameter represents the date or time from which you want to extract...

1 minute read.

Excel MOD() Function

Excel MOD() Function The MOD() function in excel returns the remainder after a number is divided by a divisor Syntax MOD(number, divisor) Parameter Number(required)- This parameter represents the number which you want to divide. Divisor(required)- This parameter represents...

1 minute read.

Excel EDATE() Function

Excel EDATE() Function The EDATE() function in excel returns the serial number of the date that is the indicated number of months before or after the start date. Syntax EDATE(Start_Date, Month) Parameter Start_Date(required)- This parameter represents...

1 minute read.

How to import Microsoft Access data into the Microsoft Excel

Microsoft Access is primarily considered vital and the primary tool for individuals who want to create and manage the respective type of Database efficiently. This tutorial will discuss how to import...

5 minutes read.

Excel COUNTBLANK() Function

Excel COUNTBLANK() Function The COUNTBLANK() function in excel counts the number of blank cells within a range. Syntax COUNTBLANK ([value1], [value [2], ...) Parameter value1(required)- This parameter represents the first cell in the range. value2, …(optional)- It represents...

1 minute read.

Count Characters in Excel

Microsoft Excel is used to perform calculations for multiple purposes. The data entered in the worksheet is a combination of numeric and alphabets. Sometimes there is a need to check...

4 minutes read.

How to Highlight Duplicates Words in the Microsoft Excel?

We can easily highlight the values that are duplicated in the selected dataset, whether it could be a column or a row from the particular table, with the help of...

6 minutes read.

How to make use of the Wildcard in Excel

In this modern world, it is known that the wildcard characters in Microsoft Excel are considered to be the most essential and unrated features of Microsoft Excel. Besides all these,...

8 minutes read.

Excel MID() Function

The MID() function in excel is used to return a specific number of characters from a text string starting at the position you specify. One can change the start of the string, thus...

1 minute read.

How to make use of the Excel Autofit in Excel

In Microsoft Excel, Autofit can be used to adjust and then fix the column and the respective row height to till the maximum limit until and unless it has the...

7 minutes read.