Note: The other languages of the website are Google-translated. Back to English
Log in  \/ 
x
or
x
Inscreva-se  \/ 
x

or

Como comparar se várias células são iguais no Excel?

Como todos sabemos, para comparar se duas células são iguais, podemos usar a fórmula A1 = B1. Mas, se você quiser verificar se várias células têm o mesmo valor, esta fórmula não funcionará. Hoje, falarei sobre algumas fórmulas para comparar se várias células são iguais no Excel.

Compare se várias células são iguais às fórmulas


seta azul bolha direita Compare se várias células são iguais às fórmulas

Supondo que eu tenha o seguinte intervalo de dados, agora preciso saber se os valores em A1: D1 são iguais, para resolver essa tarefa, as seguintes fórmulas irão ajudá-lo.

doc-check-if-equal-cells-1

1. Em uma célula em branco ao lado de seus dados, insira esta fórmula: = E (EXATO (A1: D1, A1)), (A1: D1 indica as células que você deseja comparar e A1 é o primeiro valor em seu intervalo de dados) veja a captura de tela:

doc-check-if-equal-cells-2

2. Então aperte Ctrl + Shift + Enter juntas para obter o resultado, se os valores das células forem iguais, ele exibirá VERDADEIRO, caso contrário, ele exibirá FALSE, veja a captura de tela:

doc-check-if-equal-cells-3

3. E selecione a célula e arraste a alça de preenchimento até o intervalo ao qual deseja aplicar esta fórmula, você obterá o resultado da seguinte forma:

doc-check-if-equal-cells-4

notas:

1. A fórmula acima diferencia maiúsculas de minúsculas.

2. Se precisar comparar os valores sem distinção entre maiúsculas e minúsculas, você pode aplicar esta fórmula: = CONT.SE (A1: D1, A1) = 4, (A1: D1 indica as células que você deseja comparar, A1 é o primeiro valor em seu intervalo de dados e o número 4 refere-se ao número de células que você deseja verificar se) e pressione Entrar chave, e você obterá o seguinte resultado:

doc-check-if-equal-cells-5


Compare dois intervalos e descubra se as células são iguais ou não

Com Kutools for Excel'S Comparar células utilitário, você pode encontrar rapidamente os mesmos ou diferentes valores entre duas células. Clique para baixar o Kutools para Excel!

Kutools for Excel: com mais de 300 suplementos úteis do Excel, grátis para testar sem limitação em 30 dias. Baixe e teste grátis agora!


Artigo relacionado:

Como verificar se o número é inteiro no Excel?


As melhores ferramentas de produtividade para escritório

O Kutools for Excel resolve a maioria dos seus problemas e aumenta sua produtividade em 80%

  • armadilha para peixes: Insira rapidamente fórmulas complexas, gráficos e qualquer coisa que você tenha usado antes; Criptografar células com senha; Criar lista de discussão e enviar emails ...
  • Super Formula Bar (edite facilmente várias linhas de texto e fórmula); Layout de leitura (ler e editar facilmente um grande número de células); Colar na faixa filtrada...
  • Mesclar células / linhas / colunas sem perder dados; Dividir o conteúdo das células; Combinar linhas / colunas duplicadas... Evite células duplicadas; Comparar intervalos...
  • Selecione Duplicado ou Único Linhas; Selecione linhas em branco (todas as células estão vazias); Super Find e Fuzzy Find em muitos livros; Seleção aleatória ...
  • Cópia exata Várias células sem alterar a referência da fórmula; Criação automática de referências para várias folhas; Inserir marcadores, Caixas de seleção e mais ...
  • Extrair Texto, Adicionar texto, remover por posição, Remover Espaço; Criar e imprimir subtotais de paginação; Converter entre conteúdo de células e comentários...
  • Super Filtro (salvar e aplicar esquemas de filtro a outras planilhas); Classificação Avançada por mês / semana / dia, frequência e mais; Filtro Especial por negrito, itálico ...
  • Combine pastas de trabalho e planilhas; Mesclar tabelas com base em colunas-chave; Divida os dados em várias folhas; Conversão em lote de xls, xlsx e PDF...
  • Mais de 300 recursos poderosos. Suporta Office / Excel 2007-2019 e 365. Suporta todos os idiomas. Fácil implantação em sua empresa ou organização. Teste gratuito de 30 dias com recursos completos. Garantia de devolução do dinheiro em 60 dias.
