如果行小于所需数量,则删除整个条目

时间:2015-10-30 17:48:47

标签: windows excel shell

我有一个很长的列表,由这样的文本组成

Email: example@example.com
Language Spoken: Sample
Points: 52600
Lifetime points: 100000
Country: US
Number: 1234
Gender: Male
Status: Activated
=============================================

我需要一种过滤此列表的方法,以便只显示高于52600点的学生。我目前正在寻找解决方案,我认为excel可能是一个开始但不太确定并且想要输入。

1 个答案:

答案 0 :(得分:0)

Here's a solution in Excel:

1) Copy Text into Column A

2) In B1 enter "1", then in B2 enter the formula: =IF(LEFT(A1,1)="=",B1+1,B1), then copy that down to the end. (This splits the text into groups divided by the equal signs)

3) In C1 enter the formula: =IF(LEFT(A1,8)="Points: ",VALUE(RIGHT(A1,LEN(A1)-8)),0), then copy that down to the end. (Basically this is populating the points in column B)

4) In D1 enter the formula: =SUMIF(B:B,B1,C:C), then copy that down to the end. (This just sums the amounts in column B by grouping)

5) Finally put a filter on Column D, and filter by greater than or equal to the amount desired.