http://www.cyzj888.com/bbs/printpage.asp?BoardID=3&ID=60 里面有很多的关于excel的公式介绍。http://zhidao.baidu.com/question/1524217.html 是一个例子。
这个,用vba进行统计吧..^_^