我正在尝试导出一个在数据透视表上使用 IF 语句的公式。
目标是对不存在的值执行 IF 函数。到目前为止,我有以下内容:
=IF(GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon",0)=0,GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon","Past Due"),IF(GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon","Past Due")=0,GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon",0),(GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon",0)+GETPIVOTDATA("PO Outstanding Units",$A$2,"PO Horizon","Past Due"))/1000))
该公式的目的是查看IF "this pivot data" DOES NOT exist
,然后"Insert true value"
,然后IF "this DIFFERENT pivot data" DOES NOT EXIST
,然后"Insert true value"
,最后一个错误的陈述将是if both pivot data DO exist
。
基本上,我如何制作一个指示数据透视表值是否存在的公式?