MOSS 2007: Error in description of IF-function for formulas in calculated columns

The syntax of the IF-function is always given as

=IF(Column1<=Column2, "OK", "Not OK")

However using the function like that causes a syntax-error.
The correct syntax is

=IF(Column1<=Column2; "OK"; "Not OK")
(Note the semicolons instead of the commas!)

It took me about an hour fiddling with different formulas until I tried out the semicolons by accident and – surprise, surprise – suddenly it worked!
I hope this blog entry prevents you from falling into the same trap
Smiley

This entry was posted in SharePoint. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s