老师,我开始写的时候,理解错题意了,您要是的名字,而我一直在求分数,看到后面几题才发现看错题目了~~~
那么,我就先发求分数的公式的吧。
- =FILTERXML("<a><"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($B$2,"="," b='"),",","'/,"),",","><")&"'/></a>","a/*[@b>90]["&ROW(A1)&"]/@b")
复制代码
- =FILTERXML("<a><"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($B$2,"="," b='"),",","'/,"),",","><")&"'/></a>","a/*[@b>90][following-sibling::*]["&ROW(A1)&"]/@b")
复制代码
- =FILTERXML("<a><"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($B$2,"="," b='"),",","'/,"),",","><")&"'/></a>","a/*[@b>90][position()="&ROW(A1)&"]/@b")
复制代码
以上取大于90分的分数。。。有无数种写法,因为是同一级的,可以用父级,祖辈级等。
另外,第二题应该是小于80分的,小于70分的是没有分数的。小于的就不发了。
- =FILTERXML("<a><"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($B$2,"="," b='"),",","'/,"),",","><")&"'/></a>","a/*[@b>=80 and @b<=90] [position()="&ROW(A1)&"]/@b")
复制代码
前面大于90的公式有好几个了,这里就写一个吧,就剩去了写following,parent等函数了。
不过提取名字的题目,我还没解答出来,有空再研究研究。
|