Formula vs Function in Excel
Formula vs Function in Excel
While this does no harm in most cases, it’s good to have a proper
understanding of what a formula is and what a function is in Excel.
So any equation that you enter into a cell in Excel (that starts with
an equal-to sign) would be called a formula.
Below are some examples of Formulas in Excel:
=1+2
In the example, I have used two cell references to add the values in
these two cells. This, again, is your formula
=SUM(A1:A10)
In the above example, I have used the sum function to get the sum
of values in the range A1:A10. This, again, is an example of a
formula (and interestingly, uses the SUM function)
While a cell in Excel can only have one formula, the formula itself
can consist of multiple functions.
Below is an example:
=SUM(A1:A10) + AVERAGE(A1:A10)
The above formula uses two functions (SUM and AVERAGE), and it
returns a value where it adds the values returned by the sum
function and the average function.
Every Excel function has a specific syntax that you need to follow.
There are mandatory and optional arguments that can be used in
the function, and a specific data type is expected as the resulting
output. For example, while the SUM function is expected to return a
numeric value, the TEXT function is expected to return a text value.
You can find the most common Excel functions and their syntax
here
Difference Between Formula and
Function in Excel
Now that you have a good understanding of the difference between
a formula and a function in excel, below is the table that will give
you a head-on comparison between these two.
Formula Function
A formula may or may not use any of the If you use a function in a cell in Excel, it
functions in Excel will always be a part of the formula
If you have gone through the above article, I’m sure you now realize
that formula and function are two different things in Excel.