Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
motorjobs
 
Posts: n/a
Default Lookup returns wrong value


I have Excel 2000.

I am having trouble with a lookup returning the wrong value (either
VLookup or Lookup). The first column is the output of an IF function
where desired outcome results in a specific text or number (I've tried
both) and the next column is a text value I wish output. The Lookup
value is one unique specific text or number in the first column.

The table also contains calculations based on a separate variable which
determine the result of the IF statement.

Depending on the variable, the lookup either funtions correctly or it
returns the last row's value (even when that is incorrect).

I need suggestions as to why the Lookup doesn't always work correctly.

Thanks

Motorjobs


--
motorjobs
------------------------------------------------------------------------
motorjobs's Profile: http://www.excelforum.com/member.php...o&userid=35645
View this thread: http://www.excelforum.com/showthread...hreadid=554311

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default Lookup returns wrong value

Nel post
*motorjobs* ha scritto:

I have Excel 2000.

I am having trouble with a lookup returning the wrong value (either
VLookup or Lookup). The first column is the output of an IF function
where desired outcome results in a specific text or number (I've tried
both) and the next column is a text value I wish output. The Lookup
value is one unique specific text or number in the first column.

The table also contains calculations based on a separate variable
which determine the result of the IF statement.

Depending on the variable, the lookup either funtions correctly or it
returns the last row's value (even when that is incorrect).

I need suggestions as to why the Lookup doesn't always work correctly.

Thanks

Motorjobs


If you could post your formula, maybe we can check what is wrong...


--
(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
motorjobs
 
Posts: n/a
Default Lookup returns wrong value


Formulas:
=VLOOKUP(T1,T4:Z29,3,5)
=LOOKUP(T1,T4:T29,V4:V29)

T1=5

Result us "Year 27" (should be Year 19)

Table
0 $2,480 Year 2
0 $4,718 Year 3
0 $6,704 Year 4
0 $8,426 Year 5
0 $9,871 Year 6
0 $11,028 Year 7
0 $11,884 Year 8
0 $12,425 Year 9
0 $12,637 Year 10
0 $12,506 Year 11
0 $12,014 Year 12
0 $11,148 Year 13
0 $9,889 Year 14
0 $8,220 Year 15
0 $6,122 Year 16
0 $3,577 Year 17
0 $563 Year 18
5 -$2,939 Year 19
0 -$6,953 Year 20
0 -$11,500 Year 21
0 -$16,605 Year 22
0 -$22,294 Year 23
0 -$28,592 Year 24
0 -$35,527 Year 25
0 -$43,127 Year 26
0 -$51,422 Year 27


Thanks,

Motorjobs


--
motorjobs
------------------------------------------------------------------------
motorjobs's Profile: http://www.excelforum.com/member.php...o&userid=35645
View this thread: http://www.excelforum.com/showthread...hreadid=554311

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default Lookup returns wrong value

Nel post
*motorjobs* ha scritto:

Formulas:
=VLOOKUP(T1,T4:Z29,3,5)
=LOOKUP(T1,T4:T29,V4:V29)

T1=5

Result us "Year 27" (should be Year 19)

[cut]

Try this:

=VLOOKUP(T1,T4:Z29,3,FALSE)


(I'm not sure of names of menues, option and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Ciao

Franz Verga from Italy


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
motorjobs
 
Posts: n/a
Default Lookup returns wrong value


Thank you Fanz,

Your suggestion worked after another correction I had overlooked as
well.

Ciao,

Motorjob:)


--
motorjobs
------------------------------------------------------------------------
motorjobs's Profile: http://www.excelforum.com/member.php...o&userid=35645
View this thread: http://www.excelforum.com/showthread...hreadid=554311



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VBA Noob
 
Posts: n/a
Default Lookup returns wrong value


Post a example of data please


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=554311

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
Excel 2002 Lookup formula returning wrong results? Val Excel Worksheet Functions 1 November 18th 05 09:07 PM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM


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