I have cell formula like C1+C2.suppose i use getcellformula()method it returns the String C1+C2. Now i want to split the String by operator and get the each cell Address separately.Is there anyway to find out the Excel formula operator and get the each cell address separately. How i do?
Please reply me…
Saravanan.p
This answer to your other question will answer this as well.
A formula
=D4+D6when parsed viaFormulaParsergivesRefPtg points to the cell reference
D4, and+isAddPtgNote POI uses the format of Reverse Polish Notation i.e. it puts which puts the operator in the post-fix position.