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:(
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
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.
 

Amyb_rude

New Member
Joined
Nov 26, 2009
Messages
12
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.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
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
 

Amyb_rude

New Member
Joined
Nov 26, 2009
Messages
12
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,057
Messages
5,599,550
Members
414,316
Latest member
ExcelLee

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