obsidian-simple-table-math icon indicating copy to clipboard operation
obsidian-simple-table-math copied to clipboard

Add setting to skip header row in calculations

Open Cattamer opened this issue 10 months ago • 0 comments

Summary

  • Adds a new "Skip header row" toggle in settings
  • When enabled, the first row of each table is excluded from vertical (^) calculations
  • Useful when header rows contain numbers that shouldn't be included in sums, averages, etc.

Problem

When table headers contain numbers (e.g., "Q1 2024", "Item #", or numeric column labels), these get included in vertical calculations like sum^ or avg^, producing incorrect results.

Solution

A simple toggle that, when enabled, starts vertical calculations from row index 1 instead of 0, effectively skipping the header row.

Test plan

  • [ ] Enable "Skip header row" in settings
  • [ ] Create a table with numbers in the header row
  • [ ] Verify that sum^, avg^, etc. exclude the header values
  • [ ] Disable the setting and confirm headers are included again

🤖 Generated with Claude Code

Cattamer avatar Jan 16 '26 21:01 Cattamer