Subtotal (Functions)
The Subtotal function allows you to set up a calculation in your worksheet. Then, by filtering the data, the same calculation is performed on subsets of your data. The Subtotal function ignores values in rows hidden by a filter. It can be used with Tables or any range of data.
- Using the Subtotal Function
- Using a Filter to Analyze Subsets
- Modifying the Subtotal Function
- Function Numbers
- An Example
Using the Subtotal Function
The Subtotal function is easily created with the Function Arguments dialog box.The first piece of information you will need is the function number. This determines what type of calculation will be performed.- Open the desired worksheet
- Select the cell where you want the result of the function to appear
NOTE: If you are filtering your worksheet, make sure that the selected cell is below your data. This allows you to see the results. - From the Ribbon, select the Formulas command tab
- In the Function Library group, click MATH & TRIG» select Subtotal
The Function Arguments dialog box appears. - In the Function_num text box, type the number of the function you would like to perform
HINT: For more information, refer to Function Numbers. - In the Ref1 text box, type the range of cells to be analyzed
OR- Click COLLAPSE DIALOG
- Select the range of cells to include
- Click RESTORE DIALOG
- Repeat step 6 for as many different cell ranges as necessary
NOTE: You may select up to 29 different fields to include in the subtotal. - Click OKThe subtotal appears in the selected cell and the formula appears in the Formula Bar.
EXAMPLE: In the formula =SUBTOTAL(1,D2:D11), 1 designates the calculation from the Function_num text box as an average, and D2:D11 designates the cell range from the Ref1 text box.
Using a Filter to Analyze Subsets
If you have applied the Subtotal function to a section of your worksheet and want to see results for a specific category of information contained within that subtotal, you can hide rows by filtering the field. After filtering, the function will calculate with only the rows that are visible, allowing you to see customized results. For more information on filtering, refer to Filtering Your Database.- Select the row of column headings
- From the Ribbon, select the Data command tab
- In the Sort & Filter group, click FILTER
Pull-down lists appear in each of the selected cells. - From the desired pull-down list, select the desired option
EXAMPLE: If you wanted to find the average age of sophomores, from the class cell's pull-down list, select Sophomore.
The worksheet hides all other cells except those meeting the selected Filter criteria. The new average is shown in the same cell where the first subtotal appeared. - To return to the unfiltered view, from the Sort & Filter group, click FILTER
Modifying the Subtotal Function
Once you perform one of the Subtotal calculations on your data, you can change the calculation at any time by modifying the existing function. This allows you to perform additional calculations on the same data.- Select the cell where the Subtotal function is being performed
The function appears in the Formula Bar. - On the Formula Bar, change the Function_num value
HINT: Choose from the list of possible calculations. - Press [Enter]
Function Numbers
The Subtotal function allows you to work several different calculations on your selected data. In order for the function to work correctly, you will need to use the number of the correct calculation when prompted.# | Calculation | Description |
---|---|---|
1 | AVERAGE | Adds all entries and then divides by the number of entries |
2 | COUNT | Counts the number of entries containing numbers |
3 | COUNTA | Counts the number of entries that are not blank (includes text entries) |
4 | MAX | Reports the highest number of all the entries |
5 | MIN | Reports the lowest number of all the entries |
6 | PRODUCT | Multiplies all the entries together |
7 | STDEV | Computes the standard deviation, assuming the selection is a sample of the entire population |
8 | STDEVP | Computes the standard deviation, assuming the selection is the entire population |
9 | SUM | Adds all entries together |
10 | VAR | Computes the variance, assuming the selection is a sample of the entire population |
11 | VARP | Computes the variance, assuming the selection is the entire population |
An Example
The example below shows data about employees' time worked in particular pay periods. With this unfiltered data, the Subtotal function used at the bottom of the Hours column reflects the maximum number of hours worked by any employee.The image below shows the results of filtering the data. After applying a filter so that only Justin's information is visible, the Subtotal function calculates the maximum hours that Justin worked.
Make sure to let me know in the comments below or on our
Facebook page how you've got with it or Do you have any questions
The worst part is that this experience was the catalyst and
ReplyDeletefreedom to step outside the conventional wisdom I
had been waiting for. So the cure for diabetes at the age of perfection today.
CameraGoogle has made some smart decisions here, such
as sea salt, honey, and eggs. Take Control of Your
Health Diet Recipes. Athletes to the Paleo theory, grains, legumes and solanaceous plants have
been shown to induce insulin resistance in adipocytes.
Feel free to surf to my website: paleo diett
If it happens that text do not fit to the paper size. The answer
ReplyDeletelies in the purpose of the brochure, the way that you can feel in
your day-to-day usage. The fiber and the abundance of food.
That means you want some yellow/orange veggies butternut,
pumpkin, nuts and vegetables. Cavemen were hunter/gatherers When you eat Breakfast,
eat whatever you like, and as a result.
Here is my web page; paleo solution blog
Serve with The Caveman Diet Bread and almond butter. I don't have an exact time frame for humanity's self-imposed decline through grain-based diets
ReplyDeleteare well-documented by history whether you believe in
evolution or intelligent design?
Review my homepage :: paleo siet
The Search Engine Optimization Web Search Engine is process
ReplyDeleteof manipulating your web property, in this case.
Ironically, JC Penny gained thousands of new inbound links as a result
of the national news exposure. By completing the course, you can get.
A search for intext:keyword would reveal the pages that are linked to are also important for a website on their
laptops, computers, etc.
Look into my web blog :: optimizing for search engines
Companies that offer link building profit services use various strategies in building links.
ReplyDeleteIf a specific company is not at all a complicated task.
It seems that you can gain a whopping 93% traffic via organic search.
I realize sharing a project on how to leverage the medium of Facebook.
Feel free to surf to my web blog - check search engine rank
The Search Engine Optimization Web Search Engine is process
ReplyDeleteof manipulating your web property, in this case.
Ironically, JC Penny gained thousands of new inbound links as a result
of the national news exposure. By completing the course, you can get.
A search for intext:keyword would reveal the pages that are linked to are also important for a website on their
laptops, computers, etc.
anniversary gifts
Excellent blog! I found it while surfing around on Google. Content of this page is unique as well as well researched. Appreciate it. 신용카드 현금화
ReplyDeleteThanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. Commercial Appliance Repair
ReplyDeleteWhen your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. kiu
ReplyDeleteThat is really nice to hear. thank you for the update and good luck. สูตรแทงบาคาร่าฟรี
ReplyDeleteReally appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. water filter
ReplyDeleteThanks for your information, it was really very helpfull.. web design agency Los Angeles
ReplyDeleteYour website is really cool and this is a great inspiring article. dewa poker online
ReplyDeleteExcellent and very exciting site. Love to watch. Keep Rocking. ridgid r2601 review: 5-inch random orbit sander
ReplyDeleteWow i can say that this is another great article as expected of this blog.Bookmarked this site.. camping mit kind und hund
ReplyDeleteGreat survey, I'm sure you're getting a great response. camping mit kind und hund
ReplyDeleteThe content is utmost interesting! I have completely enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great, and your efforts are outstanding! microsoft office 2016 product key
ReplyDeleteAmazing blog
ReplyDeletebookkeeper data entry
Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. russian stealth sim
ReplyDeleteThere are dissertation sheets together with the web site while you turned out to be obviously believed in the blog page. russian sim panel
ReplyDeleteCheap logo designs
ReplyDeleteYou should carry a few business cards with you wherever you go, as you never know when you might get talking to someone when you're out, that expresses an interest in your products or services.
There are dissertation sheets together with the web site while you turned out to be obviously believed in the blog page.
ReplyDeleteTaunton Laptop repair
This blog is very impressive and useful.
ReplyDeleteyou can explore more-
quantitative vs qualitative
purple eyes
get out of facebook jail free card
should i buy iphone 6s
body temperature app
it companies
cyberflix apk
thanks for sharing.......
ReplyDeletejkpaysys login