Sample workbook. Detection runs on load and re-runs when you change the sheet or the toggle; the split happens locally in your browser, nothing is uploaded. Toggle Header-aware merge off on the Expenses - Q3 sheet to watch the naive split slice a table at its subtotal gap.