简体   繁体   English

用于匹配列的 Excel 公式

[英]Excel formula for matching columns

Have a column A with values in it and a column C with values as well.有一个包含值的列 A 和一个包含值的列 C。 Want formula to only show the row where A & C values are different.希望公式仅显示 A 和 C 值不同的行。 How to do this and where to type out formula?如何做到这一点以及在哪里输入公式?

Assuming you have a header in columns A and C, in cell D2 you could put假设您在 A 列和 C 列中有一个标题,则可以在单元格 D2 中放置

=A2-C2

Dragging this down will show the differences in and cells.将其向下拖动将显示 和 单元格的差异。 Taking this one step further, in cell D2 you could use更进一步,在单元格 D2 中,您可以使用

=IF(A2<>C2,“Not Equal”,””)

Dragging this down will show “Not Equal” for an cells where column A and C are different and blank for any cells that are equal.对于 A 列和 C 列不同的单元格,将其向下拖动将显示“不相等”,而对于任何相等的单元格则为空白。

You could then filter column D by “Not Equal” to just see the cells that are not equal.然后,您可以通过“不等于”过滤列 D,以仅查看不相等的单元格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM