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

or

Hoe vind ik vlookup om de eerste, 2e of n-de matchwaarde in Excel te vinden?

Stel dat u twee kolommen heeft met producten en hoeveelheden, zoals onderstaand screenshot. Wat zou u doen om snel de hoeveelheden van de eerste of tweede banaan te achterhalen?

Hier kan de vlookup-functie u helpen bij het oplossen van dit probleem. In dit artikel laten we u zien hoe u de eerste, tweede of de nde matchwaarde kunt vinden met de Vlookup-functie in Excel.

Vlookup vindt de eerste, 2e of n-de matchwaarde in Excel met formule

Zoek eenvoudig de eerste matchwaarde in Excel met Kutools voor Excel


Vlookup vindt de eerste, tweede of nde matchwaarde in Excel

Ga als volgt te werk om de eerste, tweede of nde matchwaarde in Excel te vinden.

1. Voer in cel D1 de criteria in die u wilt opvullen, hier voer ik Banana in.

2. Hier vinden we de eerste matchwaarde van banaan. Selecteer een lege cel zoals E2, kopieer en plak de formule =INDEX($B$2:$B$6,MATCH(TRUE,EXACT($D$1,$A$2:$A$6),0)) in de formulebalk en druk vervolgens op Ctrl + Shift + Enter toetsen tegelijk.

Opmerking:: In deze formule is $ B $ 2: $ B $ 6 het bereik van de overeenkomende waarden; $ A $ 2: $ A $ 6 is het bereik met alle criteria voor vlookup; $ D $ 1 is de cel met de opgegeven vlookup-criteria.

Dan krijg je de eerste matchwaarde van banaan in cel E2. Met deze formule kunt u alleen de eerste overeenkomstige waarde krijgen op basis van uw criteria.

Om een ​​n-de relatieve waarde te krijgen, kunt u de volgende formule toepassen: =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1)) + Ctrl + Shift + Enter sleutels samen, retourneert deze formule de eerste overeenkomende waarde.

Notes:

1. Wijzig de bovenstaande formule in om de tweede overeenkomende waarde te vinden =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),2))en druk vervolgens op Ctrl + Shift + Enter toetsen tegelijk. Zie screenshot:

2. Het laatste getal in de bovenstaande formule betekent de n-de overeenkomstwaarde van de vlookup-criteria. Als u dit wijzigt in 3, krijgt het de derde overeenkomstwaarde en verandert u in n, de nde overeenkomstwaarde wordt ontdekt.


Vlookup vindt de eerste matchwaarde in Excel met Kutools voor Excel

YU kunt gemakkelijk de eerste overeenkomstwaarde in Excel vinden zonder formules met de Zoek een waarde in de lijst formule formule van Kutools for Excel.

Voor het aanvragen Kutools for Excel, Dan kunt u download en installeer het eerst.

1. Selecteer een cel om de eerste overeenkomende waarde te zoeken (zegt cel E2) en klik op Kutools > Formule Helper > Formule Helper. Zie screenshot:

3. In de Formule Helper dialoogvenster, configureer dan als volgt:

  • 3.1 In het Kies een formule box, zoek en selecteer Zoek een waarde in de lijst;
    Tips: U kunt de Filteren typ een bepaald woord in het tekstvak om de formule snel te filteren.
  • 3.2 In het Tabel_array vak, selecteer het tabel die de eerste overeenkomende waardewaarden bevat.;
  • 3.2 In het Opzoekwaarde selecteert u de cel met de criteria u retourneert de eerste waarde op basis van;
  • 3.3 In het Kolom vak, specificeert u de kolom waaruit u de overeenkomende waarde wilt retourneren. Of u kunt het kolomnummer rechtstreeks in het tekstvak invoeren als u dat wilt.
  • 3.4 Klik op de OK knop. Zie screenshot:

Nu wordt de bijbehorende celwaarde automatisch ingevuld in cel C10 op basis van de selectie van de vervolgkeuzelijst.

  Als u een gratis proefperiode (30 dagen) van dit hulpprogramma wilt, klik om het te downloaden, en ga vervolgens de bewerking toepassen volgens de bovenstaande stappen.


De beste tools voor kantoorproductiviteit

Kutools voor Excel lost de meeste van uw problemen op en verhoogt uw productiviteit met 80%

  • visfuik: Snel invoegen complexe formules, grafieken en alles wat je eerder hebt gebruikt; Versleutel cellen met wachtwoord; Maak een mailinglijst en stuur e-mails ...
  • Super Formula-balk (bewerk eenvoudig meerdere regels tekst en formule); Lay-out lezen (gemakkelijk grote aantallen cellen lezen en bewerken); Plakken in gefilterd bereik...
  • Voeg cellen / rijen / kolommen samen zonder gegevens te verliezen; Gespleten cellen inhoud; Combineer dubbele rijen / kolommen... Voorkom dubbele cellen; Vergelijk Ranges...
  • Selecteer Dupliceren of Uniek Rijen; Selecteer lege rijen (alle cellen zijn leeg); Super zoeken en fuzzy zoeken in veel werkboeken; Willekeurige selectie ...
  • Exacte kopie Meerdere cellen zonder de formuleverwijzing te wijzigen; Maak automatisch verwijzingen naar meerdere bladen; Plaats kogels, Selectievakjes en meer ...
  • Extraheer tekst, Tekst toevoegen, Verwijderen op positie, Ruimte verwijderen; Paging-subtotalen maken en afdrukken; Converteren tussen celinhoud en opmerkingen...
  • Super filter (bewaar en pas filterschema's toe op andere bladen); Geavanceerd sorteren per maand / week / dag, frequentie en meer; Speciaal filter door vet, cursief ...
  • Combineer werkmappen en werkbladen; Tabellen samenvoegen op basis van sleutelkolommen; Gegevens splitsen in meerdere bladen; Batch Converteer xls, xlsx en PDF...
  • Meer dan 300 krachtige functies. Ondersteunt Office / Excel 2007-2019 en 365. Ondersteunt alle talen. Eenvoudig te implementeren in uw onderneming of organisatie. Gratis proefperiode van 30 dagen met volledige functies. 60 dagen geld-terug-garantie.
kte tabblad 201905

Office-tabblad Brengt een interface met tabbladen naar Office en maakt uw werk veel gemakkelijker

  • Schakel bewerken en lezen met tabbladen in Word, Excel, PowerPoint in, Publisher, Access, Visio en Project.
  • Open en maak meerdere documenten in nieuwe tabbladen van hetzelfde venster in plaats van in nieuwe vensters.
  • Verhoogt uw productiviteit met 50% en vermindert elke dag honderden muisklikken voor u!
officetab onderkant
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.
    emenson · 26 days ago
    What if the next record  on col b is a duplicate how do ignore duplicate? Let's Banana has quantities  of 200 twice? Can you please help me figure out how to ignore the duplicate? 
  • To post as a guest, your comment is unpublished.
    Demco K · 1 months ago
    Cna anybody Explain the small function with the IF statement for me please? I don't really understand how that array works :( 
  • To post as a guest, your comment is unpublished.
    SC · 4 months ago
    The following formulas works perfect for me:

    (a) 
    or
    (b) =IF(H8='Raw Data'!B4,INDEX('Raw Data'!H6:H20,SMALL(IF(C18='Raw Data'!B6:B20,ROW('Raw Data'!B6:B20)-ROW('Raw Data'!B6:B20)+1),1)))

    However, I have encountered a problem where there are 7 sets of the same criteria but in different columns:
    (1) can the above formula (a) be repeated and search in a different cells in a single formula and
    (2) the above formula (b) only allows up to two sets of the similar search with matched value result but when trying for the third set in the formula as showed below, Microsoft Excel appeared as "You've entered too many arguments for this function."

    =IF(H8='Raw Data'!J4,INDEX('Raw Data'!P6:P20,SMALL(IF(C18='Raw Data'!J6:J20,ROW('Raw Data'!J6:J20)-ROW('Raw Data'!J6:J20)+1),1))),
  • To post as a guest, your comment is unpublished.
    Cesar B · 10 months ago
    What do Ctrl + Shift + Enter do?? At the beginning I didn'
    • To post as a guest, your comment is unpublished.
      crystal · 10 months ago
      Hi,
      An array formula needs to hit the Ctrl + Shift + Enter keys simultaneously to get the correct result.
  • To post as a guest, your comment is unpublished.
    Shahzad Afzal · 1 years ago
    I have a scenario... How do I get last price of anything for reference... Example: Banana first price was 200... While purchasing for second time; I need to display 200 in my expected price cell and then if I buy that on the day at 220, I will put this value manually as 220... Whenever next time I will buy banana; I need to display 220 from the last purchase price
  • To post as a guest, your comment is unpublished.
    Hoori · 1 years ago
    Perfect explanation, thanks.
  • To post as a guest, your comment is unpublished.
    rasho · 2 years ago
    If the first or any of the other entry's for 'banana' column B was blank cell, of which I don't require this number, what changes are required to this formula to skip blank cell in column B.
    • To post as a guest, your comment is unpublished.
      rasho · 2 years ago
      Sorry I am using this formula
      =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1))
      • To post as a guest, your comment is unpublished.
        rasho · 2 years ago
        SOLVED:
        =SMALL(IF(A2:A7=D1,IF(B2:B7<>"",B2:B7)),1)

        If 2nd or 3rd number required exchange ),1) to 2 or 3

        This formula does not require index, as it directly looks at the value in Cell
        • To post as a guest, your comment is unpublished.
          rasho · 2 years ago
          Correction to previous formula:
          The value was reading either the lesser or greater.

          Updated formula
          =INDEX($B$2:$B$7,SMALL(IF($A2:$A6=$D$1,IF($B$2:$B$7<>"",ROW($A2:$A6)-ROW($A2)+1)),1))

          This skips blank cell and places value of non blank cell. Replace +1 with +2 or +3 for 2nd or 3rd value
  • To post as a guest, your comment is unpublished.
    JAntonio · 2 years ago
    And if you want the last, second last, nth last just add a counter (count the number of events already hapenned) to the end and subtract it by 0,1,n respectively.

    Thank you so much! I was searching for this for a long time
    • To post as a guest, your comment is unpublished.
      crystal · 2 years ago
      Good Day,
      Sorry can't help you with this yet. Thank you for your comment.
  • To post as a guest, your comment is unpublished.
    Seth · 2 years ago
    Is it possible to find an average of the non-unique data. Or would it be possible to have a list dropdown on the cell of the various values?
    • To post as a guest, your comment is unpublished.
      crystal · 2 years ago
      Good Day,
      Sorry can't help you with this yet. Thank you for your comment.
  • To post as a guest, your comment is unpublished.
    Santosh · 2 years ago
    if a member was called on 1st October (October Data Set)as and it wasn’t revived, again the cce called him on 15th November(November Data Set). The member is revived on 16th November. While checking the revival using VLookup it makes YES to both the entries of October & November. How to avoid like it should show “YES” for the November entry actually when it was revived, and also leave the October entry as “NO”.
  • To post as a guest, your comment is unpublished.
    Sim Van Narith · 3 years ago
    Dear Ms/Mr,

    I have a problem:
    I knew a quantities of the product, I want to finding out the product name of the first or second match value of 200, what would you do?
    Big Thanks !

    Sim Van Narith
    • To post as a guest, your comment is unpublished.
      crystal · 3 years ago
      Good day,
      Supposing the value of 200 locates in cell F2, please try this formula: =VLOOKUP(F2,IF({1,0},$B$2:$B$7,$A$2:$A$7),2,0).
      Hope it can help. Thanks for your comment.
  • To post as a guest, your comment is unpublished.
    Matt · 3 years ago
    Is it possible to use this formula to find if a number is between two numbers. Below is my formula. Trying to see if a listing with individuals and an amount is between to other set cells (Example: $50,000 and $74,999)


    =ArrayFormula(INDEX('4 - Donors List'!$B$2:$B$1000,SMALL(IF('4 - Donors List'!$F$2:$F$1000>=D$2,ROW('4 - Donors List'!$F$2:$F$1000)-ROW('4 - Donors List'!$F$2)+1),$A6)))
  • To post as a guest, your comment is unpublished.
    R. G. · 3 years ago
    I have a little problem with this formula, it doesn't work exactly for my case:
    =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),1)) + Ctrl + Shift + Enter

    what if the criteria I am looking for is not exactly the same each time (Banana), but rather it becomes part of a phrase (banana republic) and so on; what then? By changing the "n" number at the end of this formula, I get "#NUM!" response. I have a column of vocabulary that I want to search for their meaning in the second column, and by typing one word, I need to get all occurrence of that word in any phrase to be listed. Any help on this?
    Thanks,
    R.G.
  • To post as a guest, your comment is unpublished.
    Christina · 3 years ago
    My current formula is {=IFERROR(INDEX(Sheet3!$C$2:$C$596,SMALL(IF(Sheet3!$A$2:$A$596=Sheet2!A19,ROW(Sheet3!$A$2:$A$596)-ROW(INDEX(Sheet3!$A$2:$A$596,1,1))+1),P19)),0)} But how would I apply this with multiple criteria, say two matches?
    • To post as a guest, your comment is unpublished.
      sunil · 2 years ago
      My problem is similar
      ping me if you find solution
      • To post as a guest, your comment is unpublished.
        Jones · 2 years ago
        create an auxiliary column wich concatenates your criterias, then use the concatenate as the criteria!

        Hope it works!
  • To post as a guest, your comment is unpublished.
    JB · 3 years ago
    Awesome tutorial! Worked like a charm, even across multiple sheets in the same file! Many thanks!!
  • To post as a guest, your comment is unpublished.
    Abby · 4 years ago
    Hi,
    I applied this formula but in my case I have numbers in place of the product name. When I drag down the formula to look for the next number in the list I get an error.

    events volume odd events only volume
    1 0.3 1 0.3
    1 2.5 1 2.5
    2 1.1 3 #NUM
    2 0.5 3 #NUM
    3 0
    3 0.2
    3 1
    • To post as a guest, your comment is unpublished.
      crystal · 4 years ago
      Dear Abby,
      The drag down feature can only work for same vlookup values. But in your case, the vlookup values are different (1 and 3).
      Please use this array formula: =IFERROR(INDEX($B$2:$B$8,SMALL(IF($C$4=$A$2:$A$8,ROW($A$2:$A$8)-ROW($A$2)+1),1+(ROW(A1)-1))), "") + Ctrol + Shift + Enter, and drag down the formula to get all matched values in the same vlookup value as below screenshot shown.
  • To post as a guest, your comment is unpublished.
    Warthogb · 4 years ago
    How can I increase last number automatically when dragging the formula down: =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),2)),
    • To post as a guest, your comment is unpublished.
      crystal · 4 years ago
      Dear Warthogb,

      If you want to automatically get all matched values by dragging the formula down, please apply the following array formula:



      =IFERROR(INDEX($B$2:$B$7,SMALL(IF($D$1=$A$2:$A$7,ROW($A$2:$A$7)-ROW($A$2)+1),1+(ROW(A1)-1))), "") + Ctrl + Shift + Enter
      • To post as a guest, your comment is unpublished.
        Warthogb · 4 years ago
        Crystal, Many many thanks, have only had a chance today 27/8/48 to see your help, will do formula later today :)
  • To post as a guest, your comment is unpublished.
    Ferdhy · 4 years ago
    =Sumproduct(((A2:A6)=D1)*((B2:B6)=Max(B2:B6))*(B2:B6))
    • To post as a guest, your comment is unpublished.
      Nithin · 4 years ago
      [quote name="Ferdhy"]=Sumproduct(((A2:A6)=D1)*((B2:B6)=Max(B2:B6))*(B2:B6))[/quote]
      i appreciate your help FERDHY. i tried out the formula , but since max(B2:B6) is 500 (orange), the value i get is 0.
      • To post as a guest, your comment is unpublished.
        Ferdhy · 4 years ago
        Hi,
        Just use this =SUMPRODUCT(MAX(((A2:A8)=D1)*(B2:B8)))
        once you change in D1 and put Banana, you should get 300 , if you put Orange, you will get 500.

        Ferdhy
        • To post as a guest, your comment is unpublished.
          Rita · 4 years ago
          You can also use:
          =max(if(A2:A6=D1, B2:B6)) + Ctrl + Shift + Enter
  • To post as a guest, your comment is unpublished.
    Nithin · 4 years ago
    How to find the maximum value of Bananaa
  • To post as a guest, your comment is unpublished.
    Nithin · 4 years ago
    Help me to find the maximum value of Bananaa using a formula . Ie to display 300
  • To post as a guest, your comment is unpublished.
    Dynes · 4 years ago
    If the value result is #NUM! could you please show me the formula to add so it will return to ZERO result.

    Thank you
    • To post as a guest, your comment is unpublished.
      alan · 4 years ago
      Just add IFERROR(your formula, the result you want to return), for example, the formula is =sum(A1:A6), then it would convert to =IFERROR(sum(A1:A6),""), it will return blank if the result is error like #NUM!.
  • To post as a guest, your comment is unpublished.
    MT · 5 years ago
    What if the banana can be yellow or green, how can we use this formula to show the right quantity based on two values (instead of one just now)? Thanks for your help!
  • To post as a guest, your comment is unpublished.
    Danish · 5 years ago
    Thank you so much!!!
  • To post as a guest, your comment is unpublished.
    EKTA SINGH · 5 years ago
    Hi

    Can you provide the video for the above mentioned formula to fatch the 2nd ,3rd value of the data