How to Extract Values from a Comma-Separated String in Excel
Question details
The user needs to separate and extract specific values from a comma-delimited string in an Excel cell into individual columns.

- 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.
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.
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.
Highlight the cells or the entire column containing the comma-separated strings.
Navigate to the 'Data' tab on the Excel ribbon and click on 'Text to Columns' in the Data Tools group.
In the Convert Text to Columns Wizard, select 'Delimited' as the original data type and click 'Next'.
Under the Delimiters section, check the box for 'Comma'. You will see a preview of how the data will be split. Click 'Next'.
Choose the data format for your columns and click 'Finish' to complete the extraction.

Use the TEXTSPLIT Function
A dynamic formula approach available in newer versions of Excel to automatically split text whenever the source updates.
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. Open your dataset: Launch WPS Spreadsheet and open the document containing your comma-separated strings.
- 2. Highlight the text: Select the column or specific cells you want to extract values from.
- 3. Access Text to Columns: Click on the 'Data' tab at the top menu and select 'Text to Columns'.
- 4. Split by comma: Choose 'Delimited', check 'Comma' as your delimiter, and click 'Finish' to instantly extract the values into separate columns.

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.




