selecting next row (R+1) using VLOOKUP

njbourque

New Member
Joined
Jun 19, 2006
Messages
43
I am wanting to write a formula using VLOOKUP that when the values in the selected range are gone through the default instead of being the next lower value that the LOOKUP selects from it goes to the next higher value. Example

Col A Col B
100 1
200 2
300 3
400 4
500 5

if my value to lookup is 250 the return value is 2 I want it to be 3. I do not want to write code and was hoping a function might be all that is needed.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I am wanting to write a formula using VLOOKUP that when the values in the selected range are gone through the default instead of being the next lower value that the LOOKUP selects from it goes to the next higher value. Example

Col A Col B
100 1
200 2
300 3
400 4
500 5

if my value to lookup is 250 the return value is 2 I want it to be 3. I do not want to write code and was hoping a function might be all that is needed.
Book1
ABCDE
11001_2503
22002___
33003___
44004___
55005___
Sheet1

This array formula** entered in E1:

=INDEX(B1:B5,MATCH(TRUE,A1:A5>=D1,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
If you sort your list in descending order, you could use =INDEX(B1:B5,MATCH(250,A1:A5,-1))
 
Upvote 0
Book1
*ABCDE
11001_2503
22002___
33003___
44004___
55005___
Sheet1

This array formula** entered in E1:

=INDEX(B1:B5,MATCH(TRUE,A1:A5>=D1,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Apologies for expecting all those that replied to read my mind.....the range of values is located on a different worksheet and the value I want to use is the result of an equation.
My formula on sheet1 is =VLOOKUP($K9,'Sheet2'!$A$2:$C$26,3), the value that appears in Cell K9 is the result of an electrical formula and the range of cells on 'Sheet2' is a table from the electrical code wire gauge chart. My formula gives me the power draw in amps and I wanted the next cell L9 (on sheet1) to display the wire size for that calculation. I did not want to have the table on sheet2 displayed. As my example explained (somewhat) the VLOOKUP result I get from my formula selects the lower wire size when an exact match is not found, which is not what I want. Can I achieve the same result using Index:Match on different worksheets? If so can some one instruct me....BTW thanks for the responses, many and to the point, awesome.
 
Upvote 0
Apologies for expecting all those that replied to read my mind.....the range of values is located on a different worksheet and the value I want to use is the result of an equation.
My formula on sheet1 is =VLOOKUP($K9,'Sheet2'!$A$2:$C$26,3), the value that appears in Cell K9 is the result of an electrical formula and the range of cells on 'Sheet2' is a table from the electrical code wire gauge chart. My formula gives me the power draw in amps and I wanted the next cell L9 (on sheet1) to display the wire size for that calculation. I did not want to have the table on sheet2 displayed. As my example explained (somewhat) the VLOOKUP result I get from my formula selects the lower wire size when an exact match is not found, which is not what I want. Can I achieve the same result using Index:Match on different worksheets? If so can some one instruct me....BTW thanks for the responses, many and to the point, awesome.
I'm pretty sure the formula I suggested will do what you asked for. Just include the appropriate sheet name to any range references.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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