Lookup

Teona

New Member
Joined
Jun 8, 2011
Messages
7
In Column A I have a list of statement codes, in column C I have a list of statement codes too and in column D I have corresponding dates for each code. I try to lookup all apropriate dates and put in B column.
I tried the following two forula and neither one worked, it did not give the exact match.
1.=LOOKUP(A2,$C$2:$C$7412,$D$2:$D$741)
2.=VLOOKUP(A2,C2:D7412,2,FALSE)
Could you help me and tell what I am doing wrong?

P.S. I don't know if it matters, but anyways... In column A there are some codes that are not in column C and vice versa.

Thanks you!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
From your description
option 2 looks credible

are the statement codes numbers or text if text does one or otherside have spaces (leading)
does .=VLOOKUP(A2,C2:D7412,2,TRUE)
produce a better result
 
Upvote 0
CharlesChuckieCharlesCodes are mix of number and text and they do not have spaces.
with True, there are less N/A, but it does not looks up the exact matches, I get the inaccurate result with it.
Instead of A2 I even tried to type the code the same way it as in Column A and Column C, and it still turned into N/A.
 
Upvote 0
Found the reason!!!! YaY
In column A I have 0s, while in column C there are Os.
OMG, it almost drove me nuts.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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