Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default LOOKUP function Problem

Column Kcontains vendor names
Columns K through Y contain data for each vendor.

c3 contains a dropdown, referencing the vendor names in cells column K.


Cells E7 through g25 Each contain formulas to lookup the contents of a cell
in the vendor row based on which vendor is chosen in the dropdown, like:

=LOOKUP(C3,K:K,M:M)

My dropdown validation has always referenced more rows than it needed in
case I needed to add more vendors. I have in fact recently added more
vendors.
My dropdown works fine, I can see all my current vendors.

But the lookup fields are not working for certain vendors lately. They work
for vendors down to row 52. After that, the Lookup cells do not work
correctly. They are displaying the data for the totals row in row 68.

It seems so simple. I have the lookup in C3 working, and the formula in
each cell is simple. And yet, they are not working. Is there another
setting I need to look at, like the range where the lookup will work?

Please help!

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default LOOKUP function Problem

The Lookup function requires that the lookup_array be sorted in ascending
order. If it's not you can and will get incorrect results.

Try this:

=INDEX(M:M,MATCH(C3,K:K,0))

Biff

"justme" wrote in message
...
Column Kcontains vendor names
Columns K through Y contain data for each vendor.

c3 contains a dropdown, referencing the vendor names in cells column K.


Cells E7 through g25 Each contain formulas to lookup the contents of a
cell
in the vendor row based on which vendor is chosen in the dropdown, like:

=LOOKUP(C3,K:K,M:M)

My dropdown validation has always referenced more rows than it needed in
case I needed to add more vendors. I have in fact recently added more
vendors.
My dropdown works fine, I can see all my current vendors.

But the lookup fields are not working for certain vendors lately. They
work
for vendors down to row 52. After that, the Lookup cells do not work
correctly. They are displaying the data for the totals row in row 68.

It seems so simple. I have the lookup in C3 working, and the formula in
each cell is simple. And yet, they are not working. Is there another
setting I need to look at, like the range where the lookup will work?

Please help!

Thanks!




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default LOOKUP function Problem

Biff, you are THE BEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU!!!
:):):):):):):)

"T. Valko" wrote:

The Lookup function requires that the lookup_array be sorted in ascending
order. If it's not you can and will get incorrect results.

Try this:

=INDEX(M:M,MATCH(C3,K:K,0))

Biff

"justme" wrote in message
...
Column Kcontains vendor names
Columns K through Y contain data for each vendor.

c3 contains a dropdown, referencing the vendor names in cells column K.


Cells E7 through g25 Each contain formulas to lookup the contents of a
cell
in the vendor row based on which vendor is chosen in the dropdown, like:

=LOOKUP(C3,K:K,M:M)

My dropdown validation has always referenced more rows than it needed in
case I needed to add more vendors. I have in fact recently added more
vendors.
My dropdown works fine, I can see all my current vendors.

But the lookup fields are not working for certain vendors lately. They
work
for vendors down to row 52. After that, the Lookup cells do not work
correctly. They are displaying the data for the totals row in row 68.

It seems so simple. I have the lookup in C3 working, and the formula in
each cell is simple. And yet, they are not working. Is there another
setting I need to look at, like the range where the lookup will work?

Please help!

Thanks!





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
Problem with nested if function. PLS HELP sfar007 Excel Worksheet Functions 2 June 6th 06 11:34 AM
weird problem with LOOKUP function ab Excel Discussion (Misc queries) 1 October 6th 05 05:27 PM
Odd problem with LOOKUP no-sweat Excel Discussion (Misc queries) 2 September 1st 05 06:46 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


All times are GMT +1. The time now is 05:04 PM.

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"