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

or

Comment VLOOKUP et renvoyer plusieurs valeurs correspondantes horizontalement dans Excel?

doc-vlookup-horizontalement-1
Par défaut, la fonction RECHERCHEV peut renvoyer plusieurs valeurs correspondantes au niveau vertical dans Excel.Dans certains cas, vous souhaiterez peut-être renvoyer plusieurs valeurs au niveau horizontal comme illustré ci-dessous. Ici, je vais vous dire qu'une formule peut résoudre cette tâche.
RECHERCHEV et renvoyer plusieurs valeurs horizontalement

flèche bleue bulle droite RECHERCHEV et renvoyer plusieurs valeurs horizontalement

Par exemple, vous disposez d'une plage de données comme illustré ci-dessous, et vous souhaitez RECHERCHER les prix d'Apple.
doc-vlookup-horizontalement-2

1. Sélectionnez une cellule et tapez cette formule =INDEX($B$2:$B$9, SMALL(IF($A$11=$A$2:$A$9, ROW($A$2:$A$9)-ROW($A$2)+1), COLUMN(A1))) dedans, puis appuyez sur Maj + Ctrl + Entrée et faites glisser la poignée de remplissage automatique vers la droite pour appliquer cette formule jusqu'à #NUM! apparaît. Voir la capture d'écran:
doc-vlookup-horizontalement-3

2. Supprimez ensuite le #NOMBRE !. Voir la capture d'écran:
doc-vlookup-horizontalement-4

Pointe: Dans la formule ci-dessus, B2: B9 est la plage de colonnes dans laquelle vous souhaitez renvoyer les valeurs, A2: A9 est la plage de colonnes dans laquelle se trouve la valeur de recherche, A11 est la valeur de recherche, A1 est la première cellule de votre plage de données , A2 est la première cellule de la plage de colonnes dans laquelle se trouve la valeur de recherche.

Si vous souhaitez renvoyer plusieurs valeurs verticalement, vous pouvez lire cet article Comment rechercher une valeur renvoyant plusieurs valeurs correspondantes dans Excel?


Combinez facilement plusieurs feuilles / classeurs en une seule feuille ou classeur

Combiner plusieurs feuilles ou classeurs dans une feuille ou un classeur peut être édifiant dans Excel, mais avec le Combiner fonction dans Kutools for Excel, vous pouvez combiner fusionner des dizaines de feuilles / classeurs dans une feuille ou un classeur, vous pouvez également consolider les feuilles en une seule en plusieurs clics.  Cliquez pour un essai gratuit complet de 30 jours!
combiner des feuilles
 
