Vai al contenuto principale

Come visualizzare il primo, secondo o ennesimo valore di corrispondenza in Excel?

Supponendo di avere due colonne con Prodotti e quantità come mostrato nell'immagine sottostante. Per scoprire rapidamente le quantità della prima o della seconda banana, cosa faresti?

Qui la funzione vlookup può aiutarti ad affrontare questo problema. In questo articolo, ti mostreremo come vlookup trovare il primo, il secondo o l'ennesimo valore di corrispondenza con la funzione Vlookup in Excel.

Vlookup trova il primo, il secondo o l'ennesimo valore di corrispondenza in Excel con la formula

vlookup trova facilmente il primo valore di corrispondenza in Excel con Kutools per Excel


Vlookup trova il primo, il secondo o l'ennesimo valore di corrispondenza in Excel

Si prega di fare quanto segue per trovare il primo, il secondo o l'ennesimo valore di corrispondenza in Excel.

1. Nella cella D1, inserisci i criteri che desideri visualizzare, qui inserisco Banana.

2. Qui troveremo il primo valore di corrispondenza di banana. Seleziona una cella vuota come E2, copia e incolla la formula =INDEX($B$2:$B$6,MATCH(TRUE,EXACT($D$1,$A$2:$A$6),0)) nella barra della formula, quindi premere Ctrl + Shift + entrare tasti contemporaneamente.

Note:: In questa formula, $ B $ 2: $ B $ 6 è l'intervallo dei valori corrispondenti; $ A $ 2: $ A $ 6 è l'intervallo con tutti i criteri per vlookup; $ D $ 1 è la cella contenente i criteri di vlookup specificati.

Quindi otterrai il primo valore di corrispondenza della banana nella cella E2. Con questa formula, puoi ottenere solo il primo valore corrispondente in base ai tuoi criteri.

Per ottenere l'ennesimo valore relativo, puoi applicare la seguente formula: =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 + entrare chiavi insieme, questa formula restituirà il primo valore abbinato.

Note:

1. Per trovare il secondo valore di corrispondenza, modificare la formula precedente in =INDEX($B$2:$B$6,SMALL(IF($D$1=$A$2:$A$6,ROW($A$2:$A$6)-ROW($A$2)+1),2))e quindi premere Ctrl + Shift + entrare tasti contemporaneamente. Vedi screenshot:

2. L'ultimo numero nella formula sopra indica l'ennesimo valore di corrispondenza dei criteri di vlookup. Se lo cambi in 3, otterrà il terzo valore di corrispondenza e cambierà in n, verrà scoperto l'ennesimo valore di corrispondenza.


Vlookup trova il primo valore di corrispondenza in Excel con Kutools per Excel

YPuoi facilmente trovare il primo valore di corrispondenza in Excel senza ricordare le formule con l'estensione Cerca un valore nell'elenco formula formula di Kutools for Excel.

Prima di applicare Kutools for Excel, Per favore scaricalo e installalo prima.

1. Selezionare una cella per individuare il primo valore corrispondente (detta cella E2), quindi fare clic su Kutools > formula Helper > formula Helper. Vedi screenshot:

3. Nel formula Helper finestra di dialogo, configurare come segue:

  • 3.1 Nel Scegli una formula casella, trova e seleziona Cerca un valore nell'elenco;
    Suggerimenti:: Puoi controllare il file Filtro casella, immettere una determinata parola nella casella di testo per filtrare rapidamente la formula.
  • 3.2 Nel Matrice di tabella selezionare la casella tabella che contiene i primi valori di valore corrispondenti.;
  • 3.2 Nel Valore di ricerca selezionare la cella che contiene il file criteri restituirai il primo valore basato su;
  • 3.3 Nel Colonna casella, specifica la colonna da cui restituirai il valore corrispondente. Oppure puoi inserire il numero della colonna nella casella di testo direttamente di cui hai bisogno.
  • 3.4 Fare clic su OK pulsante. Vedi screenshot:

Ora il valore della cella corrispondente verrà popolato automaticamente nella cella C10 in base alla selezione dell'elenco a discesa.

  Se desideri avere una prova gratuita (30 giorni) di questa utility, fare clic per scaricarlo, quindi andare ad applicare l'operazione secondo i passaggi precedenti.

