Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Lookup function gives wrong values occasionally

I wanted to use the lookup function to get a numerical value with
reference to my lookup value, which is a text entry. For the setup of
my spread sheet, I could not use vlookup or hlookup. This lookup
function gave me some correct values, but mostly incorrect ones. The
following is my command:

=LOOKUP(DL2,$AV2:$BL2,$BM2:$CC2)

I checked the lookup value and the lookup vector... they are exactly
the same without spacing or spelling errors. Since I got some correct
values and some incorrect ones, I suspected that the lookup function
does not work for text entry. Am I right? Is there any way that I can
fix the problem? Please advice.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Lookup function gives wrong values occasionally

LOOKUP requires the values to be is ascending sequence otherwise you will not
(always) get the correct results. Is your data sorted in ascending sequence?

" wrote:

I wanted to use the lookup function to get a numerical value with
reference to my lookup value, which is a text entry. For the setup of
my spread sheet, I could not use vlookup or hlookup. This lookup
function gave me some correct values, but mostly incorrect ones. The
following is my command:

=LOOKUP(DL2,$AV2:$BL2,$BM2:$CC2)

I checked the lookup value and the lookup vector... they are exactly
the same without spacing or spelling errors. Since I got some correct
values and some incorrect ones, I suspected that the lookup function
does not work for text entry. Am I right? Is there any way that I can
fix the problem? Please advice.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Lookup function gives wrong values occasionally

Hi!

Try this:

=INDEX(BM2:CC2,MATCH(DL2,AV2:BL2,0))

Biff

wrote in message
oups.com...
I wanted to use the lookup function to get a numerical value with
reference to my lookup value, which is a text entry. For the setup of
my spread sheet, I could not use vlookup or hlookup. This lookup
function gave me some correct values, but mostly incorrect ones. The
following is my command:

=LOOKUP(DL2,$AV2:$BL2,$BM2:$CC2)

I checked the lookup value and the lookup vector... they are exactly
the same without spacing or spelling errors. Since I got some correct
values and some incorrect ones, I suspected that the lookup function
does not work for text entry. Am I right? Is there any way that I can
fix the problem? Please advice.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Lookup function gives wrong values occasionally

Thanks, I don't know that the values have to be ascending order. My
data is not in ascending order and it is almost impossible to set it up
this way (otherwise I don't have to do the lookup thing!) Anyway, good
to know more about the lookup function and thanks again.

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
How can I isolate a lookup vectors but not values from autofill? rjpeltz Excel Worksheet Functions 2 May 15th 06 07:41 PM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
lookup function bringing in wrong info Julieeeee Excel Worksheet Functions 8 August 24th 05 03:53 PM
How do I LOOKUP text values Amber C-W Excel Worksheet Functions 4 July 20th 05 05:27 PM
LOOKUP FUNCTION WITH SUMS VALUES Jamesy Excel Discussion (Misc queries) 3 January 10th 05 03:03 PM


All times are GMT +1. The time now is 11:09 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"