Kutools for Excel: avec plus de 300 compléments Excel pratiques, essayez gratuitement sans limitation en 30 jours.


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.
    Tim · 3 months ago
    For anyone experiencing issues in a big data range, ensure you dont have any cells existent with "#N/A" or it will break it. Simple error but can be overlooked.
  • To post as a guest, your comment is unpublished.
    Hexa · 1 years ago
    Hello, I want to use keyword instead of specific text or value here for multiple return values, can you please share code formula for same.
  • To post as a guest, your comment is unpublished.
    MW · 1 years ago
    Hello - This formula worked perfectly - thank you! However, I want to apply it to a long list of lookup values. When I copy and paste the formula it obviously returns the same results as the first lookup value so I removed the $'s from $A$11, but that changes the result to something incorrect. How can I quickly apply this same formula for a long list of lookup values?

    Thank you!

    M
  • To post as a guest, your comment is unpublished.
    pernellefpapapa · 2 years ago
    Bonjour,

    J'ai retransposé mon problème exactement dans les mêmes positions de colonne que l'exemple et j’obtiens le message #VALEUR! dès la première case.

    Mon excel fonctionne en francais, j'ai tout retranscrit en francais, passé ";"au lieu de ",", appuyé sur CTRL+MAJ+Entrée... des idées sur l'origine du problème?

    Fanny
  • To post as a guest, your comment is unpublished.
    Frank · 2 years ago
    what you want to put the price in order of highest qty from column c?
  • To post as a guest, your comment is unpublished.
    gajanan · 2 years ago
    i have to find vertical value first, in vertical value there are more horizontal value and i have choose grater value which i have. which function or formula can help
  • To post as a guest, your comment is unpublished.
    Spark Shit · 4 years ago
    Hi. I have three google spreadsheet. First sheet is named "Summary. It is a table containing the name of our employee and number of evaluation in a week from 1-7. The next sheet is named "Chat Score"and third sheet is named Ëmail Score". What I want to to do is when we input a evaluation score to one of our employee it will be automatically recorded on the "Summary sheet" as evaluation 1 or 2 and so on and so forth. In short I want to get multiple return value in a single seach key across multiple sheet. I hope you can help. https://docs.google.com/spreadsheets/d/1lt-e4MxddUKg5xDt_0YchBiEgGe4mFKB-dHENwwtA6Y/edit?usp=sharing

    https://docs.google.com/spreadsheets/d/1lt-e4MxddUKg5xDt_0YchBiEgGe4mFKB-dHENwwtA6Y/edit?usp=sharing
  • To post as a guest, your comment is unpublished.
    Adam · 4 years ago
    Although I'm looking up my values in another worksheet (I don't think this should cause a problem?), I only seem to have success dragging to the right if I go in and change the +1 to '0' for the 1st instance of the lookup ID, '1' for the 2nd instance and so on. I know how many instances of the lookup ID I have so I can workaround. What do I need to change to allow me to successfully drag the fx across horizontally without needing to edit (i.e getting the #NUM to appear once there are no more lookup values to return).
    • To post as a guest, your comment is unpublished.
      Sunny · 4 years ago
      Sorry, I have not found any solutions about your problems. If you have found that, could you tell me? Thank u.
      • To post as a guest, your comment is unpublished.
        Rankee · 4 years ago
        Change Column to Row at the end of the formula

        "=INDEX($B$1:$B$206, SMALL(IF($A$209=$A$1:$A$206, ROW($A$1:$A$206)-ROW($A$1)+1), ROW(A1)))"
  • To post as a guest, your comment is unpublished.
    Abinaya · 4 years ago
    How to List all values(like list of groceries bought) caused by a specific value (by a person X) using VLOOK_UP and other possible formulas
    • To post as a guest, your comment is unpublished.
      Sunny · 4 years ago
      You mean that to list all grocerise a person need to buy, right? If so, you can refer to the formula in this article, and change the arguments as you need as below screenshot shown.
  • To post as a guest, your comment is unpublished.
    Dani · 4 years ago
    Hello, i type the formula and excel gives an error that says that the formula does not have enough arguments, any help?
  • To post as a guest, your comment is unpublished.
    Rob Jones · 4 years ago
    Just a quick note to all, if you change it to be:

    =IFERROR(INDEX($B$2:$B$9, SMALL(IF($A$11=$A$2:$A$9, ROW($A$2:$A$9)-ROW($A$2)+1), COLUMN(A1))),"None")

    The #NUM will become none or use "" to get a blank cell! Looks much tidier!
  • To post as a guest, your comment is unpublished.
    Richard G · 6 years ago
    I have a similar problem but different.

    Vlookup Multiple Values - Return MULTIPLE corresponding values for MULTIPLE Lookup Values

    The formula I have searches for words in a text strings, starting with A1, then adds categories from a large list of categories in a table on ANOTHER WORKSHEET 'Dynamic Categories Lists' , depending on the words found in the A1 string. This is formula is in B1. The amount of data is huge 19,000 text strings in row A.


    For examples the text string might say:
    A B C
    1 dog has black spots Dalmation
    2 dog is tall Large Dog

    My formula searches for "black spots" and returns " Dalmatians " to B1
    My formula searches for " dog is tall" - my formula searches " tall " and return " large dogs" to B2

    Formula in B1 is:
    =PROPER(IFERROR(LOOKUP(1E+100,SEARCH('Dynamic Categories Lists'!$A$1:$A$1000,A1),'Dynamic Categories Lists'!$A$1:$A$1000),""))

    'Dynamic Categories Lists' (DIFFERENT WORKSHEET)
    A B
    1 Search Word to Find Categories: List Paste
    2 black spots Dalmation
    3 tall Large Dog
    4 short Small Dog
    5 -1000 MORE -1000 MORE


    My problem is I need to find the 2nd, 3rd, 4th occurrences

    Example
    A B C D
    1 dog has black spots Dalmation
    2 dog is tall Large Dog
    3
    4 dog has black spots and is tal Dalmation Large Dog


    A4 "dog has black spots and is tall" I want the formula to return "Dalmation" & "large dog" to B3

    Any help would be appreciated. I have searched heaps of threads and haven’t been able to find the answer!
  • To post as a guest, your comment is unpublished.
    Richard G · 6 years ago
    Thanks for your tips on

    I have a similar problem but different.

    Vlookup Multiple Values - Return MULTIPLE corresponding values for MULTIPLE Lookup Values

    The formula I have searches for words in a text strings, starting with A1, then adds categories from a large list of categories in a table on ANOTHER WORKSHEET 'Dynamic Categories Lists' , depending on the words found in the A1 string. This is formula is in B1. The amount of data is huge 19,000 text strings in row A.


    For examples the text string might say:
    A B C
    1 dog has black spots Dalmation
    2 dog is tall Large Dog

    My formula searches for "black spots" and returns " Dalmatians " to B1
    My formula searches for " dog is tall" - my formula searches " tall " and return " large dogs" to B2

    Formula in B1 is:
    =PROPER(IFERROR(LOOKUP(1E+100,SEARCH('Dynamic Categories Lists'!$A$1:$A$1000,A1),'Dynamic Categories Lists'!$A$1:$A$1000),""))

    'Dynamic Categories Lists' (DIFFERENT WORKSHEET)
    A B
    1 Search Word to Find Categories: List Paste
    2 black spots Dalmation
    3 tall Large Dog
    4 short Small Dog
    5 -1000 MORE -1000 MORE


    My problem is I need to find the 2nd, 3rd, 4th occurrences

    Example
    A B C D
    1 dog has black spots Dalmation
    2 dog is tall Large Dog
    3
    4 dog has black spots and is tal Dalmation Large Dog


    A4 "dog has black spots and is tall" I want the formula to return "Dalmation" & "large dog" to B3

    Any help would be appreciated. I have searched heaps of threads and haven’t been able to find the answer!
  • To post as a guest, your comment is unpublished.
    Summer · 6 years ago
    I have a spreadsheet with 115 client names in it that I pull values on each day from one tab to another using a vlookup. Another person in the office updates the values each day by pasting new values along with the corresponding client names. Client names are pasted on the 'PVAL' tab in column A and client values are pasted in column B. On the tab named Master we run a vlookup for the client names starting in cell N6 (the matching client name is listed in cell AB6). The vlookup is =VLOOKUP(AB6,PortDescPortVal,2,FALSE) Every day we update the spreadsheet there are the same 10 client names that will not automatically update. I have to go to the PVAL tab everyday and retype the client names for those 10 and then the data will update. It works for the rest of the clients every day. Also note that the person who updates the data has tried retyping their names for me but for some reason when she retypes their names the lookup still won't work. I can't find a setting in her Excel that differs from mine. I have ensured that all of the client names are in the array. I cannot for the life of me figure out what the problem is here and why I have to retype 10 out of 115 client names each and every day for the lookup to work. HELP!
    • To post as a guest, your comment is unpublished.
      guest · 3 years ago
      Try add columns (change to your ss range and get rid of the False argument like this; =VLOOKUP(AB6,'PortDescPortVal'!A:AA,2,)

      Maybe Refresh All in Data tab