Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Lookup Multiple Values from a variable table size

I Have the follwing arrray formula:

{=INDEX(Mes!$B:$B,SMALL(IF(Mes!$A$1:$A$13400=$M$1, ROW($1:$13400)),ROW(1:1)))}

It works OK if the rows are always 13400 but if it grows or shrinks it wont
work, how can I change the formula so that if the amount of rows changes it
still gives me correct results?

Thank You for your help.

--
Gabriel Camarena R.
Delphi Tijuana IT Support
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup Multiple Values from a variable table size

It works OK if the rows are always 13400 but if it
grows or shrinks it wont work


If the table shrinks it'll still work but if the table grows it won't work
without changing the formula to reflect the new range size.

Use a dynamic range. But, because your range is pretty big for this type of
formula it'll slow down calculation.

Assuming there are no empty cells within the used range Mes!A:A

Goto InsertNameDefine
Name: rng
Refers to:

=Mes!$A$1:INDEX(Mes!$A:$A,COUNTA(Mes!$A:$A))

Then, array entered:

=INDEX(Mes!$B:$B,SMALL(IF(rng=$M$1,ROW(rng)),ROWS( A$1:A1)))

--
Biff
Microsoft Excel MVP


"GCRDelphi" wrote in message
...
I Have the follwing arrray formula:

{=INDEX(Mes!$B:$B,SMALL(IF(Mes!$A$1:$A$13400=$M$1, ROW($1:$13400)),ROW(1:1)))}

It works OK if the rows are always 13400 but if it grows or shrinks it
wont
work, how can I change the formula so that if the amount of rows changes
it
still gives me correct results?

Thank You for your help.

--
Gabriel Camarena R.
Delphi Tijuana IT Support



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
Multiple lookup values and adding multiple rates across together ssolomon Excel Worksheet Functions 5 November 16th 07 09:02 PM
multiple entries per cell to save on table size? bactfarmer Excel Worksheet Functions 3 January 30th 07 07:41 PM
Variable Table Array in Lookup Function matt_the_brum Excel Worksheet Functions 6 August 4th 06 05:07 PM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM
Excel multiple variable data table Evan McCarthy Excel Discussion (Misc queries) 0 February 14th 06 07:35 PM


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