tgrosinger / md-advanced-tables

A text editor independent library to enable formatting and Excel-style navigation, and spreadsheet formulas to Markdown tables.
MIT License
145 stars 30 forks source link

Select Destination Relative to First or Last Operator #83

Open the-arkhive opened 4 months ago

the-arkhive commented 4 months ago

This might already be something the plugin can do. I might just not be getting the formatting correct, but it wouldn't seem to be mentioned anywhere in the docs. The example I have is for making an invoice. I'd like a cell to show the pre-tax subtotal of the items in the invoice, then a cell below that calculating the tax, then a cell below that showing the total. I tried to achieve this with variations of @>-2$2 for example. The work around is just hard coding the specific cells, which is not the end of the world, but it would be really nice to have a generic formula I can include in my template for my invoices.

Any help would be greatly appreciated.