有没有一种方法可以与更改excel中的列进行比较并删除重复项?

时间:2019-04-09 13:40:24

标签: excel barcode

所以我正在尝试在excel中实现条形码扫描仪。它已经在单元格中以数字形式输入条形码。在另一栏中,我有一组条形码。因此,当扫描仪提供条形码时,该条形码和另一列中的一个副本将被删除。

我已经尝试过excel比较表功能,但是它既不能删除重复的条形码,也不能在条形码列中标记重复的内容。这意味着:如果条形码列中有两次代码 123456 ,它将标记为重复。

因此,假设我有条形码123,123,124,125。然后,如果我扫描124,则期望该列仅包含123,123,125,如果我扫描123,则期望其包含123,125。

在excel中有没有办法做到这一点,或者我需要特定的软件(如果需要的话)?

My problem image

1 个答案:

答案 0 :(得分:0)

您可以尝试在工作表更改事件中导入以下代码,对其进行修改并尝试:

    "laureates": [
        {
            "id": "1",
            "firstname": "Wilhelm Conrad",
            "surname": "Röntgen",
            "born": "1845-03-27",
            "died": "1923-02-10",
            "bornCountry": "Prussia (now Germany)",
            "bornCountryCode": "DE",
            "bornCity": "Lennep (now Remscheid)",
            "diedCountry": "Germany",
            "diedCountryCode": "DE",
            "diedCity": "Munich",
            "gender": "male",
            "prizes": [
                {
                    "year": "1901",
                    "category": "physics",
                    "share": "1",
                    "motivation": "\"in recognition of the extraordinary services he has rendered by the discovery of the remarkable rays subsequently named after him\"",
                    "affiliations": [
                        {
                            "name": "Munich University",
                            "city": "Munich",
                            "country": "Germany"
                        }
                    ]
                }
            ]
        },
]

结果:

enter image description here