Split cells into multiple columns
📑 Split and merge settings
💡 Instructions for use
- The split mode is used to separate multiple contents in a column, such as splitting "province, city, district" into three columns, or splitting a label string into multiple label columns.
- Merge mode is used to combine multiple scattered columns into one column, such as combining last name and first name into a name, and combining area and number into a complete number.
- In-cell delimiters support commas, spaces, semicolons, dashes, underlines, and vertical lines; table column delimiters are independent of them and can be set separately.
- Setting an upper limit on the number of splits can prevent individual abnormal rows from splitting too many columns, and the excess will be merged into the last column instead of being discarded.
- Removing leading and trailing spaces before splitting can avoid redundant empty columns. It is recommended to keep it enabled.
- The data is only processed in the browser and is not uploaded or saved; if you need to keep the file, please copy or download the results.
The cells are split into multiple columns for "multiple items in one cell". After splitting, each content is separated into separate columns.
Three points to look at the data before splitting
- Whether the separators are consistent: When some lines use commas and some lines use spaces, it is recommended to unify them first and then split them, otherwise the number of columns will be uneven.
- Whether the content contains delimiters: If the name itself contains a comma, it will be accidentally cut. Special content needs to be processed first.
- Do you need to keep the original columns: This tool replaces the original columns with the split results, and the original content will be distributed in multiple new columns.
Two uses after splitting
The first is filtering and statistics: split the tags or categories into multiple columns to count the frequency by column; the second is standardized structure: organize the free text into fixed fields to facilitate import into the system.
The essence of splitting is to find the separation mark: the tool cuts each line into several segments according to the specified characters, and then puts them into the corresponding columns in order. If the markers are chosen correctly, the result will be neat; if the markers are chosen incorrectly, the number of columns will fluctuate.
Before splitting, it is recommended to confirm whether the delimiter also appears inside the data. For example, if the remarks contain commas, splitting by commas will create an extra column. If you encounter this situation, you can first change to less common symbols, or clean up the remark content first.
It is recommended to confirm the rules with a few lines of samples before processing the full amount of data. Once the rules are determined, do not change them midway.
After the rules are determined, it is recommended to run ten lines of samples before running the full amount of data.
If the separators are not uniform, unify them first, otherwise the numbers of rows and columns will be uneven.
📖 Glossary
- sort
- Split multiple contents in a cell according to separators and put them into adjacent columns.
- Merge columns
- Use connectors to combine the contents of multiple columns into one column in order. The original columns can be retained or removed.
- cell separator
- The character used to separate multiple contents inside a cell and the column separator of the table are two different things and need to be set separately.
- Column separator
- Characters used to divide table columns. Tab characters are used for content copied by spreadsheet software, and commas are used for comma-delimited files.
- Fill empty cells
- When the number of splits in each row is inconsistent, fill in the empty columns according to the maximum number to ensure a neat table structure.
- Split cap
- Limit the maximum number of columns that can be split at a time, and merge the excess into the last column to prevent abnormal rows from cluttering the table.
- tag string
- A group of tags connected with delimiters, such as comma-separated keywords, which can be split into multiple columns.
- connector
- The character inserted between the contents of each column when merging, which can be a space, a comma, a dash, or an empty space.
- Data cleaning
- A common process for organizing data, sorting and merging are often used in conjunction with steps such as removing spaces and removing duplicates.
- structural consistency
- The number of columns in the entire table remains the same, which is a prerequisite for the table to be read and imported correctly.
🔗 All keywords and tutorials
❓ FAQ
- Will the original column be retained??
- Instead of retaining separate original columns, the original content will be distributed among multiple new columns after splitting. The original data backup can be retained when the original is needed.
- What to do with the null values removed??
- Null values at the end will be removed; null values in the middle will be retained as empty cells to maintain positional correspondence.