为类似的单元格Excel赋予共同的价值

时间:2017-02-27 09:35:18

标签: excel

我有一张包含大量产品名称的Excel表格。其中一些名称相似,我试图创建一个在相似名称上设置相同值的单元格。

即:

我有两列:

Product        ProductNo
Nice Jacket    
Nice Jacket
Nice Jacket
Nice Pants
Nice Pants
Nice Cap

我需要一种方法来自动填充这样的prodoctno:

Product        ProductNo
Nice Jacket    100000
Nice Jacket    100000
Nice Jacket    100000
Nice Pants     100001
Nice Pants     100001
Nice Cap       100002

1 个答案:

答案 0 :(得分:1)

嘿,请按照以下步骤来满足您的要求 -

  1. 创建一个包含唯一商品名称及其价值的表格。
  2. 使用您选择的任何内容命名表格。就我而言,我已将其命名为" Productinfo"。请参考下图 -
  3. enter image description here

    enter image description here

    1. 现在回到您的数据,假设数据在A和B列中,写下公式,如下图所示。
    2. enter image description here

      你们都准备好了! :)