Note: The other languages of the website are Google-translated. Back to English
Se connecter  \/ 
x
or
x
INSCRIPTION  \/ 
x

or

Comment comparer si plusieurs cellules sont égales dans Excel?

Comme nous le savons tous, pour comparer si deux cellules sont égales, nous pouvons utiliser la formule A1 = B1. Mais, si vous souhaitez vérifier si plusieurs cellules ont la même valeur, cette formule ne fonctionnera pas. Aujourd'hui, je vais parler de quelques formules pour comparer si plusieurs cellules sont égales dans Excel.

Comparer si plusieurs cellules sont égales aux formules


flèche bleue bulle droite Comparer si plusieurs cellules sont égales aux formules

En supposant que j'ai la plage de données suivante, j'ai maintenant besoin de savoir si les valeurs de A1: D1 sont égales, pour résoudre cette tâche, les formules suivantes vous aideront.

doc-check-if-equal-cells-1

1. Dans une cellule vide à côté de vos données, veuillez entrer cette formule: = ET (EXACT (A1: D1, A1)), (A1: D1 indique les cellules que vous souhaitez comparer, et A1 est la première valeur de votre plage de données) voir capture d'écran:

doc-check-if-equal-cells-2

2. Puis appuyez Ctrl + Maj + Entrée clés ensemble pour obtenir le résultat, si les valeurs de cellule sont égales, il affichera VRAI, sinon, il affichera FAUX, voir capture d'écran:

doc-check-if-equal-cells-3

3. Et sélectionnez la cellule puis faites glisser la poignée de remplissage vers la plage à laquelle vous souhaitez appliquer cette formule, vous obtiendrez le résultat comme suit:

doc-check-if-equal-cells-4

Notes:

1. La formule ci-dessus est sensible à la casse.

2. Si vous devez comparer les valeurs sans respecter la casse, vous pouvez appliquer cette formule: = NB.SI (A1: D1, A1) = 4, (A1: D1 indique les cellules que vous souhaitez comparer, A1 est la première valeur de votre plage de données et le nombre 4 fait référence au nombre de cellules dont vous souhaitez vérifier si), puis appuyez sur Entrer key, et vous obtiendrez le résultat suivant:

doc-check-if-equal-cells-5


Comparez deux plages et trouvez si les cellules sont égales ou non

Avec Kutools pour Excel's Comparer les cellules utilitaire, vous pouvez trouver rapidement des valeurs identiques ou différentes entre deux cellules. Cliquez pour télécharger Kutools for Excel!

Kutools pour Excel: avec plus de 300 compléments Excel pratiques, essai gratuit sans limitation dans 30 jours. Téléchargez et essayez gratuitement maintenant!


Article connexe:

Comment vérifier si le nombre est entier dans Excel?


Les meilleurs outils de productivité de bureau

Kutools for Excel résout la plupart de vos problèmes et augmente votre productivité de 80%

  • Réutilisation: Insérer rapidement formules complexes, graphiques et tout ce que vous avez utilisé auparavant; Crypter les cellules avec mot de passe; Créer une liste de diffusion et envoyer des e-mails ...
  • Barre Super Formula (modifiez facilement plusieurs lignes de texte et de formule); Disposition de lecture (lire et modifier facilement un grand nombre de cellules); Coller dans la plage filtrée...
  • Fusionner les cellules / lignes / colonnes sans perdre de données; Contenu des cellules divisées; Combiner des lignes / colonnes en double... Empêcher les cellules en double; Comparer les gammes...
  • Sélectionnez Dupliquer ou Unique Lignes; Sélectionnez les lignes vides (toutes les cellules sont vides); Super Find et Fuzzy Find dans de nombreux classeurs; Sélection aléatoire ...
  • Copie exacte Plusieurs cellules sans changer la référence de formule; Créer automatiquement des références à plusieurs feuilles; Insérer des puces, Cases à cocher et plus encore ...
  • Extrait du texte, Ajouter du texte, Supprimer par position, Supprimer l'espace; Créer et imprimer des sous-totaux de pagination; Conversion entre le contenu et les commentaires des cellules...
  • Super filtre (enregistrer et appliquer des schémas de filtrage à d'autres feuilles); Tri avancé par mois / semaine / jour, fréquence et plus; Filtre spécial par gras, italique ...
  • Combiner des classeurs et des feuilles de travail; Fusionner les tableaux en fonction des colonnes clés; Diviser les données en plusieurs feuilles; Conversion par lots xls, xlsx et PDF...
  • Plus de 300 fonctionnalités puissantes. Prend en charge Office / Excel 2007-2019 et 365. Prend en charge toutes les langues. Déploiement facile dans votre entreprise ou organisation. Essai gratuit de 30 jours. Garantie de remboursement de 60 jours.
onglet kte 201905

Office Tab apporte une interface à onglets à Office et simplifie considérablement votre travail

  • Activer l'édition et la lecture par onglets dans Word, Excel, PowerPoint, Publisher, Access, Visio et Project.
  • Ouvrez et créez plusieurs documents dans de nouveaux onglets de la même fenêtre, plutôt que dans de nouvelles fenêtres.
  • Augmente votre productivité de 50% et réduit des centaines de clics de souris chaque jour!
bas de cabine
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.
    Gil · 18 hours ago
    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.
  • To post as a guest, your comment is unpublished.
    shabazali · 3 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