iptables 条目重复_阻止Excel表中的重复条目

iptables 条目重复

Data validation is a great feature in Excel, and I often use it to create a drop down list in a cell. That helps prevent data entry errors, and limits what people can input. You can use data validation rules in other ways too. For example, you can block duplicate entries in Excel table columns, or in a range of cells.

数据验证是Excel中的一项很棒的功能,我经常使用它在单元格中创建一个下拉列表 。 这有助于防止数据输入错误,并限制人们可以输入的内容。 您也可以通过其他方式使用数据验证规则。 例如,您可以阻止Excel表列中或单元格区域中的重复条目。

In this example, employee data is being entered in a formatted table, and each employee must have a unique ID number. The COUNTIF function can check the cells for identical entries, and warn you, or stop you, if an ID number is already in use.

在此示例中,将在格式表中输入员工数据,并且每个员工必须具有唯一的ID号。 COUNTIF函数可以检查单元格中是否存在相同的条目,并在已使用ID号的情况下警告您或停止您。

preventduplicatestable02

使用COUNTIF检查单元格范围 (Use COUNTIF to Check a Range of Cells)

To create this data validation rule, I named the data cells in the EmpID column as EmpIDs. This step is necessary, because data validation can't use the table column name directly.

为了创建此数据验证规则,我将EmpID列中的数据单元命名为EmpID。 此步骤是必需的,因为数据验证不能直接使用表列名。

The good news is that named range is based on a formatted Excel table, so it is dynamic -- it will automatically grow or shrink if the number of rows changes. In older versions of Excel, you can use a formula to create a dynamic range.

好消息是,命名范围基于格式化的Excel表 ,因此它是动态的-如果行数更改,它将自动增大或缩小。 在早期版本的Excel中,您可以使用公式来创建动态范围。

Then, I used that range name, EmpIDs, in a COUNTIF formula.

然后,我在COUNTIF公式中使用了该范围名称EmpID。

=COUNTIF(EmpIDs,A2)<=1

= COUNTIF(EmpIDs,A2)<= 1

To prevent duplicates, the count must be 1 or zero, and if not, a warning will appear when you enter a duplicate number.

为防止重复,计数必须为1或零,否则,输入重复数字时会出现警告。

preventduplicatestable01

添加错误信息 (Add an Error Message)

If you enter a duplicate number, the data validation rule will show a default message, telling you to try again, or cancel your entry. You can personalize that message, to help people figure out what they’ve done wrong.

如果输入重复的数字,则数据验证规则将显示一条默认消息,告诉您重试或取消输入。 您可以个性化该消息,以帮助人们弄清楚他们做错了什么。

In the screen shot below, the message explains that the entered number is already in use, so you can cancel that, and try a different number.

在下面的屏幕截图中,该消息说明输入的号码已在使用中,因此您可以取消输入,然后尝试使用其他号码。

preventduplicatestable02

You can read the detailed instructions on my Contextures website – Prevent Duplicates in an Excel Table – and see the steps in the video below.

您可以阅读我的Contextures网站上的详细说明– 在Excel表中防止重复 –并查看下面视频中的步骤。

视频:防止重复输入 (Video: Prevent Duplicate Entries)

This video shows the steps for creating a formatted table, naming one of the columns, and setting up the data validation.

该视频显示了创建格式化表格,命名列之一以及设置数据验证的步骤。

演示地址

翻译自: https://contexturesblog.com/archives/2013/09/10/block-duplicate-entries-in-excel-table/

iptables 条目重复

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值