亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
Download the Excel Workbook below to follow along and understand how to split strings in Excel –
Download excel workbookSplit-String-in-Excel.xlsx
Method 1: Text to Column
Method 2: LEFT, RIGHT & MID Function
Method 3: Text Functions
Method 4: TEXTSPLIT Function
Method 5: Flash Fill
Home Software Tutorial Office Software 5 Best Ways to Split String in Excel (Free Examples)

5 Best Ways to Split String in Excel (Free Examples)

May 27, 2025 am 03:27 AM

Dealing with unformatted and unclean data in spreadsheets can be challenging, especially when trying to apply filters, sort, or create Pivot Tables. Thankfully, Microsoft Excel offers various functions and features to help split combined texts into separate columns, enhancing data management efficiency.

In this article, we'll explore the top 5 methods for splitting strings in Excel, complete with free step-by-step examples and a practice workbook.

Let's delve into these methods in detail!

Download the Excel Workbook below to follow along and understand how to split strings in Excel –

Download excel workbookSplit-String-in-Excel.xlsx

Table of Contents

Method 1: Text to Column

Have you ever needed to split a column of employee full names into separate columns? Excel offers an excellent solution with the Text to Column feature.

This feature enables you to split text into separate columns using a delimiter such as a comma, space, or semicolon. Here’s how to use Text to Columns to split strings in Excel:

STEP 1: Select the range containing the full names of the employees.

5 Best Ways to Split String in Excel (Free Examples)

STEP 2: Navigate to Data > Text to Columns.

5 Best Ways to Split String in Excel (Free Examples)

STEP 3: In the Convert Text to Columns dialog box, choose Delimited and click Next.

5 Best Ways to Split String in Excel (Free Examples)

STEP 4: Choose the delimiter for the data. In this case, it's Space. Check the Data Preview at the bottom and then click Next.

5 Best Ways to Split String in Excel (Free Examples)

STEP 5: Select cell $B$2 as the destination and click Next.

5 Best Ways to Split String in Excel (Free Examples)

STEP 6: Click Finish.

5 Best Ways to Split String in Excel (Free Examples)

Now, the full names of the employees are split into two columns: First name and Last name.

5 Best Ways to Split String in Excel (Free Examples)

Method 2: LEFT, RIGHT & MID Function

For data in the format AL56442020, where:

  • AL represents the employee's initials,
  • 5644 is the employee ID,
  • 2020 is the year of joining,

we can use the LEFT, RIGHT, and MID functions to extract these parts. Here's how to split strings in Excel using these functions:

STEP 1: Use the LEFT function to extract the employee's initials (the first 2 characters).

=LEFT(A2,2)

5 Best Ways to Split String in Excel (Free Examples)

STEP 2: Use the MID function to extract the employee's ID (4 characters starting from the 3rd position).

=MID(A2,3,4)

5 Best Ways to Split String in Excel (Free Examples)

STEP 3: Use the RIGHT function to extract the year of joining (the last 4 characters).

=RIGHT(A2,4)

5 Best Ways to Split String in Excel (Free Examples)

Method 3: Text Functions

To locate a specific text within a source text, you can use the FIND Formula. In this example, we have data with the first name, employee ID, and year of joining separated by line breaks. CHAR(10) in Excel represents a line break. We'll use the FIND function to determine the position of these line breaks.

Here's how to split strings in Excel to separate them into columns:

STEP 1: Use the following formula to extract the first name (all characters before the first line break).

=LEFT(A2,FIND(CHAR(10),A2)-1)

5 Best Ways to Split String in Excel (Free Examples)

  • The FIND function locates the position of the first line break.
  • Subtracting 1 excludes the line break from the result.
  • The LEFT function extracts all characters up to this position.

STEP 2: Use the following formula to extract the region (characters between the first and second line breaks).

=MID(A2,FIND(CHAR(10),A2) 1,FIND(CHAR(10),A2,FIND(CHAR(10),A2) 1)-FIND(CHAR(10),A2)-1)

5 Best Ways to Split String in Excel (Free Examples)

The MID function extracts the region with these arguments:

  • text – The source text in cell A2.
  • start_num – The starting position (position of the first line break plus 1).
  • num_chars – The number of characters to extract (difference between the second and first line break positions, minus 1).

STEP 3: Use the following formula to extract the sales amount (characters after the second line break).

=RIGHT(A2,LEN(A2)-FIND(CHAR(10),A2,FIND(CHAR(10),A2) 1))

5 Best Ways to Split String in Excel (Free Examples)

The RIGHT function extracts the sales amount with these arguments:

  • text – The source text in cell A2.
  • num_chars – The number of characters to extract (difference between the text length and the position of the second line break, plus 1).

Method 4: TEXTSPLIT Function

The TEXTSPLIT function allows you to split strings in Excel using a specified delimiter and display the results in multiple cells, either in columns or rows. It's a more versatile version of the Text-to-Column feature, available exclusively to Excel 365 subscribers.

The function's syntax is:

