An Excel function is a pre-built formula with a specific purpose. Excel provides hundreds of functions in various categories like dates and times, text, statistics, lookup, financial, engineering, etc.

Most Excel functions require specific inputs, called function arguments . For example, the DATE function creates a date value based on three arguments: year, month, and day:

=DATE(year,month,day)

Some functions don’t require any arguments. For example, the TODAY function returns the current date without any input:

=TODAY()

Formulas with multiple functions

=A1+A2

Formulas can include multiple functions and/or constants. For example, the following formula returns a date 30 days from today:

=TODAY()+30

The formula below uses three different functions to calculate current age based on a birthdate in A1:

=INT(YEARFRAC(A1,TODAY()))

See this page for a full explanation of this formula.

Formulas vs Functions

When you use a function in Excel, you are using a formula. So, by definition, all functions are formulas. However, you can create formulas in Excel without any functions at all. For example, this formula returns the sum of A1 and A2 without any functions.

A function argument is a specific input to a function. For example, the VLOOKUP function takes four arguments as follows:

=VLOOKUP (value, table, col_index, [range_lookup])

Note most arguments are required, but some are optional. In Excel, optional arguments are denoted with square brackets. For example, the fourth argument in VLOOKUP function, range_lookup, is optional and appears in square brackets as shown above.

Finally, many Excel functions accept multiple optional arguments, which are denoted with an ellipses (…)

For example, the COUNTIFS function accepts multiple and optional range and criteria pairs, which can be represented like this:

=COUNTIFS(range1,criteria1,[range2,criteria2],...)

This means you can optionally add additional arguments in pairs: range3/criteria3, range4/criteria4, etc.