×

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

Thermometer Chart in the Microsoft Excel

It was known that the thermometer chart is basically based on a single data point and that in turn could be used to show the achievement percentage. It primarily depends...

7 minutes read.

Copying formula in Excel

Copy a formula in Excel While working with statistical calculations in Microsoft Excel, the user uses formulas to calculate the mathematical operations. Implementing these formulas manually for each data is a...

3 minutes read.

Date and Time in Excel-VBA

In this modern world of computer technology the creation of Excel reports are termed to be the crucial elements, and the particular type of programs that helps us in performing...

6 minutes read.

Excel HLOOKUP() Function

Excel HLOOKUP() Function The HLOOKUP() function in excel is used to search a value in the topmost row of a table and then return a corresponding value in the same column for the specified...

2 minutes read.

Excel Unique Values

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

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 Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

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....

4 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.

Operators in Excel

In MS Excel, operators are used to defining the operation you want to perform on the used elements or between variables. There are four types of operators: Arithmetic operators, Comparison...

4 minutes read.

How to Delete Row in Microsoft Excel?

Individuals can quickly delete the respective row from the particular Microsoft Excel whenever they want, according to their needs and requirements. In this tutorial, we will discuss the following things in...

7 minutes read.

What is a name box in Excel?

The name box in Microsoft Excel specifies a name for a single cell or a table. The name box is present in the top left corner, left to the formula...

4 minutes read.

Dependent Drop-down List in Excel

Excel forms are used to fetch data from the end user. When we have to give choices, we often use the drop-down feature of Excel. In this tutorial, we won’t...

7 minutes read.

Excel WEEKDAY() Function

The WEEKDAY () function in excel returns number from 1 (Sunday) to 7 (Saturday) identifying the day of the week based on its date. This function Default return is - Sunday would be...

1 minute read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Quarter Dates in Excel

Excel is a combination of numeric values and alphabets. The user's project consists of the date depending upon their accounting and financial analysis. Sometimes there is a need to find...

4 minutes read.

Paste Options in Excel

Excel spreadsheet is a combination of numeric values, alphabets which is used for calculation purposes. While performing the calculations, there is a need to repeat the data for further process....

6 minutes read.

Calculating the Last Day of the Month in Excel

In Microsoft Excel, various functions exist to calculate the date and time from the current date to the past and future. Among multiple tasks in this tutorial, let's see how...

3 minutes read.

Excel Themes

Microsoft Excel contains various features to enhance the appearance of the worksheet like text color, font size and general outlook of the objects. The users are provided with multiple theme...

3 minutes read.

Error Bar in Microsoft Excel

Error Bar is considered the essential term used in Microsoft Excel. It is defined as the graphical representation of the respective data used to denote the errors. The Error bars can...

7 minutes read.