2013年3月12日 星期二


Excel – Sorting and Filtering

Sorting and Filtering are functions provided by Microsoft Excel to help users change or customize tables and users can benefit from them as time for handling data by man power is saved.
How Sorting and Filtering help us to solve the problem – Sports Day?
1.       Total number of participants of each house.
·         Without Sorting and Filtering:
We may use formula “=COUNTIF (F2:F1432, “[house]”)” to operate the searching of number of participants of each house.
·         With Sorting and Filtering:
We can sort the table according the participants’ house and we can count the number out simply by our heart, even not a word needed to be typed.
2.       Total number of male participants.
·         Without Sorting and Filtering:
Although it isn’t as simple as the previous one, we can still formula to check out the result that we wanted by formula “=COUNTIFS (A2:A1432, =”BoysA”, F2:F1432,  =“[house]”)+ COUNTIFS (A2:A1432, =”BoysB”, F2:F1432,  =“[house]”)+ ]”)+ COUNTIFS (A2:A1432, =”BoysC”, F2:F1432,  =“[house]”)”.
·         With Sorting and Filtering:

The operation will be much simpler if we use Sorting and Filtering. Sorting the table according both House and Grades and again we can count the number of male participants by heart.


3.       Total number of champion in different competitions.
·         Without Sorting and Filtering:
Not much differ from the previous problem, we can still use formula “=COUNTIFS ()” to look for our answer like”=COUNTIFS (F2:F1432, =”[house]”, G2:G1432,  1)”.
·         With Sorting and Filtering:
Use sorting again, sort the table according the House and then the Rank.

As easy as before, count it by heart in order to check out the answer.







4.       The average score of each grade in each house.
·         Without Sorting and Filtering:
Although we can use the crossover of “=SUMIFS ()”and “=COUNTIFS ()” to count their average, it’s too troublesome, so I am not going to discuss about it here. Using Sorting and Filtering will a heaven here.
·         With Sorting and Filtering:
By filtering, we can customize the table to show the related cells only. Let BoysA in Intellect House as an example, we can first use filtering to show the all BoysA in Intellect House only. Then, apply”=IF (CODE (Gx)<>45, VLOOKUP (Gx, Score!$A$2:$B$9, 2, FALSE), 0)” each row and then use “SUM()” to add up the score. And we can divide the added up number by number of people in BoysA and the product is get. Done.




                                                                             By Sunny and Bowie

沒有留言:

張貼留言