Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default vlookup for an approximat lookup value

I have a problem. I have two codes for the same stock. e.g. 1)AUROPHARMA and
2)AUROPHARM.NS.
there are subtle differences. The stock list in one case in code 1 is about
500. the other list is my stocks in code 2. now how to get both the
corresponding codes in two adjacent columns, provided it can at all be done.
.. When i tried with
vlookup(lookupvalue, database,columnno,true) to get approximate values i get
"ATUL". instead of auroph.......

I am familiar with vba and excel. Kindly advise me how to go about provided
this can be done

Mine is excel 2000


--
remove $$$ from email addresss to send email






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default vlookup for an approximat lookup value

Hi R.,

vlookup(lookupvalue, database,columnno,true) to get approximate
values i get "ATUL". instead of auroph.......


"approximate" values work only if the "database" is sorted. It does not
find the next best match, it simply finds the next/previous value, eg.
if you are looking for "m" you will get "b" from that table:

a
b
x
y

you will get "a" if you lookup "m" from this table:
x
a
y
b


and #NV from this one:
y
x
b
a


I use this type of lookup only with numbers, eg. to find the next best
value around 80% if I have a table like this

79,123
79,45
80,123
....

arno

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default vlookup for an approximat lookup value

thanks.

arno wrote in message
...
Hi R.,

vlookup(lookupvalue, database,columnno,true) to get approximate
values i get "ATUL". instead of auroph.......


"approximate" values work only if the "database" is sorted. It does not
find the next best match, it simply finds the next/previous value, eg.
if you are looking for "m" you will get "b" from that table:

a
b
x
y

you will get "a" if you lookup "m" from this table:
x
a
y
b


and #NV from this one:
y
x
b
a


I use this type of lookup only with numbers, eg. to find the next best
value around 80% if I have a table like this

79,123
79,45
80,123
...

arno



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
vlookup and lookup Ruth Excel Worksheet Functions 12 December 4th 08 02:17 PM
About Lookup and Vlookup Maria Excel Discussion (Misc queries) 3 October 30th 08 04:40 AM
=IF(AND(LOOKUP(F3,A21:A42)=F3,LOOKUP(B4,B21:B42)=B4),(VLOOKUP(B4,B RWD715 Excel Worksheet Functions 9 October 10th 08 10:11 PM
LOOKUP or VLOOKUP MichelleS Excel Worksheet Functions 9 October 20th 06 02:11 PM
LOOKUP or VLOOKUP Bennie Excel Worksheet Functions 4 March 24th 05 07:45 PM


All times are GMT +1. The time now is 04:20 AM.

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"