excel非法值设置步骤如下:
1、打开excel工作薄,现在需要对表格中的姓名进行输入编辑。

2、选中【姓名】那一整列,选择数据-有效性,数据有效性就是防止在单元格中输入无效数据。

3、跳出数据有效性的对话框,在设置中条件中,允许选择自定义,公式输入=countif($E$2:E2,E2)=1,确定。E就是姓名所在列,E2就是姓名输入中的第一个单元格。

4、试着连续输入两个【小明】,跳出警示框,提示输入值非法。这时候就点击重试。

5、点击重试之后,会回到重复输入的单元格,可重新输入。

6、输入小红之后,不再跳出警示框,可以接着继续输入。
