---
title: Colspan/Cell Merge
description: "This function joins multiple neighboring cells into a single larger cell. To merge multiple cells in a row, you must give your cells a valueas**\"#colspan#,\"** and then see the selected cell merge with the subsequent cells. *******Please note that this…"
url: "https://www.ninjatables.com/docs/colspan-cell-merge/"
updated: "2025-06-02"
category: Advanced Mode (Classic Table Builder) / Customized Settings
---

# Colspan/Cell Merge

This function joins multiple neighboring cells into a single larger cell. To merge multiple cells in a row, you must give your cells a valueas**"#colspan#,"** and then see the selected cell merge with the subsequent cells.

*******Please note that this function will operate with **Advanced Table (Legacy) only.**

## How to Merge Table Cells

- To apply this Cell Merge feature, you have to create a table. Or you can edit any of the existing tables.

- First, select a table and find the cells you want to merge.
- Remember that when you merge columns, the cell merge option always takes thecorresponding cell value into one single row.

![](https://ninjatables.com/wp-content/uploads/2022/09/add-colspan-01.webp)

- As you can see in the image above, we here want to merge some cells right below the header to create a separate header and another one in the middle of the table. Also, 2 cells at the end of the table will be merged into one using the same #colspan#.

You will see the trick after you complete this step. The columns will merge automatically only in that particular row.

Here's how the table looks.

![colspan in table](https://ninjatables.com/wp-content/uploads/2023/07/rowspan-1024x457.png)

Also, You can apply the**#colspan#**instead of the column title (Job Position), and the column header will be merged with its previous one.

![](https://ninjatables.com/wp-content/uploads/2022/09/Collapain-in-title-02.webp)

Here's an example of how merged table cells using "colspan" on the header looks like.

![colspan in table](https://ninjatables.com/wp-content/uploads/2023/07/rowspan-1024x457.png)

Go to **Table Configuration → Rendering Settings**and set your table to **Advanced Table (Legacy)**. This will enable you to apply the Cell Merge feature in your Ninja Table. See [Rendering Settings](https://ninjatables.com/docs/table-rendering-settings/).
