SUM Cells in Excel (Table of Contents)
Introduction to SUM Cells in Excel
When performing data operations in any context such as research, business, and academic projects etc., the sum operation is commonly used. Excel stores a number in an individual cell, and while performing the sum operation across the cells, the entire range(s) has to be taken into consideration. Excel provides various ways to sum the numeric contents in cells.
The syntax of the SUM function is SUM(number1, number2… number n).
Examples of SUM Cells in Excel
Let’s go through the examples as described in the following section.
We have Sales data for various products for a particular time period. Their product IDs have represented the products. The dataset is as shown in the following screenshot.
Now, we intend to obtain total sales. This will, essentially, be sales obtained after adding sales for all the products. So, at the bottom, we will have “Total”. Using the SUM function, we will obtain total sales. The SUM function will be implemented as shown below. Note, here; we selected all those cells that contain sales figures for respective products. We can pass individual numbers separated by commas or pass range(s) in the SUM function. Once done, complete the bracket and press Enter Key.
If we pass the argument (range of cells containing numeric values) properly into the SUM function, then we get the correct result. The following screenshot shows the cells summed up using the SUM function. In the cell, we got the total sales as a number, and in the formula bar, we can see the formula that sums up the numeric contents in the mentioned range.
Here, we have marks for five different subjects for a certain number of students. Now, our task is to obtain total marks for each student. This we will do by adding the marks for five marks using the SUM function. Once implemented in the first cell, the function then will have to be copied down across all the requisite cells. The following screenshot shows the marks of data for students. In the Total columns, we want a total of five subjects for each student.
We implemented the SUM function to sum cells across the range containing marks of five subjects, as shown in the following screenshot. Observe how the function has been implemented. Once the requisite range is passed as an argument, close the function and press Enter Key. If implemented correctly, we shall obtain the right results.
As can be seen in the following screenshot, we obtained the total marks for each of the students using the SUM function, following the above procedure properly. Note that to verify that the right correct totals have been obtained, just select the range we had used for addition and see the sum in the status bar. If both the figures match then, we have successfully managed to sum cells to obtain total marks for each student.
In this example, summing marks for each subject across different students is not meaningful, as a total of marks for all students is never desired.
In the first example we discussed, we summed cells across rows, and in the second column, we summer cell across columns. The context governs the summing of cells, and we have seen it with examples. In this example, we will require to sum across rows as well as columns because both sums stand meaningful.
Let’s first understand the data. We have product sales data for five different years, from 2014 to 2018. The sales figures for different products for these years are given, as can be seen in the below screenshot.
Our task is to obtain total sales figures for each of the products for all the years and total sales figures for all the products. The former sum task essentially means summing across columns, while the later sum task essentially means summing across the rows. First, we will perform sum of cells across columns, i.e. total sales for each product across different years. We can obtain the sum by implementing the SUM function, as shown in the below screenshot. Observe how the function has been implemented and what range it takes into consideration. Once done, close the function and press Enter Key.
We obtained the total across all the years in the data, and the total figures can be seen as shown in the below screenshot.
We are just half done, and now we want to obtain total sales for each of the years. For this, we implemented the function, as can be seen in the below screenshot. Here, one fact must be noted carefully. As we can see, the Year label is also a number, so while performing sum operation for summing across cells in the range, ensure that cell with year value is not selected, or else we shall end up obtaining incorrect results. Such scenarios are prone to this common blunder when obtaining sums through shortcuts.
As described in the preceding section, we implemented the SUM function and successfully obtained the results, as can be seen in the following screenshot.
Once all the totals have been obtained, we should check if the results are correct. One of the ways to do this is to select the range that we intend to sum. Excel gives Average, Count, and Sum details for the selected range in the status bar. Validate the requisite figures by cross-checking. As can be seen in the following screenshot, the sum of numbers in the selected cells matches the sum figure in the status bar.
Things to Remember
- In Excel, we can sum across cells using the SUM function; however, based on the context, it must be decided if summing across rows is feasible or summing across columns.
- Sometimes, SUM may return an error. These errors must be handled appropriately using suitable functionalities provided by Excel.
This is a guide to SUM Cells in Excel. Here we discuss How to SUM Cells in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –