我想写一个excel if语句。我是使用Excel所有额外功能的新手。我正在使用名为importXML()
的函数。我正在尝试检查我正在使用的函数是否生成“#VALUE!”错误如下:Excel:检查IF语句中的错误
if(
importXML(B1,C1)!="#VALUE!" //check if no error generated,
importXML(B1,C1)//if no error is generated, use these cells in the function
importXML(A1,C1)//else use these cells in the function
)
这可能吗?我是否正确使用excels if语句来检查错误?
这是在VBA或电子表格? – Mark
暂时不使用excel,但尝试'IF(importXML(B1,C1)<>“#VALUE!”,importXML(B1,C1),importXML(A1,C1))' –
这是电子表格 – AnchovyLegend