Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add subtotals to a sheet? #805

Open
tfonfara opened this issue Mar 14, 2021 · 2 comments
Open

How to add subtotals to a sheet? #805

tfonfara opened this issue Mar 14, 2021 · 2 comments

Comments

@tfonfara
Copy link

Is there any way to add subtotals to a sheet?

Excel-table-05

SetRowOutlineLevel doesn't seem to help as it doesn't create the subtotals.

Thank you!

@xuri
Copy link
Member

xuri commented Mar 15, 2021

Thanks for your issue. SetRowOutlineLevel just group rows, and you can use SetCellFormula to set SUBTOTAL formula for the cell.

@tfonfara
Copy link
Author

Actually the "subtotal" method in excel does automatically grouping that can be removed or adjusted very easy. If I use SetCellFormula this means that (1) I have to do all the calculations manually, also the grouping and the summarization and (2) that this is "hardcoded" in the table, it can't be switched off or modified in any way (which is a big benefit of the original subtotal feature).

Maybe to be precise, I'm not referring to the subtotal function, instead I'm talking about the subtotal command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants