时间:2022-04-14 点击: 次 来源:网络 添加者:佚名 - 小 + 大
我想用VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0)>0,使单元格里的值都是大于0的数据,可为什么单元格出现字符"停"呢?我在单元格里公式如下:=IF(ISERROR(VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0)),"",IF(VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0)>0,VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0),"")) 公式写成这样的,在单元格中也显示"停",公式这样设置就是不能有字符型的数值出现,可字符型的数值怎么还是出现了呢? =IF(VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0)>0,VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0),"") 解答: 假设B3=b89,C3="停" VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0)=C3 "停">0(TRUE) 结果是 "停" 修改 =TEXT(IFERROR(VLOOKUP(B89,整理电量!$B$2:$AA$999,2,0),),"0;;;")
=IF(TEXT(IFERROR(VLOOKUP(B2,整理电量!$B$2:$AA$998,2,0),""),"0;;;")="",IFERROR(INT(VLOOKUP(B2,特殊电量!$A$2:$AA$992,2,0)*E2/24),""),IF(INT(E2)=0,"",TEXT(IFERROR(VLOOKUP(B2,整理电量!$B$2:$AA$998,2,0),""),"0;;;"))) |