You can get around this problem by using dynamic link estimation using INDIRECT .
The INDIRECT function evaluates the value of the cell, where the cell to be evaluated is extracted from the value of another cell.
For instance,
This will display the target cell from A1 and show its value in A2.
In Java, you can customize a template in which you create a separate sheet (for example, "indirect Ref") to control indirect ones. Whenever you write an external link to a cell, you instead write INDIRECT (xx) and place the link in cell xx on the "indirect Ref" sheet. Given that Poi are basically interfaces, you can do this transparently without any code changes in the code of the java table.
Excel also has an EVALUATE macro that dynamically evaluates formulas that will make it even easier to work, but this is officially undocumented (but widely documented elsewhere!), And it may not be supported in all versions of Office.
Hope this helps!
source share