Confluence tables with merged cells in Excel

Merged cells are where copying a Confluence table into Excel goes wrong. Here is what happens, and how to choose between keeping the merge and repeating the value.

What goes wrong when you paste

When you copy a table, the browser puts it on the clipboard as HTML, and a merged cell is described as one cell that spans several rows or columns. Excel can read that. The trouble starts when a table also has cells with more than one line: Excel turns each line into a new row and merges cells around it to keep the table rectangular. The real merged cells and the extra ones Excel adds get mixed up, and on a long table the result is hard to untangle.

In our test, a 40-row table with one merged cell and five two-line cells became 72 rows in Excel for Mac, and some values ended up in the wrong column.

TableFerry reads the clipboard the way Confluence meant it: one Excel row per table row, line breaks inside the cell, and every merged cell exactly where it was.

Keep merged, or repeat the value?

When your table has merged cells, TableFerry asks what you want in Excel.

Keep merged

The sheet looks like the Confluence table: a cell that spans four rows is one merged cell over four rows. Choose this when people will read the sheet, print it or put it in a report.

Unmerge and repeat the value

The merge is removed and the value is written into every row (and column) it covered. The header gets filter arrows. Choose this when you will work with the data:

For example, if “Engineering” is merged over four team rows, repeating it gives each of the four rows its department, so filtering on Engineering shows all four.

CSV files have no merged cells at all, so TableFerry’s CSV download always repeats the value.

Paste your table, switch between the two options and compare them in the preview before you download.

Convert a table

Already pasted into Excel? Fixing it by hand

If you have a sheet with merged cells and want the value repeated, Excel can do it in a few steps:

  1. Select the column with the merged cells and click Merge & Center to unmerge. The value stays in the top cell; the rest become empty.
  2. With the column still selected, open Go To Special (F5 → Special) and choose Blanks.
  3. Type =, press the up arrow, then Ctrl+Enter. Every empty cell now copies the cell above it.
  4. Copy the column and paste it back as values, so the formulas become text.

This fixes merged cells, not rows that Excel split because a cell had more than one line — those have to be joined back together by hand.

A Confluence quirk: merged cells keep everyone’s text

When you merge cells in Confluence, it keeps the text of every cell you merged, one under the other. Merge twelve cells that all say “Engineering” and the merged cell holds “Engineering” twelve times, on twelve lines. Pasted straight into Excel, you get all twelve.

TableFerry spots this: when a merged cell holds the same text repeated, it keeps the text once, in Excel and in CSV, and says so in the preview. This matters most when you repeat the value for sorting — otherwise every row would get twelve lines of “Engineering”.

Related