1,对标准差进行排序,排完序后选中所有标准差小于0的行,进行删除。
2,筛选,对标准差进行筛选,选出所有小于0的,进行删除。
3,编写代码
sub delete()'dim n%for n=2 to activesheet.usedrange.rows.count 'n从2开始是因为首行为标题行if activesheet.range("列名"& n).value < 0 thenrows(n).deleteelseendifnext nend sub