Excel自定义数据验证公式

时间:2017-11-09 22:03:29

标签: excel

我有一个Excel文件,我试图添加验证以阻止用户如果条件不符合,下面是我的公式,但是没有返回预期的结果:

=IF(A1="",TRUE,IF((B1*5)>A2,True,FALSE))

这是我想要完成的事情:

 1) If A1 is Blank, then don't allow the user to enter anything in A2
 2) The Max the user can enter in A2 is 5 times the value in A1.
 up.

1 个答案:

答案 0 :(得分:0)

请尝试自定义验证公式:

=AND(COUNT(A1),A2<=5*A1)

并确保未选中“忽略空白”。

相关问题