我有一些复杂的Excel公式,我计划将其转换为oracle / sql作为自动化过程的一部分, 我看到的主要问题是难以使用各种excel公式,在这里粘贴一个这样的样本, 有关如何解码这些公式的任何帮助建议都会有所帮助。另一个问题是,有一种可行的方法将涉及vlookup的公式转换为SQL查询吗?
=IF(ISERROR(FIND(6000301407,[@[Snapshot Sold To Cust Id]])),IF(ISERROR(FIND(6003921231,[@[Snapshot Sold To Cust Id]])),IF(ISERROR(FIND(6001089085,[@[Snapshot Sold To Cust Id]])),IF(ISERROR(FIND(6011995534,[@[Snapshot Sold To Cust Id]])),IF(ISERROR(FIND(6008725372,[@[Snapshot Sold To Cust Id]])),IF(ISERROR(FIND(6013991835,[@[Snapshot Sold To Cust Id]])),VLOOKUP([@[Snapshot Sold To Industry Key Dsc]],Licensee_List[#All],2,0),"No"),"Yes"),"No"),"Yes"),"No"),"No")
答案 0 :(得分:0)
看起来您的公式会尝试在名为60...
的字符串值中查找这些数值(以[@[Snapshot Sold To Cust Id]]
开头)。流程如下:
Search in [@[Snapshot Sold To Cust Id]]:
Found 6000301407? Print "No".
Else
Found 6003921231? Print "No".
Else
Found 6001089085? Print "Yes".
Else
Found 6011995534? Print "No".
Else
Found 6008725372? Print "Yes".
Else
Found 6013991835? Print "No".
Else
Search [@[Snapshot Sold To Industry Key Dsc]] In Licensee_List[#All] And Output The Value In Next Column To The Right.