vlookup

excel3

New Member
Joined
Feb 10, 2011
Messages
6
Hi All,

Ia m struggling with the vlookup formula. Please check the attached sheet. I want to lookup the value in column d2 in the arrayed cell. but I am getting a error. Can someone please help and also correct me if the formula is wrong.

http://rapidshare.com/files/452099181/test.xlsx

Thanks in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

snoopyhr

Active Member
Joined
Aug 12, 2002
Messages
395
In MHO :)

I noticed 2 things,
1- the lookup value was text and your lookup column is number, so you need to have consistent field type, either convert the Lookup column to tect or your lookup value to number

2- Vlookup can only find or look into item to the right not to the left, so here is the formula

=INDEX(B:B,MATCH(D2*1,A:A,0),1)

D2*1 converts the lookup value into number.

HTH
 

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Hello,

Col_D values are in text. just convert them to numbers. Your VLOOKUP will be OK. Or use any of these,

=IFERROR(VLOOKUP(D2+0,$A$1:$B$888,2,FALSE),"")

=IFERROR(INDEX($B$1:$B$888,MATCH(D2+0,$A$1:$A$888,0)),"")
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Hi All,

Ia m struggling with the vlookup formula. Please check the attached sheet. I want to lookup the value in column d2 in the arrayed cell. but I am getting a error. Can someone please help and also correct me if the formula is wrong.

http://rapidshare.com/files/452099181/test.xlsx

Thanks in advance

Your table is sorted in ascending order on its match range. Given that:

=IF(D2="","",IF(LOOKUP(D2+0,$A$1:$A$888)=D2+0,LOOKUP(D2+0,$A$1:$A$888,$B$1:$B$888),""))

which should faster than a regular VLOOKUP with match-type 0 (or FALSE).

Note. D2+0 converts the lookup value in D2 from a text number into a true number.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,148
Messages
5,835,681
Members
430,375
Latest member
datdog22

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
Top