Hongmu Notes

Split quantity upper limit setting

The upper limit on the number of splits is used to control the number of result columns: excess parts are merged into the last column without losing content.
100% Browser local processing 0 Data upload

📑 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 upper limit on the number of splits is used to control the number of result columns: excess parts are merged into the last column without losing content.

Why a cap is needed

Occasionally in real data, many items are crammed into one grid. If the grid is filled to the maximum value, all other rows will be forced to add a large number of empty columns, making the table wide and difficult to read. After setting the upper limit, the excess content will be merged into the last column, which ensures that the number of columns is controllable and data will not be lost. If necessary, those rows can be processed separately.

Three ideas for choosing the upper limit

  • According to the number of business fields: For example, the address is fixed at the three levels of province, city, and county, and the upper limit is set to three.
  • Based on the actual situation of most rows: take the number of common rows as the upper limit, and check abnormal rows individually.
  • According to subsequent processing capacity: When the number of columns that the downstream system can accept is limited, this limit shall prevail.

Limiting the number of columns can prevent delimiters in the content from causing redundant columns: after setting only the first three columns to be split, the entire content will remain in the last column, which not only protects the note information, but also keeps the number of columns neat.

This setting is particularly suitable for logs and interface return data. In this type of content, the first few paragraphs are usually fixed fields, and the following descriptions are arbitrary. After the number of columns is fixed, the downstream parsing rules can also be simplified a lot.

If you are not sure how many columns should be retained, you can set no limit first and then set an upper limit after observing the distribution of the number of columns.

After the number of columns is fixed, the downstream parsing script can also be written simpler.

The upper limit is set to the common number of most rows, and abnormal rows are checked and processed separately.

📖 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

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Will content exceeding the limit be lost??
No. The excess part will be merged into the last column, and the content will be kept intact.
How to know which lines were truncated?
The result area will give a prompt to trigger the upper limit. You can follow the prompt to check the contents of the last few columns.