跳到主要內容

如何在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,否則將顯示 ,請參見屏幕截圖:

doc-if-equal-cells-3

3。 並選擇單元格,然後將填充手柄拖到您要應用此公式的範圍,您將獲得如下結果:

doc-if-equal-cells-4

筆記:

1.上面的公式區分大小寫。

2.如果需要比較不區分大小寫的值,則可以應用以下公式: = COUNTIF(A1:D1,A1)= 4A1:D1 表示您要比較的單元格, A1 是您數據范圍內的第一個值,數字 4 是指您要檢查的單元格的數量),然後按 Enter 密鑰,您將得到以下結果:

doc-if-equal-cells-5


比較兩個範圍並找出像元是否相等

這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, Excel的Kutools比較單元格 實用程序,您可以快速找到兩個單元格之間的相同或不同的值。 點擊下載Kutools for Excel!

Excel的Kutools:具有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選項卡為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