2

I am following this article: Examples of common formulas in lists

A simple sample is this:

=DATEDIF([Dato1],[Dato2],"d")

However when I save the column I get following error:

Sorry, something went wrong The formula contains a syntax error or is not supported.

If I just do this it works:

=[Dato1]-[Dato2]

However I need to calculate hours and days between two dates so I need some of the commands.

Any pointer what I am doing wrong?

2
  • Non-US regional settings? Use semi-colon instead of colon. (;) Commented Apr 19, 2021 at 9:13
  • Colon.. who am I. I meant comma of course. Commented Apr 19, 2021 at 10:47

1 Answer 1

3

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

Try using this:

=DATEDIF([Dato1];[Dato2];"d")
2
  • Worked! Thanks. Commented Apr 19, 2021 at 13:35
  • 1
    Thank for for the answer. Commented Jun 13, 2023 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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