Merge rows and advanced selection
Merge cell text without losing content, aggregate rows by keys, and target cells/rows by content, type, date, formatting, or visibility.
These tools solve the hardest spreadsheet-editing problem: changing only the right rows or cells while preserving enough evidence to trust the result.

Merge cells without losing text
Normal spreadsheet merge behavior often keeps only one value. XLTab's merge/combine rows tools can concatenate cell text using a delimiter so content is preserved. Use this for notes, address fragments, multi-part names, or audit comments.
| Option | Choices |
|---|---|
| Merge direction | Merge columns within each row, merge rows within each column, or merge the entire rectangular range. |
| Delimiter | Text inserted between preserved values. |
| Values to keep | All values, unique values only, or first nonblank value. |
| Blank cells | Skip blank cells or include blank positions. |
Existing merged regions, formulas, and rich text are skipped. Formatting is kept from the top-left or first formatted nonblank cell. Merging cells is a destructive edit to the selected range even though text is preserved in the merged output.
Group rows by keys
Use it when: several rows represent the same entity and should become one consolidated row.
- Choose one or more key columns as letters, such as
AorA,B. - Choose the default aggregation for non-key columns; use column overrides such as
B=sum, C=maxfor exceptions. - Set the concat delimiter and whether the first row is a header.
- Preview groups, aggregate counts, and conflicts.
- Apply only after confirming that the key really identifies the same entity.
| Aggregation | Meaning | Typical use |
|---|---|---|
| Concatenate | Joins text using the selected delimiter. | Notes, labels, categories. |
| First | Keeps the first encountered value. | Stable descriptive fields. |
| Last | Keeps the last encountered value. | Latest status or updated field. |
| Count | Counts values/rows as configured. | Frequency or evidence counts. |
| Sum | Adds numeric values. | Amounts, quantities. |
| Min / Max | Keeps smallest/largest value. | Dates, thresholds, ranges. |
Combine rows writes a new sheet; source rows are not modified. Key columns are output first, followed by source column order. This makes the operation safer than in-place row reduction, but the output still requires review.
Advanced selection/filter

Advanced selection is a targeting tool. It can select cells or rows by content and characteristics rather than requiring manual filtering and visual scanning.
| Action label | Behavior |
|---|---|
| Select matching cells | Selects cells matching criteria such as blank/nonblank, formula, error, merged, max/min, every Nth row/column, font/background color, bold, italic, or strikethrough. |
| Select matching rows | Selects rows matching value/formula/error, direct formatting, text-length, weekday/weekend, or specific-date criteria. |
| Isolate matching rows by hiding others | Uses explicit row hiding, not native AutoFilter. Existing AutoFilter state is left unchanged; already hidden rows remain hidden. Optional header row stays visible. |
| Copy visible cells only | Copies visible rows and columns to the clipboard as tab-separated text; formatting and formulas are not copied. |
| Unhide rows in range | Reveals every hidden row in the input range, including rows hidden before this tool was used. |
For matching actions, Restrict matching to visible rows/columns prevents hidden structure from being selected unintentionally. Formatting criteria use direct cell formatting only, not conditional-formatting results.
| Targeting dimension | Examples |
|---|---|
| Content | Contains text, exact match, blank/non-blank, regex-style matching where supported. |
| Type | Text, numeric, date, formula, error-like values. |
| Dates | Before/after or date-range-oriented conditions. |
| Formatting | Cell formatting characteristics where exposed by the workbook model. |
| Visibility | Visible cells only or row isolation behavior. |
Isolate rows and copy visible cells
Row isolation narrows the worksheet view to matching rows so you can inspect a subset in context. Copy-visible-cells behavior avoids carrying hidden rows into downstream paste/export workflows. This is especially useful after filters or advanced selection operations.
Use selection as input to cleanup
The “Last advanced selection” scope in Data cleanup is the key integration. It lets you target a cleanup transformation to the subset you just selected instead of broad sheet-wide application.
- Run advanced selection using the business rule that defines the target rows.
- Inspect the selected/isolated result.
- Open Data cleanup and choose the last advanced selection scope.
- Preview and apply the transformation.
Spotted an error or an outdated step? Report a docs issue.