comma sort tool
📑 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.
Comma separation is the most commonly used column separation method: tag strings, keywords, and combination fields often use commas to separate multiple contents.
Three forms of comma separated data
- Label string: such as "red, large, ready stock". After being disassembled, each type of label can be counted separately.
- Combined fields: such as "province, city, district", can be used for hierarchical filtering after being separated.
- Multi-value fields: such as "Starring 1, Starring 2, Starring 3", which can be easily searched by person after being disassembled.
Two reminders when processing
First, Chinese and English commas must be distinguished. Full-width commas often appear in Chinese content, and they need to be replaced with half-width commas before splitting. Second, if the table itself is a comma-separated file, the column separator must be set to comma, and the separator in the cell must be changed to other symbols to avoid confusion.
The comma is the most common delimiter, and it is also the one with the most problems: commas are often included in name notes and product descriptions. If the original text uses quotation marks to wrap the entire paragraph, it means that the comma belongs to the content rather than the delimiter, and the quotation mark semantics must be retained during parsing.
Data exported from spreadsheet software usually has quotation marks escaped and can be split directly. If the data comes from manual sorting, it is recommended to replace the commas in the content with other symbols first, and then split by commas, so that the results are more controllable.
If the commas in the content cannot be cleaned, you can use semicolons or vertical bars as separators to avoid conflicts directly.
Chinese full-width commas are different from English half-width commas. They should be unified first and then separated.
📖 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
- Can full-width commas be recognized??
- It cannot be separated directly with half-width commas. It is recommended to replace full-width commas with half-width commas before performing column separation.
- What to do if there are empty columns after splitting?
- This is mostly caused by repeated delimiters or extra commas at the end. It is recommended to clean up the continuous delimiters in the data first.