guia kte 201905

Guia do Office traz interface com guias para o Office e torna seu trabalho muito mais fácil

  • Habilite a edição e leitura com guias em Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Abra e crie vários documentos em novas guias da mesma janela, em vez de em novas janelas.
  • Aumenta sua produtividade em 50% e reduz centenas de cliques do mouse para você todos os dias!
officetab bottom
Say something here...
symbols left.
You are guest
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.
    shabazali · 2 months ago
    hello sir, 
    i have 6 columns of 2 tables in different sheets, but i want to match 2nd tables data with 1st tables data.
  • To post as a guest, your comment is unpublished.
    Joanne · 4 months ago
    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
    • To post as a guest, your comment is unpublished.
      skyyang · 4 months ago
      Hello, Joanne,
      Can you give more details of your problem, or you can insert an image of your problem here?
      Thank you!
  • To post as a guest, your comment is unpublished.
    Prabakar · 4 months ago
    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 ?
    • To post as a guest, your comment is unpublished.
      skyyang · 4 months ago
      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.
  • To post as a guest, your comment is unpublished.
    MARTIN · 1 years ago
    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!
    • To post as a guest, your comment is unpublished.
      Robert K · 4 months ago
      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
  • To post as a guest, your comment is unpublished.
    Suresh badhani · 2 years ago
    sO GRAET HELPFUL
  • To post as a guest, your comment is unpublished.
    AG · 2 years ago
    =COUNTIF(A1:D1,A1)=4 ---> mind = blown
  • To post as a guest, your comment is unpublished.
    M.Irfan · 3 years ago
    how can i find the matching numbers in a column
  • To post as a guest, your comment is unpublished.
    ar · 3 years ago
    hi, i want to display the value / text of a table if a particular value is below 100. is there any option
  • To post as a guest, your comment is unpublished.
    Dal · 3 years ago
    Hi
    I need to highlight multiple numbers that appear three times or more in one column.
    Can anyone assist?
    Thanks
    • To post as a guest, your comment is unpublished.
      skyyang · 3 years ago
      Hello, Dal,
      To highlight the cell values that appear three times or more, the Conditional Formatting can help you. Please enter this formula into the Conditional Formatting: =COUNTIF($F$2:$F$500,F2)>2 (Note: Change the cell references to your need),and then choose one color for highlighting the cells.
  • To post as a guest, your comment is unpublished.
    Bob Olanski · 3 years ago
    The "And(Exact...." works great if you have a set range. In my case, It is multiple cells within a range of columns.

    Basically need the comparison to evaluate A7, B7, M7, AD7, AE7, AX7, BC7, and BQ7, and return "TRUE" if they are identical text.
    • To post as a guest, your comment is unpublished.
      Michael Hughart · 2 years ago
      Did you ever get an answer to this question?
      • To post as a guest, your comment is unpublished.
        Morné Combrink · 7 months ago
        =AND(EXACT(A1=D1),EXACT(A1=C1),EXACT(A1=B1),EXACT(B1=D1),EXACT(B1=C1),EXACT(C1=D1)) - Here all 4 columns are being evaluated and if all 4 are an exact match you will return "TRUE".
        The "EXACT(A1=D1)" can be used indefinitely, but I would then rather turn to a MATCH function for large checks.
        • To post as a guest, your comment is unpublished.
          Penny · 5 months ago
          You mean this:-

          =AND(EXACT(B17,D17),EXACT(B17,F17),EXACT(B17,H17), EXACT(D17,F17), EXACT(D17,H17), EXACT(F17,H17) )
  • To post as a guest, your comment is unpublished.
    sonia · 3 years ago
    i want to know part number from in one column is duplicated in any other cells of adjacent column
  • To post as a guest, your comment is unpublished.
    Paul · 3 years ago
    I have Cells A1=35, A2-45, A3=50, A4=75, A5=80, B1=40, B2=19, B3=55, B4=31, B5=22. In this, A1 IS 35 AND B1 IS 40. What I want to find out is find out whether anywhere else in the range the this combination is appear or repeated and how many times it is repeated i need to know. Can anyone help me out in this. If there is no formula, a vba would be helpful, thanks in advance.
    • To post as a guest, your comment is unpublished.
      skyyang · 3 years ago
      Hi, Paul,
      Can you give your problem more clearly and you can upload an attachment screenshot here.
      Thank you!
  • To post as a guest, your comment is unpublished.
    Jim T · 4 years ago
    Interesting, this fails for me in 2016 version
    • To post as a guest, your comment is unpublished.
      skyyang · 4 years ago
      Hello, Jim,
      The above formulas work well in Excel 2016, when you apply the first formula, please remeber to press Shift + Ctrl + Enter keys together to get the correct result.
      Please try again, thak you !
  • To post as a guest, your comment is unpublished.
    jignesh · 4 years ago
    i have six column a b c d e f, in column e i want to put higher value among a & c, and in column f it is dependent on e, like if e is a than b, if e is c than d. how could i solve this???
  • To post as a guest, your comment is unpublished.
    Holly · 4 years ago
    This worked great for me I did =And(exact(A2:C2,D2:F2)) to validate that cells A2-C2 exactly matched D2-F2.

    Thanks so much!
  • To post as a guest, your comment is unpublished.
    Shan · 4 years ago
    I wanted to compare the alphabets with 4 columns for every 4 rows. For example,
    A = [aabc;dbba;a] B = [aabc;baba;c] C = [aabc;dbba;b] D = [bcac;bcbc;a]

    If we look at the table above shows first four rows, "aabc" repeated in 3 columns. So, out of 4, 3 gets correct matching.it is 3/4. for the second cycle, we can see "dbba" repeated so it 2/4.This is for 4 rows vs 4 rows, now the same matching method for taking one line down, two line down and three line down comparing with other string. Means, the rows will be constant and just the alphabets changing. The formula can be in the new column say E and results will be there. Any idea?
  • To post as a guest, your comment is unpublished.
    Shan · 4 years ago
    How about comparing multiple rows with certain columns?
    I wanted to compare the alphabets with 4 columns for every 4 rows.For Example,

    A = [aabc;dbba;a] B = [aabc;baba;c] C = [aabc;dbba;b] D = [bcac;bcbc;a]

    If we look at the table above shows first four rows, "aabc" repeated in 3 columns. So, out of 4, 3 gets correct matching.it is 3/4. for the second cycle, we can see "dbba" repeated so it 2/4.This is for 4 rows vs 4 rows, now the same matching method for taking one line down, two line down and three line down comparing with other string. Means, the rows will be constant and just the alphabets changing. The formula can be written in a new cell may be the next column E. Any Idea?
  • To post as a guest, your comment is unpublished.
    Frances H · 4 years ago
    Useful formula - works great thanks. I'm curious why do you have to use Ctrl + Shift + Enter ?
  • To post as a guest, your comment is unpublished.
    Archana Maru · 4 years ago
    Hi there!! I am very new to this excel validation and hence do not know much. I am trying to write a function in which if the values in A1 to A10 is True then the result in A11 should show Accepted and if they are not same then the result should prompt Rejected. Can you please help me write a forumula for the same.
    Thanks
  • To post as a guest, your comment is unpublished.
    Mimi · 4 years ago
    The cells that i want to compare value are not next to each other. So when i separate them in the formula with a "," it doesn't work.
  • To post as a guest, your comment is unpublished.
    EricMartinson · 4 years ago
    This is a great tip and did exactly what I needed. Very helpful! Thanks!
  • To post as a guest, your comment is unpublished.
    Sergey · 4 years ago
    This doesn't work for me, the result is returned as #VALUE!
    • To post as a guest, your comment is unpublished.
      Damo · 4 years ago
      You are not doing the "Ctrl + Shift + Enter keys together to get the result" part... I had the same issue, then read further in the article
  • To post as a guest, your comment is unpublished.
    imran · 5 years ago
    What about the empty cells?
    I have data on multiple columns and the column count is not same
    data is spread across columns upto 17
    some have data up to 4 columns
    • To post as a guest, your comment is unpublished.
      Mayank · 3 months ago
      Hello Sir,
      How can i compare a single cell with the whole row
      • To post as a guest, your comment is unpublished.
        Justin · 3 months ago
        I am trying to find that our too, I hope there is a solution