## How to return a value if a given value exists in a certain range in Excel?

As the left screenshot shown, if a given number 5 is in a certain number range, how to return the value in the adjacent cell. The formula method in this article can help you achieve it.

Return a value if a given value exists in a certain range by using a formula

#### Return a value if a given value exists in a certain range by using a formula

Please apply the following formula to return a value if a given value exists in a certain range in Excel.

1. Select a blank cell, enter formula =VLOOKUP(E2,A2:C8,3, TRUE) into the Formula Bar and then press the Enter key. See screenshot:

You can see the given number 5 is in the number range 4-6, then the corresponding value Addin 012 in the adjacent cell is populated into the selected cell immediately as above screenshot showed.

Note: In the formula, E2 is the cell contains the given number, A2:C8 contains the number range and the value you will return based on the given number, and number 3 means that the value you will return locates in the third column of range A2:C8. Please change them based on your need.

### Best Office Productivity Tools

 ðŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functionsâ€¦ Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ... Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup .... Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List .... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ... Featured Features: Grid Focus   |  Design View   |   Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

#### Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

• Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
• Open and create multiple documents in new tabs of the same window, rather than in new windows.
• Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
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,
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