#1   Report Post  
Posted to microsoft.public.excel.misc
tracy
 
Posts: n/a
Default Lookup

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank
  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Lookup

Could you clarify...
What cell is this formula in, and how are you changing it to look up
different entries in the source list? If you're doing that by autofilling
the formula below (or copying and pasting it into additional rows), I suspect
the problem is that the relative references are causing the table reference
to advance off the table. Enter the formula using absolute references for
the table: =LOOKUP(A8,WKFLDS!$A$14:$A$39,WKFLDS!$B$14:$B$39)
--Bruce

"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #3   Report Post  
Posted to microsoft.public.excel.misc
Kevin Vaughn
 
Posts: n/a
Default Lookup

You need to "anchor" your lookup range else as you copy the formula down, the
lookup range moves (and you could experience what you are experiencing.)

Use absolute references for those ranges (by preceeding the cell/column with
$. For your formula, try:

=LOOKUP(A8,WKFLDS!$A$14:$A$39,WKFLDS!$B$14:$B$39)

--
Kevin Vaughn


"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #4   Report Post  
Posted to microsoft.public.excel.misc
tracy
 
Posts: n/a
Default Lookup

My range is correct.
I was testing out the formula for all values between A14 and A39 and the
only one that doesn't work is A37
I changed the formula to anchor the range and it still is a problem

"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #5   Report Post  
Posted to microsoft.public.excel.misc
paul
 
Posts: n/a
Default Lookup

Important The values in array must be placed in ascending order: ...,-2, -1,
0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct
value. Uppercase and lowercase text are equivalent
--
paul
remove nospam for email addy!



"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank



  #6   Report Post  
Posted to microsoft.public.excel.misc
tracy
 
Posts: n/a
Default Lookup

The values are in ascending order.
project a
project b
....
project x is the last in the list and it's the one that doesn't return a
value. It returns blanks not #N/A


"paul" wrote:

Important The values in array must be placed in ascending order: ...,-2, -1,
0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct
value. Uppercase and lowercase text are equivalent
--
paul
remove nospam for email addy!



"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #7   Report Post  
Posted to microsoft.public.excel.misc
tracy
 
Posts: n/a
Default Lookup

Never mind...I switched to VLOOKUP and got it to work....
Thanks for your help.

"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #8   Report Post  
Posted to microsoft.public.excel.misc
Kevin Vaughn
 
Posts: n/a
Default Lookup

Based on everything you said, and based on some testing I did, I would ask if
you copy/pasted the formula when posting your message or typed it in. If
your formula were slightly different, I could see you getting the results you
stated:

=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B15:B39)

If that isn't it, I don't know what it is.
--
Kevin Vaughn


"tracy" wrote:

The values are in ascending order.
project a
project b
...
project x is the last in the list and it's the one that doesn't return a
value. It returns blanks not #N/A


"paul" wrote:

Important The values in array must be placed in ascending order: ...,-2, -1,
0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct
value. Uppercase and lowercase text are equivalent
--
paul
remove nospam for email addy!



"tracy" wrote:

I have a Lookup command and it's working for everything but the last entry in
the source list
=LOOKUP(A8,WKFLDS!A14:A39,WKFLDS!B14:B39)
Entries in rows A14:A36 are found successfully, but A37 returns a blank even
though there is data in B37
Rows 38 and 39 are currently blank

  #9   Report Post  
Posted to microsoft.public.excel.misc
roger_home
 
Posts: n/a
Default Lookup


this is a test


--
roger_home
------------------------------------------------------------------------
roger_home's Profile: http://www.excelforum.com/member.php...o&userid=16434
View this thread: http://www.excelforum.com/showthread...hreadid=511235

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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup function help marlea Excel Worksheet Functions 4 August 30th 05 08:11 PM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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