#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default vlookup

I am using vlookup to populate a cell with a stock code depending on what the
stock name is in the adjacent cell. it works fine when i type the stock name
in the cell, but when i use a formula to put the stock name in the cell
vlookup returns #N/A

any help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default vlookup

Assuming stock name A2:A100, and stock code B2:B100

=VLOOKUP("mama",A2:B100,2,0)

Adjust to suit


"sako 338" wrote:

I am using vlookup to populate a cell with a stock code depending on what the
stock name is in the adjacent cell. it works fine when i type the stock name
in the cell, but when i use a formula to put the stock name in the cell
vlookup returns #N/A

any help appreciated

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup

Try reformatting your source cells (e.g. text as text or number as number).
Often if the vlookup is trying to read a number that is formatted as text it
will return the result #N/A

"Teethless mama" wrote:

Assuming stock name A2:A100, and stock code B2:B100

=VLOOKUP("mama",A2:B100,2,0)

Adjust to suit


"sako 338" wrote:

I am using vlookup to populate a cell with a stock code depending on what the
stock name is in the adjacent cell. it works fine when i type the stock name
in the cell, but when i use a formula to put the stock name in the cell
vlookup returns #N/A

any help appreciated

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(a1="x",(vlookup 18K rows,2,false),(vlookup 18K,3,false)) RAM? bchilt Excel Worksheet Functions 6 January 20th 06 09:21 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"