Click here to Skip to main content
14,774,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
I have converted a datata table to excel using closed xml and I have a column for calculating percentage and I did something like this

dt["Percentage"]="p2/f2 *100";


and the resultant is that instead of calculating the formula the text (p2/f2 * 100) is displayed
on the cells what should I do to calculate the percentage formula
Posted
Comments
John d. Bartels 19-Feb-13 22:55pm
   
In the excel formula, there must be an equals sign:

dt["Percentage"]="=p2/f2 *100";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900