=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])

  • text – The text to split. Required.
  • col_delimiter – The delimiter for splitting across columns.
  • row_delimiter – The delimiter for splitting down rows. Optional.
  • ignore_empty – Set to TRUE to ignore consecutive delimiters. Defaults to FALSE. Optional.
  • match_mode – Set to 1 for case-insensitive matching. Defaults to 0 for case-sensitive matching. Optional.
  • pad_with – The value to pad the result with. Defaults to #N/A.

Here's how to use the TEXTSPLIT function to split strings in Excel:

STEP 1: Enter the TEXTSPLIT formula.

=TEXTSPLIT

5 Best Ways to Split String in Excel (Free Examples)

STEP 2: Enter the first argument, text.

=TEXTSPLIT(B1,

5 Best Ways to Split String in Excel (Free Examples)

STEP 3: Enter the second argument, col_delimiter. Leave it blank for row-wise splitting.

=TEXTSPLIT(B1,,

5 Best Ways to Split String in Excel (Free Examples)

STEP 4: Enter the third argument, row_delimiter. Use CHAR(10) for line breaks.

=TEXTSPLIT(B1,,CHAR(10))

5 Best Ways to Split String in Excel (Free Examples)

Repeat these steps for the region and salary columns. The rows will automatically fill with the desired results!

5 Best Ways to Split String in Excel (Free Examples)

Method 5: Flash Fill

Introduced in Excel 2013, Flash Fill is a handy feature that predicts and fills data based on your initial input. Once confirmed, it populates the rest of the rows quickly, eliminating the need for formulas and reducing manual effort.

Here's how to use Flash Fill to split strings in Excel:

STEP 1: Type the first name in cell B2.

5 Best Ways to Split String in Excel (Free Examples)

STEP 2: Select the range where you want the first names to appear (B2:B27).

5 Best Ways to Split String in Excel (Free Examples)

STEP 3: Go to Home > Fill > Flash Fill.

5 Best Ways to Split String in Excel (Free Examples)

The first names will be automatically filled.

5 Best Ways to Split String in Excel (Free Examples)

Repeat these steps for the region and salary columns to split the strings in Excel.

5 Best Ways to Split String in Excel (Free Examples)

The above is the detailed content of 5 Best Ways to Split String in Excel (Free Examples). For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why does Microsoft Teams use so much memory? Why does Microsoft Teams use so much memory? Jul 02, 2025 pm 02:10 PM

MicrosoftTeamsusesalotofmemoryprimarilybecauseitisbuiltonElectron,whichrunsmultipleChromium-basedprocessesfordifferentfeatureslikechat,videocalls,andbackgroundsyncing.1.Eachfunctionoperateslikeaseparatebrowsertab,increasingRAMusage.2.Videocallswithef

5 New Microsoft Excel Features to Try in July 2025 5 New Microsoft Excel Features to Try in July 2025 Jul 02, 2025 am 03:02 AM

Quick Links Let Copilot Determine Which Table to Manipu

What is the meeting time limit for the free version of Teams? What is the meeting time limit for the free version of Teams? Jul 04, 2025 am 01:11 AM

MicrosoftTeams’freeversionlimitsmeetingsto60minutes.1.Thisappliestomeetingswithexternalparticipantsorwithinanorganization.2.Thelimitdoesnotaffectinternalmeetingswhereallusersareunderthesameorganization.3.Workaroundsincludeendingandrestartingthemeetin

how to group by month in excel pivot table how to group by month in excel pivot table Jul 11, 2025 am 01:01 AM

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

How to use Microsoft Teams? How to use Microsoft Teams? Jul 02, 2025 pm 02:17 PM

Microsoft Teams is not complicated to use, you can get started by mastering the basic operations. To create a team, you can click the "Team" tab → "Join or Create Team" → "Create Team", fill in the information and invite members; when you receive an invitation, click the link to join. To create a new team, you can choose to be public or private. To exit the team, you can right-click to select "Leave Team". Daily communication can be initiated on the "Chat" tab, click the phone icon to make voice or video calls, and the meeting can be initiated through the "Conference" button on the chat interface. The channel is used for classified discussions, supports file upload, multi-person collaboration and version control. It is recommended to place important information in the channel file tab for reference.

How to Fix AutoSave in Microsoft 365 How to Fix AutoSave in Microsoft 365 Jul 07, 2025 pm 12:31 PM

Quick Links Check the File's AutoSave Status

How to change Outlook to dark theme (mode) and turn it off How to change Outlook to dark theme (mode) and turn it off Jul 12, 2025 am 09:30 AM

The tutorial shows how to toggle light and dark mode in different Outlook applications, and how to keep a white reading pane in black theme. If you frequently work with your email late at night, Outlook dark mode can reduce eye strain and

how to repeat header rows on every page when printing excel how to repeat header rows on every page when printing excel Jul 09, 2025 am 02:24 AM

To set up the repeating headers per page when Excel prints, use the "Top Title Row" feature. Specific steps: 1. Open the Excel file and click the "Page Layout" tab; 2. Click the "Print Title" button; 3. Select "Top Title Line" in the pop-up window and select the line to be repeated (such as line 1); 4. Click "OK" to complete the settings. Notes include: only visible effects when printing preview or actual printing, avoid selecting too many title lines to affect the display of the text, different worksheets need to be set separately, ExcelOnline does not support this function, requires local version, Mac version operation is similar, but the interface is slightly different.

See all articles