Data Import & Export

How to Extract Values from a Comma-Separated String in Excel

Emma BrownEmma Brown Nov 3, 2026 869 views

Question details

The user needs to separate and extract specific values from a comma-delimited string in an Excel cell into individual columns.

How to Extract Values from a Comma-Separated String in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Managing imported or raw data where multiple values (such as U2, U3) are combined within a single cell and separated by commas.
Observed behavior
Values are currently grouped in one cell as a continuous text string and need to be separated into adjacent columns to be referenced or filtered individually.
Before you start

Ensure there are enough empty columns to the right of your target data, as extracting and splitting values will overwrite any existing data in adjacent cells.

Solution 1Recommended

Use the Text to Columns Wizard

The most straightforward native Excel tool for splitting comma-separated text permanently across multiple columns.

This method is ideal for a one-time data conversion. It permanently splits the text into separate columns based on the delimiter you specify.

1
Select the data

Highlight the cells or the entire column containing the comma-separated strings.

2
Open Text to Columns

Navigate to the 'Data' tab on the Excel ribbon and click on 'Text to Columns' in the Data Tools group.

3
Choose Delimited

In the Convert Text to Columns Wizard, select 'Delimited' as the original data type and click 'Next'.

4
Select Comma delimiter

Under the Delimiters section, check the box for 'Comma'. You will see a preview of how the data will be split. Click 'Next'.

5
Finish the wizard

Choose the data format for your columns and click 'Finish' to complete the extraction.

Use the Text to Columns Wizard
Preserve original data: To keep your original comma-separated string intact, change the 'Destination' cell address in the third step of the wizard to point to an empty column.
Easily Manipulate Data

Use WPS Spreadsheet to Split Text Strings

WPS Spreadsheet offers the exact same robust features as Microsoft Excel, including the Text to Columns tool and text-splitting functions, allowing you to manipulate and organize comma-separated data effortlessly for free.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your comma-separated strings.
  2. 2. Highlight the text: Select the column or specific cells you want to extract values from.
  3. 3. Access Text to Columns: Click on the 'Data' tab at the top menu and select 'Text to Columns'.
  4. 4. Split by comma: Choose 'Delimited', check 'Comma' as your delimiter, and click 'Finish' to instantly extract the values into separate columns.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Intuitive Text to Columns wizard for easy data separation.Free, lightweight, and fast to process large datasets without lag.
microsoft office alternative - wps office

Frequently Asked Questions

Can I extract a value based on its specific position in the comma-separated string?

Yes. The easiest method is to use Text to Columns or TEXTSPLIT to separate all values into adjacent cells, and then simply reference the specific column you need (e.g., the 2nd column for the second value). For older Excel versions without TEXTSPLIT, you can use a complex combination of MID, FIND, and SUBSTITUTE functions to target specific nth positions.

What if my values are separated by a comma and a space?

In the Text to Columns wizard, you can check both 'Comma' and 'Space' under the Delimiters section. Be sure to also check the 'Treat consecutive delimiters as one' option to ensure the data is cleanly extracted without leading spaces in the new cells.

Does Text to Columns update automatically if the original cell changes?

No, Text to Columns is a static, one-time operation. If your original data updates frequently and you need the split cells to update as well, you should use the dynamic TEXTSPLIT function instead.