Merge multiple columns into one
📑 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.
Multi-column merging combines multiple scattered columns into one column in a specified order, for example, surname and first name are combined into a name, and region and number are combined into a complete number.
The three parameters merged
- Which columns to merge: Fill in the column numbers in order, and the order determines the order of the splicing results.
- Connector: space, comma, dash or empty, usually selected according to the target scenario.
- Processing of remaining columns: Unselected columns are retained in the original order, and the merged results are appended to the last column.
Two uses after merging
The first is to generate text for display, such as combining the province, city and detailed address into a complete address; the second is to construct a unique key and splice multiple fields as the basis for deduplication and comparison. When it is necessary to judge by a unique key, the connector is recommended to select a symbol that does not appear in the field content.
Merging is the reverse operation of splitting: multiple columns are put back into one column according to specified symbols. It is often used to organize address books, generate import formats, or splice complete addresses. Before merging, make sure that there are no extra spaces in each column, otherwise double spaces will appear when you spell it out.
When merging, you can choose whether to skip null values: when a certain period is missing in the address, skipping null values can avoid two consecutive separators, and the result will be cleaner. If the downstream system requires the field position to be fixed, the space should be left empty.
After merging, it is recommended to check a few lines to confirm that there are no two consecutive separators or extra symbols at the beginning and end.
Before merging, clean up the spaces at the beginning and end of each column to avoid spelling out unnecessary spaces.
When used as a unique key, the connector must be a symbol that does not appear in the field content.
📖 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 columns be deleted??
- No. All unselected columns are retained, and the merged results are appended as new columns at the end.
- Can you put the merged result into a specified location??
- Tools are appended to the far right; if you need to adjust the position, you can drag the column order in the spreadsheet software.