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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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
 
Upvote 0
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)),"")
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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