Hi,

I will write a formula in Excel with WRITE CELL.

It is a formula “=IF(AX”+cntRow.ToString+"<>"+" “+”,2,ROUND((AG"+cntRow.ToString+")))"

I think it doesn’t work because there is a <> in it. If I do the same formula with = it won’t work either.

why is this formula not working?

cnt.Row.ToString is counting the rows.

This is the error:

Hope someone can help me soon with this problem

Thanks.