=IF(OR(A1=1,A1=2),1690,0)
=IF(AND(A1=1,A1=2),1690,0)
formula = "IF( or (AO7=0,AO7>1000),1690,-1)";//格式是否正确
int flag=this._Cell.SetFormula(columnIndex, startRow, sheetIndex, formula);//返回0,设置失败
// 设置公式
/*
formula = "IF(AO7>0,1690,-1)";//ok
formula = "If(NOT(AO7>0),1690,-1)";//ok
formula = "IF(AO7=0 AND AO7>1000,1690,-1)";//ok
*/
int flag=this._Cell.SetFormula(columnIndex, startRow, sheetIndex, formula);