Excel uses the SUBTOTAL function to implement cell hiding

Source: Internet
Author: User

Excel uses the SUBTOTAL function to implement cell hiding

1, first of all, let's take a look at the data used in this instance, here are three cities, the request is when I will be the Qingdao all the data hides, when the summary statistics is not hidden the index sum of the city, and when I will the Qingdao data unhide, the summary automatic statistics is the total of all indicators.

2, OK, I think, a lot of people's first reflection is the SUM function, yes, our request is really need to sum, but we can try.

3, under normal circumstances, we can sum up all the indicators, but when we hide the indicators of Qingdao, we will find that the function of SUM function does not seem to meet our requirements.

4, after hiding, Sum function sum is the sum of all indicators, rather than the hidden city indicators and. At this point, we use the Subtota function to try and enter in another cell: =subtota (109,B3:B13). I'll explain the meaning of this formula for you later.

5. After clicking Enter, we can find that the SUBTOTAL function can indeed calculate the index synthesis of all cities.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.