How To Use SUM function in Excel with Examples

What is SUM Function in Excel?

The SUM function in Excel adds up values across a range of cells. It can be used to sum up numbers, text, or logical values. Syntax for this formula is =SUM(number1, [number2], …)


The Excel SUM function calculates the total amount of any given set of values. The function can be used in a variety of ways, from quickly adding up a column of figures to creating complex calculations involving multiple values.

Function is very easy to use. All you need to do is select the range of cells that you want to sum and then use the SUM formula and it will automatically sum the values in the range and return the total.

You can also use the function to calculate more complex calculations such as the weighted average, the standard deviation, and the variance.

The SUM can be used to quickly calculate the total for a range of cells that contain text values. In this case, the formula will return a value of zero if the range contains only text values. This is particularly useful when you are trying to sum up a range of figures that contain some text values.


=SUM(number1, [number2],)

SUM Function MS Excel - Excel Formula Cheat Sheet

How to use SUM function in your workbook:

  1. Open your Excel document and select the cell where you want to use the SUM formula.
  2. Type “=SUM(” into the cell and select the cells you want to add together by clicking and dragging over them with your mouse.
  3. Once you have selected the cells you want to add together, close the parentheses at the end of the formula with a “)”.
  4. Press “Enter” and the sum of the cells you selected will appear in the cell where you typed the formula.
  5. If you want to add more cells to the sum, you can click on the cell with the formula and edit it. Add the additional cells you want to add to the sum within the parentheses.
  6. Press “Enter” and the sum of the additional cells you selected will appear in the cell.

Frequently Asked Questions

What data types can the SUM formula accept?

The SUM function can accept numeric, currency, and date/time data types.

What arguments does the SUM formula accept?

The SUM function accepts two arguments: a range of cells and an optional condition. The range of cells is the set of cells that you want to add together. The optional condition is an expression that will filter the range of cells to only include cells that meet the condition.

How can I troubleshoot a SUM function error?

The first step to troubleshooting a SUM function error is to check the data that is being used in the formula. Make sure all data points are properly formatted and that no fields contain any errors.

Struggling with your Excel formulas?

Try out for free AI Excel Assistant who can generate Excel and Google Sheets formulas from your text. Explain your formulas and give descriptions to the most complicated formulas. Translate your Excel files in 28 lanugages. Write and explain your VBA and Google Apps Scripts. Register for free!

Start Generating Formulas

Struggling with your Excel formulas?

Check out our blog for the latest tips and tricks to help you become an expert. We have the insider scoop on the best strategies and resources to help you stay ahead of the curve. Click here to read our blog and start your journey towards Excel and Google Sheets mastery today!

Explore our blog