suBTOTAL, totals /adds arranged in an array- that is a- group of cells with tables for column and/ or rows (a) true (b) false
Answers
Explanation:
What is the SUBTOTAL Function in Excel?
The SUBTOTAL function in Excel allows users to create groups and then perform various other Excel functions such as SUM, COUNT, AVERAGE, PRODUCT, MAX, etc. Thus, the SUBTOTAL function in Excel helps in analyzing the data provided.
Formula
SUBTOTAL = (method, range1, [range2 …range_n])
Where method is the type of subtotal you wish to obtain
Range1,range2…range_n is the range of cells you wish to subtotal
Why do we need to use SUBTOTALS?
Sometimes, we need data based on different categories. SUBTOTALS help us to get the totals of several columns of data broken down into various categories.
For example, let’s consider garment products of different sizes manufactured. The SUBTOTAL function will help you to get a count of different sizes in your warehouse.
To learn more, launch our free Excel crash course now!
How to use the SUBTOTAL Function in Excel?
There are two steps to follow when we wish to use the SUBTOTAL function. These are:
Formatting and sorting of the provided Excel data.
Applying SUBTOTAL to the table.
Let’s understand this Excel function with the help of an example. We use data provided by a garment manufacturer. He manufactures T-shirts of five different colors, i.e., White, Black, Pink, Green, and Beige. He produces these T-shirts in seven different sizes, i.e. 2, 4, 6, 8, 10, 12, 14. The relevant data are below:
Subtotal Function in Excel
The warehouse manager provides random data. Now for the analysis, we need to get the total number of T-shirts of each color lying in the warehouse.
Step 1
First, we need to sort the worksheet on the basis of data we need to subtotal. As we need to get the subtotals of T-shirts by colors, we will sort it accordingly.
To do that, we can use the SORT function under the Data tab.
Subtotal Function - Sort
Step 2
The next step would be to apply the SUBTOTAL function. This can be done as shown below:
Select the Data tab, and click on SUBTOTAL.
Subtotal Function - SUBTOTAL
When we click on it, the Subtotal dialogue box will appear as shown below:
Subtotal Function 3
Now, click the drop-down arrow for the “At each change in: field.” We can now select the column we wish to subtotal. In our example, we’ll select Color.
Subtotal Function - Color
Next, we need to click the drop-down arrow for the “Use function: field.” This will help us select the function we wish to use. There are 11 available functions. We need to choose depending on our requirements. In our example, we’ll select SUM to find out the total number of T-shirts lying in each warehouse.
Subtotal Function - SUM
Next, we move to “Add subtotal to: field.” Here we need to select the column where we require the calculated subtotal to appear. In our example, we’ll select Number of Units in Warehouse I and Warehouse II.
Subtotal Function - Warehouse
After that, we need to click OK and we will get the following results:
Subtotal Function - Total Per Warehouse
As we can see in the screenshot above, the subtotals are inserted as new rows below each Group. When we create subtotals, our worksheet is divided into different levels. Depending on the information you wish to display in the worksheet, you can switch between these levels.
The level buttons in our example are images of buttons for Levels 1, 2, 3, which can be seen on the left side of the worksheet. Now suppose I just want to see the total T-shirts lying in the warehouse of different colors, we can click on Level 2.
Subtotal Function - Levels