if(D4<400,D3*24,400<=D4<=700,D3*22,D4>700,D3*20)
if(D4<400,D3*24,if(D4>=400 && D4<=700,D3*22,D3*20))
400<=D4<=700 要改成400<=D4&&D4<=700
if(D4<400,D3*24,if(400<=D4&&D4<=700),D3*22,D3*20)
需要if嵌套
if(D4<400,D3*24,IF(400<=D4<=700,D3*22,IF(D4>700,D3*20,'')))
---
if(D4<400,D3*24,IF(400<=D4&& D4<=700,D3*22,IF(D4>700,D3*20,'')))