Vai al contenuto principale

Come restituire un valore se un determinato valore esiste in un determinato intervallo in Excel?

Come mostrato nell'immagine a sinistra, se un dato numero 5 è in un certo intervallo di numeri, come restituire il valore nella cella adiacente. Il metodo della formula in questo articolo può aiutarti a raggiungerlo.

Restituisce un valore se un determinato valore esiste in un determinato intervallo utilizzando una formula


Restituisce un valore se un determinato valore esiste in un determinato intervallo utilizzando una formula

Si prega di applicare la seguente formula per restituire un valore se un determinato valore esiste in un determinato intervallo in Excel.

1. Seleziona una cella vuota, inserisci la formula = CERCA.VERT (E2, A2: C8,3, VERO) nella barra della formula e quindi premere il pulsante entrare chiave. Vedi screenshot:

Puoi vedere che il numero 5 è nell'intervallo numerico 4-6, quindi il valore corrispondente Addin 012 nella cella adiacente viene popolato nella cella selezionata immediatamente come mostrato nell'immagine sopra.

Note: Nella formula, E2 è la cella contiene il numero dato, A2: C8 contiene l'intervallo di numeri e il valore che restituirai in base al numero dato e il numero 3 significa che il valore che restituirai si trova nella terza colonna di intervallo A2: C8. Si prega di modificarli in base alle proprie necessità.


Articoli Correlati:

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 (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Prezados,
Bom dia!

É possível determinar algum parâmetro dentro do Range.

Quero fazer o PROCV trazer de um intervalo, porém ele acaba retornando valores de CEPs que não existem, mas que estão muito próximos...

Exemplo:

Na tabela existe a faixa de CEP 68795000 A 68796999 que é do estado do Pará
Ao utilizar as formula sugeridas, resulta como "verdadeiro" para a faixa de CEP 69301000 A 69390971 que é do estado de Roraima, devido a proximidade da numeração.
This comment was minimized by the moderator on the site
Hi Nilton Vanini,
I don't quite understand your question. Do you mind uploading a screenshot of your data? Sorry for the inconvenience.
This comment was minimized by the moderator on the site
This seems to also work with text. I got this to work with exact value rather than a range by using the "Value" column as part of the range in the formula.

My question is, are you forced to use 2 columns or is it possible to only use 1 and the value column?

I created a master sheet to call from but this is how I setup the formla

=VLOOKUP(I2,'Master Sheet'!$A$2:$B$53,2,TRUE)

Column "I" text (Number column in the example), I was forced to have a range so column "B" is both the Range and Value.

Is this best practice or would I run into unexpected issues down the road if more line items are added to this list?
This comment was minimized by the moderator on the site
Hi Andrew,
You may need to upload a screenshot of your data. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
Bonjour je cherche à vérifier si une de mes valeurs correspond à une plage de données, le problème est que je n'ai pas qu'une valeur à vérifier mais une longue liste. J'aimerais que si une des 3 valeurs suivantes que je tape dans une case (exemple "panneau";"Strat";"chants") correspondent à une plage de données, elles 's'affichent en rouge par exemple. Sauriez vous me renseigner ? Merci.
This comment was minimized by the moderator on the site
Yo quiero devolver 1, si se encuentra en un rango de numeros determinados, ej. el rango es de 4 a 10, y en la celda tengo 5, devolver 1, pero si tengo 2 o 15, devolver 0.
This comment was minimized by the moderator on the site
Hi Daili,
If you just want to check if a number exists in a given range and return a specified value, you can combine IF with AND functions to get it done.
Suppose the number 4 is in cell A9, the number 10 is in cell B9, the number you want to determine if it exists between 4 and 10 is locateed in D9, you can apply the following formula to get the correct result.
=IF(AND(D9>A9,D9<B9),1,0)
This comment was minimized by the moderator on the site
Can you do a lookup searching a range of 3digit zips (i.e. 010-013 or 280-283,286,297) and pull in the city / state from your zip code list. The zip code list is all 3 digit zips in US broken out individually. The zips are listed multiple times because there are several city / state combinations. (i.e. 010 Ludlow MA; 010 Plamer MA etc).
This comment was minimized by the moderator on the site
The value works on the first cell. How do you do it for the entire column cell?
This comment was minimized by the moderator on the site
You will need to use $ for the lookup cells values
So if you have a column of values you want to look up you would modify the formula as follows:
=VLOOKUP(E2,$A$2:$C$8,3, TRUE)

E2 would change as you fill down but the table you are looking up from will remain constant
This comment was minimized by the moderator on the site
awesome, thanks!
This comment was minimized by the moderator on the site
Doesn't work. if only it was that simple, wouldn't need to be googling for this
This comment was minimized by the moderator on the site
It obviously does. Instead of whining and trying to be a smartass about it, you could have at least tried it out.
This comment was minimized by the moderator on the site
It does. Try it out before rudely complaining, simple as that.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations