Vlookup problem

Amyb_rude

New Member
Joined
Nov 26, 2009
Messages
12
Hi,

I'm trying to return a word/string of words using a vlookup and its just not happening.

Both table arrays are in the same workbook which i don't think should be causing a problem (?) but I keep getting 'NA' returned.

I'm using the below forumal which i think is right.....?

=VLOOKUP(A2,'Coding Sheet'!$A$1:$G$267,1,false)

Thanks,

Amy:(
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
There doesn't seem to be anything wrong with the formula per se, but may the values in A2 and column A of the other sheet are not exactly the same, maybe one has some trailing spaces or something.
 
Upvote 0
Thanks XLD. I'll check the spacing to see if there are any anomalies, so watch this space. I thought the formula was right....got so frustrating!

Thanks again.
 
Upvote 0
Could it be that you think you have numbers in column A of both sheets when in fact one column A is numeric and the other column A is text?



Secondly,
=VLOOKUP(A2,'Coding Sheet'!$A$1:$G$267,1,false)
why use columns A:G in the lookup sheet if you are only returning the value from column A (col 1) anyway? As it stands, your formula appears to simply check if A2 is in A1:A267 of 'Coding Sheet' and if it is, return the same value, otherwise return #N/A
 
Upvote 0
Hi Peter,

The values in Column A (sheet 2) were numeric and not alpha so i just swapped them over and now my vlookup is working!!

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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