Created attachment 37859 [details] origin file When remove row contains master shared formula. It now make another row the master. so excel report file contains corrupt shared formulas. I attached the test file to reproduce this bug.
Created attachment 37860 [details] Test program
Created attachment 37861 [details] the result file contains error.
trying r1894089
the change will appear in POI 5.1.0