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

Commented Unassigned: Problem inserting Conditional Formulas [9332]

$
0
0
Hi,

I finding issues in inserting conditional formulas in closed xml.

For Example:
If I want to insert following formula into excel sheet
=IF(A1 > 0, Yes, No)

It appears as =IF(A1 > 0 ; Yes ; No) which is not supported in Microsoft Excel. It says formula is corrupt.

Can anyone help me??


.............................................................................................................................................

Thanks for the reply MDeLeon...

I even tried this. But the actual problem is SetFormulaA1 method is replacing the ","(Comma) with ";"(Semicolon) in the syntax while inserting the formula into the excel sheet, which is wrong in MS Excel.

SetFormulaA1("IF(A1>0,TRUE,FALSE)")
What I am getting from SetFormulaA1: IF(A1>0; TRUE; FALSE) //this doenst work in MS excel

MS Excel Syntax: IF(A1>0, TRUE, FALSE)

How to get the formula as it is...



Comments: What's your locale?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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