Web tables with merged cells or two header rows
Merged cells (colspan or rowspan) and stacked header rows do not map neatly to a flat CSV, so values can land one column off or headers can become two rows. Check the preview in LightCube Data Extractor before exporting, then fix the header row and fill merged values down in your spreadsheet.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Extract the table and look at the preview for shifted columns.
- Export CSV.
- Combine two header rows into one, such as "2025 Revenue".
- Fill down merged values: select the column, Go To Special > Blanks, type =cell above, Ctrl+Enter (Excel).
Spotting the problem
- Row lengths differ in the preview.
- A header like "2025" sits above two columns.
- Group labels appear once, then blanks below.
Google Sheets fill-down
Add a helper column with =IF(A2="", B1, A2) style logic, or use Data > Data cleanup for simple cases.
Alternative sources
Statistical sites often offer a flat CSV download for the same table; prefer it when available. See open data tables.
FAQ
- Does the extension unmerge cells?
- Check the preview; complex merges may need fixing in the spreadsheet.
- Why two header rows?
- The page uses stacked headers; combine them.
- Is Power Query helpful?
- Yes, Fill Down and Promote Headers handle this well.
Related guides
Updated 2026-11-11.