我想找 B列是“部件”,并且E列不含“外购”两个字的行,怎么找?比如,B1是部件,E1是“外购成品”,这一行我不要。for i=1 to [A65536].end(xlup).rowif range("B" & i)="部件” and range("E" & i)<>"外购" then
k=i
msgbox knext 红字部分有问题。想看EI这个单元格,有没有含外购两个字的。
目前用的是变通的,left(range("E" & i),2)<>"外购",但肯定受到局限
if range("B" & i)="部件" and not range("E" & I).value like "*外购*" then
使用道具 举报
if range("B" & i)="部件" and instr(1,range("E" & I).value,"外购")=0 then
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-5-18 06:29 , Processed in 0.198682 second(s), 9 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.