Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Graham Haughs
 
Posts: n/a
Default Index and Match Array formula

Can someone tell me why the first array formula returns the correct
value, and the second one returns #NUM. The array size increases so I
don't want to limit the size as the first formula does, and thought the
second formula would allow this. Once again I would really value some help.

{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0 ))}


{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

Kind regards,
Graham Haughs
Turriff
Scotland
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Index and Match Array formula

Array formulas don't like whole columns.

Graham Haughs wrote:

Can someone tell me why the first array formula returns the correct
value, and the second one returns #NUM. The array size increases so I
don't want to limit the size as the first formula does, and thought the
second formula would allow this. Once again I would really value some help.

{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0 ))}

{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

Kind regards,
Graham Haughs
Turriff
Scotland


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Index and Match Array formula

Array formulas don't like whole columns.

Ir depends on how the formula is structured and what function is calling the
entire column:

=INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))

Index is using the entire column.

=INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C :C)),0))

Max is using the entire column.

Also, (although this isn't a real good example), entire columns can be used
in nested functions within Sumproduct:

=SUMPRODUCT(SUMIF(A:A,100,B:B))

Biff

"Dave Peterson" wrote in message
...
Array formulas don't like whole columns.

Graham Haughs wrote:

Can someone tell me why the first array formula returns the correct
value, and the second one returns #NUM. The array size increases so I
don't want to limit the size as the first formula does, and thought the
second formula would allow this. Once again I would really value some
help.

{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0 ))}

{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

Kind regards,
Graham Haughs
Turriff
Scotland


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Graham Haughs
 
Posts: n/a
Default Index and Match Array formula


Thanks for taking the time to explain it clearly.

Graham

Biff wrote:
Array formulas don't like whole columns.



Ir depends on how the formula is structured and what function is calling the
entire column:

=INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))

Index is using the entire column.

=INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C :C)),0))

Max is using the entire column.

Also, (although this isn't a real good example), entire columns can be used
in nested functions within Sumproduct:

=SUMPRODUCT(SUMIF(A:A,100,B:B))

Biff

"Dave Peterson" wrote in message
...

Array formulas don't like whole columns.

Graham Haughs wrote:

Can someone tell me why the first array formula returns the correct
value, and the second one returns #NUM. The array size increases so I
don't want to limit the size as the first formula does, and thought the
second formula would allow this. Once again I would really value some
help.

{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87 ),0))}

{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

Kind regards,
Graham Haughs
Turriff
Scotland


--

Dave Peterson




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Index and Match Array formula

Thanks for the clarification.

Biff wrote:

Array formulas don't like whole columns.


Ir depends on how the formula is structured and what function is calling the
entire column:

=INDEX(A:A,MATCH(1,(B1:B20=100)*(C1:C20=1000),0))

Index is using the entire column.

=INDEX(A:A,MATCH(1,(B1:B20=MAX(B:B))*(C1:C20=MAX(C :C)),0))

Max is using the entire column.

Also, (although this isn't a real good example), entire columns can be used
in nested functions within Sumproduct:

=SUMPRODUCT(SUMIF(A:A,100,B:B))

Biff

"Dave Peterson" wrote in message
...
Array formulas don't like whole columns.

Graham Haughs wrote:

Can someone tell me why the first array formula returns the correct
value, and the second one returns #NUM. The array size increases so I
don't want to limit the size as the first formula does, and thought the
second formula would allow this. Once again I would really value some
help.

{=INDEX(A2:A87,MATCH(1,(G93=C2:C87)*(G94=B2:B87),0 ))}

{=INDEX(A:A,MATCH(1,(G93=C:C)*(G94=B:B),0))}

Kind regards,
Graham Haughs
Turriff
Scotland


--

Dave Peterson


--

Dave Peterson
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
Array index, match problem RAP Excel Worksheet Functions 27 August 21st 05 07:19 PM
index match formula andrewm Excel Worksheet Functions 3 July 22nd 05 08:36 AM
How to add in an array formula if iisna index match taxmom Excel Worksheet Functions 4 March 15th 05 01:51 PM
need help with Index, Match and Countif in the same complicated formula HGood Excel Discussion (Misc queries) 0 February 3rd 05 05:34 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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