Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JerichoForce
 
Posts: n/a
Default LOOKUP function not returning expected value - Using vector_lookup format


Hi

I am running this lookup function but can't get the correct result,
anyone know what I am doing wrong

=LOOKUP(AI61,{"NearExactExactExact","ExactNearExac tExact","ExactNearExactDifferent","ExactDifferentE xactExact","ExactDifferentExactDifferent","ExactAb sentExactExact","ExactAbsentExactDifferent","Exact ExactExactExact","ExactExactExactDifferent","NearE xactExactDifferent",90,93,97},{"A4","A1","A2","A2" ,"A3","A2","A3","A1","A2","A3","A-","A","A+"})

value in AI61 is NearExactExactExact, but it is returning A-, I was
expecting it to return A4?


--
JerichoForce
------------------------------------------------------------------------
JerichoForce's Profile: http://www.excelforum.com/member.php...o&userid=33584
View this thread: http://www.excelforum.com/showthread...hreadid=533623

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default LOOKUP function not returning expected value - Using vector_lookup format

Try this instead

=VLOOKUP(AI61,{"NearExactExactExact","A4";"ExactNe arExactExact","A1";"ExactNearExactDifferent","A2"; "ExactDifferentExactExact","A2";"ExactDifferentExa ctDifferent","A3";"ExactAbsentExactExact","A2";"Ex actAbsentExactDifferent","A3";"ExactExactExactExac t","A1";"ExactExactExactDifferent","A2";"NearExact ExactDifferent","A3";90,"A-";93,"A";97,"A+"},2,0)



LOOKUP needs to have the lookup vector sorted in ascending order

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"JerichoForce"
wrote in message
news:JerichoForce.26fxob_1145331308.0442@excelforu m-nospam.com...

Hi

I am running this lookup function but can't get the correct result,
anyone know what I am doing wrong

=LOOKUP(AI61,{"NearExactExactExact","ExactNearExac tExact","ExactNearExactDifferent","ExactDifferentE xactExact","ExactDifferentExactDifferent","ExactAb sentExactExact","ExactAbsentExactDifferent","Exact ExactExactExact","ExactExactExactDifferent","NearE xactExactDifferent",90,93,97},{"A4","A1","A2","A2" ,"A3","A2","A3","A1","A2","A3","A-","A","A+"})

value in AI61 is NearExactExactExact, but it is returning A-, I was
expecting it to return A4?


--
JerichoForce
------------------------------------------------------------------------
JerichoForce's Profile:
http://www.excelforum.com/member.php...o&userid=33584
View this thread: http://www.excelforum.com/showthread...hreadid=533623



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paul
 
Posts: n/a
Default LOOKUP function not returning expected value - Using vector_lookup

if you use the fourth argument as false vlookup will look for an exact
match..and you dont need to sort
=VLOOKUP(AI61,{"NearExactExactExact","A4";"ExactNe arExactExact","A1";"ExactNearExactDifferent","A2"; "ExactDifferentExactExact","A2";"ExactDifferentExa ctDifferent","A3";"ExactAbsentExactExact","A2";"Ex actAbsentExactDifferent","A3";"ExactExactExactExac t","A1";"ExactExactExactDifferent","A2";"NearExact ExactDifferent","A3";90,"A-";93,"A";97,"A+"},2,false)

--
paul

remove nospam for email addy!



"JerichoForce" wrote:


Hi

I am running this lookup function but can't get the correct result,
anyone know what I am doing wrong

=LOOKUP(AI61,{"NearExactExactExact","ExactNearExac tExact","ExactNearExactDifferent","ExactDifferentE xactExact","ExactDifferentExactDifferent","ExactAb sentExactExact","ExactAbsentExactDifferent","Exact ExactExactExact","ExactExactExactDifferent","NearE xactExactDifferent",90,93,97},{"A4","A1","A2","A2" ,"A3","A2","A3","A1","A2","A3","A-","A","A+"})

value in AI61 is NearExactExactExact, but it is returning A-, I was
expecting it to return A4?


--
JerichoForce
------------------------------------------------------------------------
JerichoForce's Profile:
http://www.excelforum.com/member.php...o&userid=33584
View this thread: http://www.excelforum.com/showthread...hreadid=533623


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
Don't understand Lookup function Beblessed New Users to Excel 1 March 1st 06 08:57 AM
LOOKUP FUNCTION ASHA27 Excel Worksheet Functions 2 February 25th 06 10:26 PM
Help using lookup function Blackbird Excel Discussion (Misc queries) 9 December 19th 05 11:40 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
Lookup function returning reference, not value Caligula Excel Worksheet Functions 1 May 28th 05 06:35 PM


All times are GMT +1. The time now is 09:02 AM.

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

About Us

"It's about Microsoft Excel"