#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LOOKUP ARRY

I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default LOOKUP ARRY

Lookup formula limitation? wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?


Dunno. Just curious, why use arrays instead of ranges?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default LOOKUP ARRY

I haven't found "the" definitive answer to your question, but we can infer an
answer based on other similar limitations in Excel.

Various formulas have limits to the number of parameters they can handle.
For example, the CONCATENATE() function has a limit of 32 parameters. There
is also a limit to other things such as the length of a formula and levels of
nesting.

I suspect you've found the undocumented(?) limit to the number of parameters
in LOOKUP() as you've tried to use it.

As smartin indicated, for large lists like that you're probably better off
setting up some columns as a table, either on the same sheet or another, and
using VLOOKUP() to get your results.

"Lookup formula limitation?" wrote:

I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default LOOKUP ARRY

What version of excel are you using?

In xl2003, your formulas can only be 1024 characters long (when measured in R1C1
reference style).



Lookup formula limitation? wrote:

I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default LOOKUP ARRY

In your example it looks like you want to multiply by 10 - can't you
just do:

=A1*10

or is your example not representative?

Pete

On Aug 17, 3:17*am, Lookup formula limitation? <Lookup formula
wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default LOOKUP ARRY

I have 300 products range from 1lb to 200lb, each have differnt shipping price
Example:
A: has 1-160
B: has price for each items, is there a better way to figure out the
price/items?

Thanks

"smartin" wrote:

Lookup formula limitation? wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?


Dunno. Just curious, why use arrays instead of ranges?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default LOOKUP ARRY

I have a sneaking suspicion that it's not representative of the real
situation, but may be one that he used to try to determine where it was
failing at.
The root cause of the problem may even be something we've not mentioned yet,
such as stack or buffer size limits for the arrays involved when LOOKUP() is
used in this fashion - which would make his determined limit of 80 elements
not a constant, but a variable based on the type of elements in the arrays.

"Pete_UK" wrote:

In your example it looks like you want to multiply by 10 - can't you
just do:

=A1*10

or is your example not representative?

Pete

On Aug 17, 3:17 am, Lookup formula limitation? <Lookup formula
wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default LOOKUP ARRY

Thanks,
But, how do you fix the limitation?

"JLatham" wrote:

I have a sneaking suspicion that it's not representative of the real
situation, but may be one that he used to try to determine where it was
failing at.
The root cause of the problem may even be something we've not mentioned yet,
such as stack or buffer size limits for the arrays involved when LOOKUP() is
used in this fashion - which would make his determined limit of 80 elements
not a constant, but a variable based on the type of elements in the arrays.

"Pete_UK" wrote:

In your example it looks like you want to multiply by 10 - can't you
just do:

=A1*10

or is your example not representative?

Pete

On Aug 17, 3:17 am, Lookup formula limitation? <Lookup formula
wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default LOOKUP ARRY

Lookup formula limitation? wrote:
I have 300 products range from 1lb to 200lb, each have differnt shipping price
Example:
A: has 1-160
B: has price for each items, is there a better way to figure out the
price/items?

Thanks

"smartin" wrote:

Lookup formula limitation? wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?

Dunno. Just curious, why use arrays instead of ranges?


So if you know the shipping price of each item, why not make a master
table in Sheet1 with 300 items in column A and shipping prices in column
B. Then when you need to know the shipping price in another worksheet, use

=VLOOKUP(A1,Sheet1!$A$1:$B$301,2,FALSE)

or am I totally missing something?
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default LOOKUP ARRY

Well, lets look at your original statement...
"I have 160 numbers in 160 numbers in column B..."

There is no need to repeat those numbers within the LOOKUP statement - all
you need to do is reference the ranges involved. Since you are using A1 as a
lookup value, I will assume that your lists start on row 2. If that's the
case, then a formula like
=LOOKUP(A1,A$2:A$161,B$2:B$161)
will give you the results you want/expect - as long as the values in column
A are in ascending order.

If there is a possibility of the data in column A being out of order, you're
better off with a VLOOKUP()
=VLOOKUP(A1,A$2:B$161,2,False)
which will achieve the same thing without the items in column a needing to
be in an ordered sequence.

"Lookup formula limitation?" wrote:

Thanks,
But, how do you fix the limitation?

"JLatham" wrote:

I have a sneaking suspicion that it's not representative of the real
situation, but may be one that he used to try to determine where it was
failing at.
The root cause of the problem may even be something we've not mentioned yet,
such as stack or buffer size limits for the arrays involved when LOOKUP() is
used in this fashion - which would make his determined limit of 80 elements
not a constant, but a variable based on the type of elements in the arrays.

"Pete_UK" wrote:

In your example it looks like you want to multiply by 10 - can't you
just do:

=A1*10

or is your example not representative?

Pete

On Aug 17, 3:17 am, Lookup formula limitation? <Lookup formula
wrote:
I have 160 number in column A and 160 numbers in Column B.....

Lookup let me to compair only 80?
=lookpu(A1,{1,2,3,4,5.........160},{10,20,30,..... .......1600})

How come excel let me do up to 80, not 160?


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
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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