Dans le monde passionnant des feuilles de calcul, il existe une formule magique qui peut vous aider à trouver rapidement et facilement des données spécifiques dans vos tableaux de nombres et de texte. Cette formule magique, c’est la formule “CONTIENT”.
Les bases de la formule CONTIENT
La formule CONTIENT est une fonction de recherche qui vous permet de trouver une chaîne de texte spécifique au sein d’une cellule ou d’une plage de cellules. Sa syntaxe est simple : CONTIENT(cellule_ou_plage, chaîne_de_texte)
Par exemple, si vous avez une liste de noms de clients dans la colonne A et que vous voulez trouver tous les clients dont le nom contient la lettre “M”, vous pouvez utiliser la formule suivante : CONTIENT(A1:A100, "M")
Utiliser des caractères génériques
Pour rendre votre recherche plus flexible, vous pouvez utiliser des caractères génériques dans votre chaîne de texte. Les caractères génériques les plus couramment utilisés sont l’astérisque (*) et le point d’interrogation (?).
L’astérisque remplace n’importe quel nombre de caractères, tandis que le point d’interrogation remplace un seul caractère. Par exemple, si vous voulez trouver tous les clients dont le nom commence par la lettre “L”, vous pouvez utiliser la formule suivante : CONTIENT(A1:A100, "L?")
Rechercher une partie de mot
Si vous voulez trouver une partie de mot au lieu d’un mot entier, vous pouvez utiliser la fonction CONTIENT avec l’opérateur “&”. Par exemple, si vous voulez trouver tous les clients dont le nom contient la chaîne “jean”, vous pouvez utiliser la formule suivante : CONTIENT(A1:A100, "&jean&")
Trouver des données dans plusieurs colonnes
Si vous voulez rechercher des données dans plusieurs colonnes, vous pouvez utiliser la fonction CONTIENT avec la fonction RECHERCHEV. Par exemple, si vous avez une liste de clients dans les colonnes A à C et que vous voulez trouver tous les clients dont le nom contient la lettre “M” et qui habitent à Paris, vous pouvez utiliser la formule suivante : CONTIENT(RECHERCHEV(A1:A100, B1:C100, 2, FAUX), "M")
Conclusion
La formule CONTIENT est un outil puissant qui peut vous aider à trouver rapidement et facilement des données spécifiques dans vos feuilles de calcul. En utilisant des caractères génériques et l’opérateur “&”, vous pouvez rendre votre recherche encore plus flexible. Et en combinant la fonction CONTIENT avec d’autres fonctions, vous pouvez créer des formules complexes qui répondent à vos besoins spécifiques.
No Comment! Be the first one.