Reading the documentation, I’m led to believe Google Docs should be able to handle if-statements in the following format (straight from the documentation):
IF(test, then_value, otherwise_value)
So, as a test, I try the following:
=IF(2>1, 2, 1)
This should obviously print 2 since two will always be greater than one. However, this throws me an error. So, I try the following instead:
=IF(1=1, 1, 1)
This also gives me an error.
Obviously I’m doing something wrong here, unless Google stopped supporting if-statements in their docs. Can anyone help?
Google has obviously changed this without changing the proper documentation. According to the documentation, as of writing this, the correct way to do this is as in my question:
However, if you start writing “=IF” in Google Drive, a popup guides you in the correct direction, and it seems they have changed the syntax to:
Note the use of semicolons instead of commas. That’s it.