如何通过脚本删除特定行?尊敬的专家
我对“ Excel过滤器”之类的功能有疑问
我总是需要通过筛选出包含特定字符的行来将原始数据传输到新表中,以生成新表,例如下面的示例,筛选出(_B)然后生成新表。
如何写脚本出来新表?谢谢。
脚本编写回复:如何通过脚本删除特定行?names default to here(1);
dt=current data table();
dt << select where(word(-1,:item,"_") == "B");
// or
// dt << select where(contains(:item,"_B");
// or
// dt << select Where( substr(:item,-,2) == "_B");
dt << delete rows;