1. Home
  2. Computing & Technology
  3. Spreadsheets

Syntax

By Ted French, About.com

Definition: The syntax of an Excel function refers to the layout and order of arguments in functions. The IF function, for example, requires three arguments in the following order:
  • the logic test
  • the value if true
  • the value if false

If these are placed in a different order, the function will return an error message or give you an answer you were not expecting.

In addition to the order of arguments, the syntax also refers to the separators between the arguments. Most functions, including the IF function, use the comma as a separator.

The syntax of the IF function is:

=IF(logic test, value if true, value if false)

Note: Since the syntax of the IF function requires a comma to separate the three arguments of the function, you cannot use a comma as a separator in numbers greater than a thousand. If you do, Excel gives you an error message.

Explore Spreadsheets

More from About.com

  1. Home
  2. Computing & Technology
  3. Spreadsheets
  4. Spreadsheet Terms
  5. S
  6. Excel Function Syntax - Excel IF Function Syntax - Excel Function Syntax

©2008 About.com, a part of The New York Times Company.

All rights reserved.