Sum Function in Excel – Learn Through Examples

Sum Function in Excel – Learn Through Examples

5 mins read2.3K Views Comment
Rashmi
Rashmi Karan
Manager - Content
Updated on Jul 31, 2024 16:11 IST

In continuation to our previous tutorial on MIN and MAX functions in Excel, we now move on to another important basic function, the SUM function. You will get to learn about the SUM function in Excel on real datasets.

sum in Excel

Content

What is the Sum Function in Excel?

The Sum function in MS Excel allows you to add multiple numbers stored in different cells. It is categorized under Excel Math and Trigonometry functions and is one of the most basic, simple, and commonly used MS Excel functions. The β€œSum” icon allows you to add a series of data stored in a row or column in a very agile way.

Recommended online courses

Best-suited MS Excel courses for you

Learn MS Excel with these high-rated online courses

β‚Ή5.5 K
18 hours
β‚Ή3.2 K
28 hours
β‚Ή1 L
6 months
β‚Ή59.54 K
10 months
β‚Ή4.3 K
2 months
– / –
45 hours
β‚Ή1.34 L
300 hours
– / –
1 month
β‚Ή6.4 K
104 hours

Formula of the SUM function 

The formula of the SUM function is –

=SUM(number1, [number2], [number3]……)

Number1 (necessary argument) – The first item we want to sum. 

Number2 (necessary argument) – The second item we want to sum

Number3 (optional argument) – The third item we want to sum

These constant, cell reference or array containing numeric values are either ​​entered manually or present in the reference cell.

Example 1: How to Apply the SUM Function?

Below is the screenshot from the personal monthly expenditure sheet. I have added the data for bills and utilities for every month. 

To sum up the data, we will go through the following steps –

2022_03_image-27.jpg

In the cell where you want to add the numbers, start writing =SUM(

2022_03_image-28.jpg

Select the Data

You can now select the data you want to be added. In this case, the selected cell numbers are from B2 to B13.

2022_03_image-29.jpg

Close the Parenthesis 

Close the Parenthesis 

Press ENTER

Press ENTER

The result will be displayed in the chosen cell.  

Example 2: How to Apply the SUM Function? 

You can use the SUM function to non-contiguous cells. Non-contiguous means non-adjoining cells. Here 

  • Apply the formula =SUM( 
  • Select cells that you want to sum
  • Close the parentheses
How to Apply the SUM Function? Example 2

Press Enter 

You get the result.

Example 3: How to Apply the SUM Function using AutoSum? 

This is interesting. Now we will sum up using the Autosum function. Let’s use the same dataset we used above in Examples 1 and 2.

Click on the cell where you want your result to appear, here B14.

How to Apply the SUM Function? Example 3

Hover your cursor on AutoSum. Click on the drop-down, you will find Sum, along with other functions like Average, Count Numbers, Min, Max, etc.

autosum functions

Now, just click on Sum. The data in your targeted cell will be added. The Sum function within AutoSum automatically calculates the data for the entire column.

How to Apply the SUM Function using AutoSum? Example 4

Now let’s check if we can use AutoSum to sum multiple columns. Below we have data in multiple columns, now, we click on Sum function within AutoSum and get the data for column B.

How to Apply the SUM Function? Example 4

We get the total sum for Column B. Now, we will hold the cell in which we received the sum and drag it horizontally. In this case, Cells B14 to D14.

We see that the consecutive columns are automatically filled. We can do this for even bigger datasets that need to be calculated for numeric values horizontally.

Example 5: How to Apply the SUM Function? 

Now let’s check if we can use the SUM function from AutoSum for non-contiguous cells. Here, we have marked Cell A14 to fetch data for Totals (Bills & Utilities and Personal). We will then move on to Cell B14 and click on AutoSum to apply the SUM formula for Columns B and D.

How to Apply the SUM Function? Example 5

When you apply AutoSum in Cell B14, it will fetch the entire numeric values from Column B. You can then move on to the next column that you want to add. 

You can see that both columns are different color-coded for demarcation. Column B in blue and Column D in red. Now in Cell B14, you have the data from both Columns B and D. You can either click on AutoSum again or just click Enter.

Now, to calculate Totals (Food & Dining, Auto & Transport, and Health & Fitness), i.e., Cell A15, we will follow the same process and get our total data in B15.

Here the Sum function would automatically return to Column B, but you can move on and select the columns you wish to calculate. Here we have calculated the data from Columns C, E, and F, with Column C, marked blue, E marked red, and F, purple.

This way, we can sum multiple columns. Similarly, we can sum all the columns to sum the entire data set.

Example 6: How to Apply the SUM Function? 

Now we add a new column here, which is Column G. This will calculate the total monthly expenses.

We can click on AutoSum or add =SUM(

Here, I will be adding the =SUM(number1, [number2], [number3]……) function.

Click Enter

Now hold the Cell G2 and drag vertically.

Now, you have the data for every month without having to work on individual cells. Do give it a try on your own MS Excel sheet.

Important to Note

  • Arguments can be constants, ranges, named ranges, or cell references
  • SUM can handle up to 255 total arguments
  • SUM ignores empty cells and cells with text values
  • In case there are any errors in the arguments, the SUM function will return an error
  • The AGGREGATE function can be used to ignore errors and perform sum

Related Tutorials

We hope this tutorial on the SUM function in Excel helped you understand how to use it to work on your datasets. Stay with us for more such tutorials in the future.


Top Trending Articles:

Data Analyst Interview Questions | Data Science Interview Questions | Machine Learning Applications | Big Data vs Machine Learning | Data Scientist vs Data Analyst | How to Become a Data Analyst | Data Science vs. Big Data vs. Data Analytics | What is Data Science | What is a Data Scientist | What is Data Analyst

About the Author
author-image
Rashmi Karan
Manager - Content

Rashmi is a postgraduate in Biotechnology with a flair for research-oriented work and has an experience of over 13 years in content creation and social media handling. She has a diversified writing portfolio and aim... Read Full Bio