Are you creating a CSV file? If so, consider writing the actual Excel file. (I assume that you are importing into Excel, since you used the term "cell", which does not make sense in CSV.)
Here is a link on how to do this: Create an Excel file (.XLS and .XLSX) with C #
If you do not create a CSV, and if you want to add a new calculated value (instead of a formula that will dynamically change as the cell values โโchange), you can do this quite easily by reading in a CSV file, parsing each line is enough to get the values โโyou need for your formula, calculating the result and adding it (after the decimal point) to each line before writing the line to a new file.
Ann L.
source share