Comment les cellules fusionnées sont gérées
Points clés
- Vérifiez
- Corriger
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
- A merged cell's text goes only into the top-left cell.
- The other cells become empty.
HTML merge attributes are not included. The look may differ from the original table.
What commonly happens
- A "Category" cell merged across 3 rows → only the first row holds "Category"; rows 2 and 3 are empty
- A table title merged across all columns → only the first column holds the title
Steps (to convert cleanly)
- Before converting, unmerge cells in Excel.
- Fill the now-empty cells with the same text.
- Convert with this tool.
- Check the converted table.
Tips for unmerging
- Select the merged cell.
- Press "Merge & Center" to unmerge.
- Copy the text into the emptied cells.
Why not to merge
- Sorting and filtering don't work well
- Empty cells get in the way when handling it as data
- It breaks easily when pasted into web pages or systems
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.
Convient pour
- Converting clean tables without merged cells
- Extracting just the data from tables that contain merged cells
Exemple
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
- The text seems to have vanished: when merged, everything except the top-left is empty.
- Columns shift: unmerge before converting.
Frequently asked questions
Can it convert keeping the merge?
The merged look isn't included. Unmerging is the reliable way.
En résumé
For merged cells, only the top-left gets the text. Unmerge before converting for a clean result.
Utiliser « Convertir un tableau Excel en HTML ou Markdown » (gratuit)Outils complémentaires
- Convertir Excel en CSV ou JSON: Convertissez une feuille Excel en CSV, TSV ou JSON.
- Convertir Word en HTML: Convertissez le texte de Word en HTML.
- Convertir CSV et JSON: Convertissez instantanément entre CSV et JSON.
Si ce guide vous a aidé, un petit pourboire nous ferait très plaisir.
Laisser un pourboire (300 ¥)Offrir un cadeau (liste d'envies Amazon)