vlookup

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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