PDFのミカタ

結合したセルの扱い

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 確かめる
  • 直す

Excelの表には、見栄えのために、セルを結合していることがあります。Excelの表をHTML・Markdownにする で変換すると、結合したセルは、左上の1つだけに文字が入り、ほかのセルは空になります。

変換のルール

HTMLの結合の指定は、含まれません。見た目が、元の表と違うことがあります。

起こりやすいこと

手順(きれいに変換するには)

  1. 変換する前に、Excelで結合を解除する。
  2. 空になったセルに、同じ文字を入れる。
  3. このツールで、変換する。
  4. 変換後の表を確かめる。

結合を解除するコツ

  1. 結合したセルを選ぶ。
  2. 「セルを結合して中央揃え」を押して、解除する。
  3. 空になったセルに、文字をコピーして入れる。

結合しないほうがよい理由

変換後に直す方法

HTMLで、結合したままにしたい場合は、変換後のHTMLに、colspan(列の結合)や rowspan(行の結合)を手で書き足します。

向いている場面

例

月ごとの集計表で、「第1四半期」が3か月分結合されていた。変換すると、1月だけに文字が入ったので、Excelで結合を解除して、各月に入れ直してから、やり直した。

つまずきやすい点

よくある質問

結合のまま、変換できますか?

結合の見た目は、含まれません。解除するのが確実です。

まとめ

結合セルは、左上だけに文字が入る。変換前に解除しておくと、きれいにできます。

Excelの表をHTML・Markdownにするを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

How Merged Cells Are Handled

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Check
  • Fix

Excel tables sometimes have merged cells for looks. When converted with Convert an Excel Table to HTML or Markdown, a merged cell's text goes only into the top-left one, and the other cells become empty.

Conversion rule

HTML merge attributes are not included. The look may differ from the original table.

What commonly happens

Steps (to convert cleanly)

  1. Before converting, unmerge cells in Excel.
  2. Fill the now-empty cells with the same text.
  3. Convert with this tool.
  4. Check the converted table.

Tips for unmerging

  1. Select the merged cell.
  2. Press "Merge & Center" to unmerge.
  3. Copy the text into the emptied cells.

Why not to merge

How to fix after converting

If you want to keep merging in HTML, add colspan (column merge) or rowspan (row merge) by hand to the converted HTML.

Good for

Example

In a monthly summary, "Q1" was merged across three months. After converting, only January had the text, so I unmerged in Excel, re-entered it for each month and redid it.

Common stumbling blocks

Frequently asked questions

Can it convert keeping the merge?

The merged look isn't included. Unmerging is the reliable way.

Summary

For merged cells, only the top-left gets the text. Unmerge before converting for a clean result.

Use "Convert an Excel Table to HTML or Markdown" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides