跳到主要内容

如何在Excel中比较多个单元格是否相等?

众所周知,要比较两个单元格是否相等,可以使用公式A1 = B1。 但是,如果要检查多个单元格是否具有相同的值,则此公式将不起作用。 今天,我将讨论一些公式以比较Excel中多个单元格是否相等。

比较多个单元格是否与公式相等


箭头蓝色右气泡 比较多个单元格是否与公式相等

假设我具有以下数据范围,现在我需要知道A1:D1中的值是否相等,要解决此任务,以下公式将为您提供帮助。

doc-if-equal-cells-1

1。 在数据旁边的空白单元格中,请输入以下公式: = AND(EXACT(A1:D1,A1))A1:D1 指示您要比较的单元格,以及 A1 是您数据范围内的第一个值),请参见屏幕截图:

doc-if-equal-cells-2

2。 然后按 Ctrl + Shift + Enter 键在一起以获得结果,如果单元格值相等,它将显示 TRUE,否则将显示 FALSE,请参见屏幕截图:

doc-if-equal-cells-3

3。 并选择单元格,然后将填充手柄拖到您要应用此公式的范围,您将获得如下结果:

doc-if-equal-cells-4

笔记:

1.上面的公式区分大小写。

2.如果需要比较不区分大小写的值,则可以应用以下公式: = COUNTIF(A1:D1,A1)= 4A1:D1 表示您要比较的单元格, A1 是您数据范围内的第一个值,数字 4 是指您要检查的单元格的数量),然后按 输入 密钥,您将得到以下结果:

doc-if-equal-cells-5


比较两个范围,找出像元是否相等

Kutools for Excel比较单元格 实用程序,您可以快速找到两个单元格之间的相同或不同的值。 点击下载Kutools for Excel!

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


相关文章:

如何在Excel中检查数字是否为整数?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
hi ... i have a five letter word ... the five letters are in five cells in a row ... i want to put the letters of the word ... into alphabetical order ... into 26 columns ... A to Z
This comment was minimized by the moderator on the site
Hi.. I have a range of cells (say - a1:h1). this range can contain empty cells as well as numbers (at start, middle or end of range). These numbers can be similar or different, at any situation. I need a formula to see if all the 7 cells (a1:h1) have similar value then the similar value should be displayed in cell i1 or an error. Can someone help please.
This comment was minimized by the moderator on the site
I want to compare 3 cells and filter out the rows which doesn’t fulfil the criteria, for example Like 3 columns A,B,C have different values and from these columns if anyone cell doesn’t cross   Like for example 100 that entire row must be deleted 
This comment was minimized by the moderator on the site
Hi,Kishan,Do you mean to delete the rows that the cells are not equal?If so, please apply the formula in this article to test if the cells are equal or not, and then filter based on the formula cells to display all FALSE rows, and last, select and delete the filtered rows as you need.Please try, hope it can help you!
This comment was minimized by the moderator on the site
I am trying to compare the same cell in multiple tabs to see whether the contents are identical.  If so, then return that identical value; and if not, then return "NO".  How am I able to accomplish this?  It appears that the AND(EXACT function doesn't work across multiple sheets.
This comment was minimized by the moderator on the site
hello sir, i have 6 columns of 2 tables in different sheets, but i want to match 2nd tables data with 1st tables data.
This comment was minimized by the moderator on the site
I have two cols with numbers and want to find the matches but the same/ different number are not in the same row. How do i
This comment was minimized by the moderator on the site
Hello, Joanne,Can you give more details of your problem, or you can insert an image of your problem here?Thank you!
This comment was minimized by the moderator on the site
I have a scenario like this I have same values in col A, Col B and Col C ( AA,AA,AA) and I want to return the Same value AA if all 3 in SYNC in col D.Can anyone assist in this ?
This comment was minimized by the moderator on the site
Hello, Prabakar,To solve your problem, please apply the below array formula:=IF(AND(EXACT(A2:C2,A2)),A2,"")
After entering this formula, please remember to press Ctrl + Shift + Enter keys together to get the correct result.Please try it.
This comment was minimized by the moderator on the site
I HAVE 3 CELLS THAT CAN HAVE VALUE OF EITHER "W"OR"L" IE. W/L/W OR L/W/L OR W/L/L

MEANING WIN OR LOSS

HOW DO I COUNT 2 WINS OR 2 LOSSES? TO PUT ANSWER IN SINGLE CELL!
This comment was minimized by the moderator on the site
Lets asume you have results in Columns A,B and C) starting in second row, For example you can add a helper Colum (all wins/loses) and add =if(Or(And(a2="W",b2="w",C2="W"),(a2="L",b2="L",C2="L"),0,1)And then just perform a sum at the end - the above will assign a 0 value to 3 wins or 3 losses, and a 1 value to other results
This comment was minimized by the moderator on the site
sO GRAET HELPFUL
This comment was minimized by the moderator on the site
=COUNTIF(A1:D1,A1)=4 ---> mind = blown
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations