提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何比较两列并返回Excel中第三列的值?

doc比较两个列表并返回第三个1

例如,我有以下两列,列A是一些项目,列B是相应的名称。 在这里,我在D列中有一些随机项目,现在我想根据列D中的项目返回列B中相应的名称。如何比较两列A和D并从列B返回相对值在Excel中?

比较两列,并返回第三列的值与公式

比较两列,并返回第三列Kutools for Excel的值


Vlookup并返回第三列中的匹配值:

Kutools for Excel 为Excel用户收集多个有用的公式,通过使用它们,您可以快速解决很多难题,例如计算年龄,添加月,年,日,星期,查找以及从第三列返回的值等等。

doc比较两个列表并返回第三个9

Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!



以下公式可以帮助您比较两列,并从第三列中提取相应的值,请按照以下步骤操作:

1。 输入以下两个公式中的任何一个到除了比较列以外的空白单元格E2:

=IF(ISNA(MATCH(D2,$A$2:$A$16,0)),"",VLOOKUP(D2,$A$2:$B$16,2,FALSE))

= VLOOKUP(D2,$ A $ 2:$ B $ 16,2,FALSE)

2。 然后按 输入 键获取第一个相应的值,看截图:

doc比较两个列表并返回第三个2

3。 然后选择单元格,然后将填充手柄向下拖动到要应用此公式的单元格,并且所有对应的值都立即返回。 看截图:

doc比较两个列表并返回第三个3

请注意: 在上面的公式中: D2 是要返回基于的值的标准单元格, A2:A16 是包括要与之比较的标准的列, A2:B16 您要使用的数据范围。


Kutools for Excel 在列表中寻找一个值 也可以帮助您从其他数据范围返回相应的数据。

Kutools for Excel : 与超过300方便的Excel加载项,在60天免费试用没有限制.

安装后 Kutools for Excel请按照以下步骤进行:

1。 单击您想要返回相关数据的空白单元格。

2。 然后点击 Kutools > 公式 > 在列表中寻找一个值,看截图:

doc比较两个列表并返回第三个4

3。 在 配方助手 对话框,请执行以下操作:

(1。)单击 doc比较两个列表并返回第三个6 按钮旁边的按钮 表格数组 选择您想要查看的数据范围,然后输入 $ 字符到单元格的引用使相对引用成为绝对引用;

(2。)单击 doc比较两个列表并返回第三个6 按钮旁边的按钮 Look_value 选择您需要的标准值;

(3。)单击 doc比较两个列表并返回第三个6 按钮旁边的按钮 选择该列将会返回相应的值。

doc比较两个列表并返回第三个5

4. 然后点击 Ok 按钮关闭对话框,并显示了第一个相应的数据,请参见截图:

doc比较两个列表并返回第三个7

5。 然后选择第一个匹配的单元格,然后将填充手柄向下拖动到要应用此公式的单元格,并且所有相关值都立即返回,请参见屏幕截图:

doc比较两个列表并返回第三个8

立即下载并免费试用Kutools for Excel!


Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    pavan · 5 months ago
    what if i have repeated valued in d column i.e with same name Q!,Q2,Q3,Q4 now if i use your formula i get only Q1 value i need also the 2nd,3rd,4th,matches also
  • To post as a guest, your comment is unpublished.
    Jason McArthur · 6 months ago
    I want to compare 2 columns data on one sheet to a range on another sheet and return the data in the 3rd column from the 2nd sheet
  • To post as a guest, your comment is unpublished.
    A · 7 months ago
    I have 3 columns, A B C, i'd like to get the value of A where the value in Column C matches the value in column B is that possible?
    • To post as a guest, your comment is unpublished.
      skyyang · 7 months ago
      Hi, .
      Could you explain your problem more detailed, or you can insert a screenshot here?
      Thank you!
      • To post as a guest, your comment is unpublished.
        Shaikh Wasim · 4 months ago
        i'm facing the same issue,can u provide any formula for this type of calculation,i want result in another column.
        • To post as a guest, your comment is unpublished.
          skyyang · 4 months ago
          Hi, guys,
          Could you give your problem more detailed, or, you can insert a screenshot here?
      • To post as a guest, your comment is unpublished.
        Sk Wasim · 4 months ago
        Can u help me plz, i'm facing the same issue?
  • To post as a guest, your comment is unpublished.
    Andrea · 1 years ago
    I am struggling with this and just get blanks returning.

    Want to say if cell Shhet1!ED1 matches a cell in column Sheet2!C:C then provide data for adjacent cell in Sheet2!A:A
  • To post as a guest, your comment is unpublished.
    Tamara Leigh · 1 years ago
    Please could you assist me, I need to do an excel formula for a petty cash spreadsheet where it looks for an account number input in Col_C which must be looked for in a list of account numbers in Col_L and if FALSE needs to return the value input in COL_F

    Exampled below
  • To post as a guest, your comment is unpublished.
    Hamid · 1 years ago
    I have 3 excel columns which have values like this,
    Col_A Col_B Col_C
    ----- ----- -----
    400 600
    500 800
    400 300
    300 200
    700 900
    800 700
    500 100
    I want the values to be copied in Column C from Column B, which are not Mache with Column A values.
    I mean just copy the values from Column B, which are not available in Column A.
    Like below
    Col_C
    -----
    600
    200
    100
    Is there any excel formula using which I can achieve this?
  • To post as a guest, your comment is unpublished.
    Hailey · 1 years ago
    I have a master list of film titles in a certain order that must stay in that order. I duplicate that list onto another spreadsheet in order to be able to manipulate it and it gets out of order because I need to group it according to what has been completed or not. On that duplicate list, I add ID numbers in the column next to the titles. After I have completed everything I need to do, I must add those ID numbers to the master list while keeping the title order on that master list. How can I match those IDs to the list without having to manually add them in the correct order?
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello, Hailey,

      May be the following formula may help you:

      =VLOOKUP(A2,new!$A$2:$B$13,2,FALSE)

      in the above formula, new is your duplicate sheet name, please replace it to your own.

      Please try it, hope it can help you!
  • To post as a guest, your comment is unpublished.
    Andreas · 1 years ago
    Hello Sir, and thanks for the formulas provided. Although I used the formula as should it gives me N/A, which as I can understand is because is not matching the criteria between Columns D and A as per your example. Now so you can have better understanding, in my workbook A2 is the criteria cell that you want to return the value based on, G1:G15359 is the column including the criteria to be compared with, A1:N15359 the data range that you want to use.

    The formula is: =IF(ISNA(MATCH(Sheet2!A2,Sheet3!$G$1:$G$15359,0)),"",VLOOKUP(Sheet2!A2,Sheet3!$A$1:$N$15359,7,FALSE))


    As you have noticed I am using data from two different sheets, although I don't think that this is where the real issue is, since when clicking on the NA error it indicates the Sheet2 A2 cell and the error given is: The cell currently being evaluated contains a constant. (I have checked and confirmed that the formats are set on general). Not sure if it's because the information text are emails or because in some cells there's nothing.


    Will be looking forward for your response.
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello, Andresa,

      I tried your formula and it works well in my excel workbook. Can you give an attachment or a screenshot, so that i can understand well.

      Thank you!
  • To post as a guest, your comment is unpublished.
    Jinojith Nair · 1 years ago
    I need to do a comparison and pull put data as below -

    Sheet 1 contain Column A & B, B is blank. Sheet 2 contains Column C & D.


    The entire Column C items in Sheet 2 to be compared with first row item in Column A and if any corresponding values/data are there in Column A, then Column B to be populated with data corresponding to the row item in Column D.

    Column C will have a single word. Column D may or may not have data in it. Column A will have more text.
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello,
      Could you give a detailed example for your problem?
      You can insert a screenshot or attachment.
      Thank you!
  • To post as a guest, your comment is unpublished.
    Ardi · 1 years ago
    I used this formula and it mostly worked but the data from the other sheet does not come on the same row to match the reference Criteria cell.


    Here's my formula. can you have a look at it and see if there's anything wrong

    =IF(ISNA(MATCH(DPU!C2,$A$2:$A$100,0)),"",VLOOKUP(DPU!C2,DPU!C2:AP100,2,FALSE))
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello, Ardi,
      If you want to vlookup from another worksheet, you should apply the following formula:
      =IF(ISNA(MATCH(A2,Sheet1!$A$2:$A$10,0)),"",VLOOKUP(A2,Sheet1!$A$2:$B$10,2,FALSE))

      Note: Sheet1 is the sheet contains the original data that you want to vlookup, and you should chaneg the cell references to your need.

      Please try it! Thank you!
  • To post as a guest, your comment is unpublished.
    Rahat Bappy · 2 years ago
    Great brother! My first formula is working. But 2nd formula not working. I tried many times. But i can't...
  • To post as a guest, your comment is unpublished.
    onika · 2 years ago
    wow, so great! good sharing thank you! it was so useful for me.
  • To post as a guest, your comment is unpublished.
    Kelly Okere · 2 years ago
    You just saved me months of stressful entries with this post. I'm so grateful!

    Thanks.
  • To post as a guest, your comment is unpublished.
    Dhaya · 2 years ago
    Thank you some much it was very useful. Need add info, what if we have duplicate value in Col B, how to return the value for that too.
  • To post as a guest, your comment is unpublished.
    VIJAY · 3 years ago
    GOOD KNOWLEDGE SHARING THANK YOU VERY MUCH