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.