我正在设置一个Excel,以跟踪车辆的归还日期和延期日期。我可以获取表格以显示车辆返还,但无法显示延期日期。
试图使用多个If And语句。
=IF(AND($B10<>"",$C10<>""),1-SUMPRODUCT(('[Rental Current Fleet.xlsm]Rental Vehicle'!$G$7:$G$1000<=H$7)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$H$7:$H$1000>=H$7)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$C$7:$C$1000=$B10)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$D$7:$D$1000=$C10)),"")
**上面的代码有效
=IF(AND($B10<>"",$C10<>""),1-SUMPRODUCT(('[Rental Current Fleet.xlsm]Rental Vehicle'!$H$7:$H$1000<=H$7)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$J$7:$J$1000>=H$7)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$C$7:$C$1000=$B10)*('[Rental Current Fleet.xlsm]Rental Vehicle'!$D$7:$D$1000=$C10)),"")
单元格显示#Value!
答案 0 :(得分:1)
您可以使用更简单的方法:
公式C2:
=A2+B2
公式E2:
=D2-C2
有关应付款总额的提示:
公式F2:
=B2*VLOOKUP("Normal",$I$2:$J$3,2,FALSE)+E2*VLOOKUP("Extension",$I$2:$J$3,2,FALSE)
答案 1 :(得分:0)