See https://lists.apache.org/thread/92vvvvwn25sjkbqo0rp8hlnkpb66lb84 reproduction code is in https://github.com/ManiacTwister/poi-table-bisect A formula like `SUBTOTAL(109,Table1[Heading2])` can get overwritten by POI and become `SUBTOTAL(109,Sheet0!B2:B6)`. One way to avoid this is to call this API on XSSFWorkbook. https://poi.apache.org/apidocs/dev/org/apache/poi/xssf/usermodel/XSSFWorkbook.html#setCellFormulaValidation-boolean- Setting it to false will stop POI rerendering your formulas. It is suspected that https://github.com/apache/poi/pull/269 may be making this cell formula rerendering worse for this scenario.
Thanks for your effort. I can confirm using the workaround `setCellFormulaValidation(false)` fixes the problem for my testcase as well as for my real use case. Let me know if i can help/test anything to fix the issue.
Thanks ManiacTwister. We do need to make POI changes. PR 269 has got some problems.
added r1910561