Return Value on Third Column if Lookup value is between the range of Values from First and Second Columns

phyxe

New Member
Joined
Jan 18, 2016
Messages
7
Hi everyone! I have been wandering around google about how to go about my problem, basically i have this kind of data
ABC
78.779.99Red
77.478.69Blue
......
03.11Color
this data will go down in fixed interval til it hits zero

I turned this table into a named ranged for easier referencing. Now here's my problem: on another sheet (say sheet2) i have rows that contains values that may fall between the value of row A and B. I need to return the value in column C if the look up value is between the value of Column A and B. I tried to do ifs vlookup match and index but i can't seem to find a work around, I know that if i use AND it will turn into a very long nested if formula. Is there a possible way to do it in an easier less messy formula? Thank you for your responses in advance :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
=LOOKUP(2,1/(Sheet2!A:A<=B2)/(Sheet2!A:A>=A2),Sheet2!C:C)
 
Upvote 0
see if this helps

I need to return the value in column C if the look up value is between the value of Column A and B
Now here's my problem: on another sheet (say sheet2) i have rows that contains values that may fall between the value of row A and B.

Sheet2!A:A is a specific number , a value that may fall between the value of A & B

I need to return the value in column C if the look up value is between the value of Column A and B.

Sheet2!C:C is the colour RED,BLUE etc

Taken from your example

B2 is the Range max
A2 is the range min
 
Upvote 0
see if this helps

I need to return the value in column C if the look up value is between the value of Column A and B
Now here's my problem: on another sheet (say sheet2) i have rows that contains values that may fall between the value of row A and B.

Sheet2!A:A is a specific number , a value that may fall between the value of A & B

I need to return the value in column C if the look up value is between the value of Column A and B.

Sheet2!C:C is the colour RED,BLUE etc

Taken from your example

B2 is the Range max
A2 is the range min
Thank you so much!!! This will quicken my work by a lot :)
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,847
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top