I migliori strumenti per la produttività in ufficio

🤖 Assistente AI di Kutools: Rivoluziona l'analisi dei dati basandosi su: Esecuzione intelligente   |  Genera codice  |  Crea formule personalizzate  |  Analizzare i dati e generare grafici  |  Richiama le funzioni di Kutools...
Funzioni popolari: Trova, evidenzia o identifica i duplicati   |  Elimina righe vuote   |  Combina colonne o celle senza perdere dati   |   Round senza formula ...
Super ricerca: VLookup a criteri multipli    VLookup a valori multipli  |   VLookup su più fogli   |   Ricerca fuzzy ....
Elenco a discesa avanzato: Crea rapidamente un elenco a discesa   |  Elenco a discesa dipendente   |  Elenco a discesa a selezione multipla ....
Gestore di colonna: Aggiungi un numero specifico di colonne  |  Sposta colonne  |  Attiva/disattiva lo stato di visibilità delle colonne nascoste  |  Confronta intervalli e colonne ...
Funzionalità in primo piano: Messa a fuoco della griglia   |  Vista di progettazione   |   Grande barra delle formule    Gestore di cartelle di lavoro e fogli   |  Resource Library (Testo automatico)   |  Date picker   |  Combina fogli di lavoro   |  Crittografa/decrittografa le celle    Invia e-mail per elenco   |  Super filtro   |   Filtro speciale (filtro grassetto/corsivo/barrato...) ...
I 15 migliori set di strumenti12 Testo Strumenti (aggiungi testo, Rimuovi personaggi, ...)   |   50+ Grafico Tipi (Diagramma di Gantt, ...)   |   40+ Pratico Formule (Calcola l'età in base al compleanno, ...)   |   19 Inserimento Strumenti (Inserisci il codice QR, Inserisci immagine dal percorso, ...)   |   12 Conversione Strumenti (Numeri in parole, Conversione di valuta, ...)   |   7 Unisci e dividi Strumenti (Combina righe avanzate, Celle divise, ...)   |   ... e altro ancora

Potenzia le tue competenze di Excel con Kutools per Excel e sperimenta l'efficienza come mai prima d'ora. Kutools per Excel offre oltre 300 funzionalità avanzate per aumentare la produttività e risparmiare tempo.  Fai clic qui per ottenere la funzionalità di cui hai più bisogno...

Descrizione


Office Tab porta l'interfaccia a schede in Office e semplifica notevolmente il tuo lavoro

  • Abilita la modifica e la lettura a schede in Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Apri e crea più documenti in nuove schede della stessa finestra, piuttosto che in nuove finestre.
  • Aumenta la produttività del 50% e riduce ogni giorno centinaia di clic del mouse!
Comments (43)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
You only return first match with VLOOKUP so your article "How To Vlookup Find The First, 2nd Or Nth Match Value In Excel?" does not make any sense....
This comment was minimized by the moderator on the site
Hi Sima,
"VLOOKUP" is a Google search term, so I used it as a keyword for the article title. The main operation of this article is to lookup values. I'm sorry for the misunderstanding.
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
Cna anybody Explain the small function with the IF statement for me please? I don't really understand how that array works :(
This comment was minimized by the moderator on the site
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."
=<span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">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))),</span>
This comment was minimized by the moderator on the site
What do Ctrl + Shift + Enter do?? At the beginning I didn'
This comment was minimized by the moderator on the site
Hi,An array formula needs to hit the Ctrl + Shift + Enter keys simultaneously to get the correct result.
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
Try =INDEX($B$2:$B$6,XMATCH(TRUE,EXACT($D$1,$A$2:$A$6),0,-1))

This is essentially reversing the search order and returning the first match using the XMATCH function.

Better late than never, hopefully helps someone :)
This comment was minimized by the moderator on the site
Perfect explanation, thanks.
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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))
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
Good Day,
Sorry can't help you with this yet. Thank you for your comment.
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
Good Day,
Sorry can't help you with this yet. Thank you for your comment.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations