Lookup Problem

stephen.smith

Board Regular
Joined
Jul 7, 2010
Messages
119
Hi Guys I have a small problem with a lookup formula.
I am trying to perform a lookup formula that will look in cells B5:G5 for the number 2 which in turn will return the value I have placed beside the number 2 in my lookup table which is in Cells I2:J5. Can you please help.
Thanks In Advance.
Stephen
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
What is the correlation between where in range B5:G5 the number 2 is found and what bearing it has in (supposedly) a lookup table in I2:J5? If you know the number you are looking for, why not apply that to the table to return what you want, unless the column (B, C, D, E, F, or G) of where 2 (or whatever you are looking for) matters, which if so you should explain in more detail.
 
Upvote 0
It works for me...

=LOOKUP(2,$B$2:$B$5,$C$2:$C$5)

However, the lookup function requires the lookup vector to be in ascending order. If that is not the case, you will get an error. If putting the values in ascending order is not an option, you'd be better off using the vlookup formula

=VLOOKUP(2,$B$2:$C$5,2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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