Column Merger
Advanced data preparation tool to join text columns into single strings. Features empty value handling, custom delimiters, and bulk processing for CSV/Excel data.
About
Data hygiene often requires flattening multidimensional structures into linear formats. This Column Merger addresses the specific engineering challenge of concatenating distinct data fields into a single string per record. This process is frequently required when preparing datasets for legacy system imports, constructing composite primary keys, or formatting mailing lists from raw spreadsheet dumps (Tab-Separated Values). Precision is non-negotiable here; a misplaced delimiter or a mishandled null value can corrupt an entire dataset.
Standard spreadsheet software relies on volatile formulas like CONCATENATE or TEXTJOIN, which are prone to reference errors when rows are sorted or filtered. This tool decouples the data from the logic. It operates on raw text, applying a uniform transformation rule across the entire set. It explicitly handles the Null Value Problem - deciding whether an empty cell should result in a double delimiter (preserving column alignment) or be skipped entirely (preserving readability). This distinction is critical for generating SQL INSERT statements or strict CSV files.
Formulas
The merging logic can be defined formally as a transformation of a row vector r into a scalar string S. Let the row contain n columns C = {c1, c2, ..., cn}.
Where d is the delimiter and + represents string concatenation. The function wrap applies optional enclosing characters (quotes). If the "Skip Empty" condition is true, the term becomes:
Reference Data
| Scenario | Input Structure | Delimiter Strategy | Resulting Pattern |
|---|---|---|---|
| CSV Generation | Value1, Value2 | Comma (,) | Value1,Value2 |
| TSV (Excel) | DataA, DataB | Tab (\t) | DataA DataB |
| SQL Statements | ID, Name | SQL Syntax | (ID, 'Name') |
| Log Parsing | Time, Level, Msg | Pipe (|) | Time|Level|Msg |
| Composite Key | Region, StoreNum | Hyphen (-) | Region-StoreNum |
| Full Name | First, Middle, Last | Space (Skip Empty) | First Last |
| JSON Array | Item1, Item2 | Quote + Comma | "Item1", "Item2" |
| Path Building | Folder, File | Slash (/) | Folder/File |