Trying to do formula =IF([FIELD1]=[FIELD2],1). When I try to save the formula it gives me syntax error. Is it possible to achieve this with text?

The reason behind that is if texts match it would give 1 if doesn't then 0 after I would be calculating =SUM([Fields]).


I got a new problem now. Trying to separate text from numbers.

The Formula I am using:


and it keeps getting syntax error.

  • 1
    The problem was with comma instead of =IF([Field1]=[Field2], 1) I had to write =IF([Field1]=[Field2]; 1) that fixed it – Lukas Šliužas Feb 8 '19 at 14:07
  • You should do a new question for the new issue. – Joe McShea Feb 8 '19 at 15:53

Basic syntax for IF statement in calculated formula is:


So, try to write down your formula in above format.


Sometimes comma(,) does not work in formula (I am not sure but it is based on something language on your site). So in that case use semicolon(;) instead of comma(,).

For detailed information and references check my answer given in below link:

Sharepoint online list, calculated value not working

  • I found out that myself but thank you for informative response – Lukas Šliužas Feb 11 '19 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.