Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Commented Unassigned: Replace a formula with its result [13326]

$
0
0
Hi,
I have an excel that is filled with formulas right through a second tab which is hidden, then I want my first tab shows the values in the cells, not the formulas or references from where the information is obtained.

I were trying using this __sheet0.GetRow(5).GetCell(1).SetCellFormula(null)__ but it sets the cell to null or empty and i need the value converted from the formula.

Thanks in advance
Yoni Valdez
Comments: ** Comment from web user: tonyqus **

In this case, you should use XSSFFormulaEvaluator or HSSFFormulaEvaluator to evaluate the formula and set the result to the cell you want. Setting cell to null doesn't work at all


Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>