Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: Setting Formula Is Doing Strange Things [9345]

$
0
0
We are setting multiple formulas throughout our process and all but 1 is working. I make this call:

ws.Cell(13, 3).FormulaR1C1 = "SUM(C8:C12)"

and it shows like this in Excel:

=SUM($H:$L)

If I manually key in the formula it works just fine and, again, the other SUM formulas are working just fine. See attached example.

Running version 0.73.0
Comments: This is perfectly normal behavior. In R1C1 notation C8 = "Column 8" = $H in A1 notation. C12 in R1C1 = "Column 12" = $L in A1 notation. You need to use FormulaA1 if you're going to use A1 notation.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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