View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Index function error

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

D1:D5: =SMALL(IF((A3:A786=E7)+(B3:B786=E7),C3:C786),{1;2; 3;4;5})

In article ,
Motty wrote:

Hi all,

I have a problem with an index function i created. Here is what the
function looks like:
*=INDEX(SMALL(C3:C782,{1;2;3;4;5}),OR(MATCH(1,A3:A 782=E7,0),MATCH(1,B3:B782=E7
,0)))*

The intended purpose with it is to find the 5 smallest values from
cells C3:C782 if cells A3:A782 MATCH E7 OR if cells B3:B782 Match E7.

Hope that makes sense if not i will be happy to elaborate. At the
moment i get error #N/A with my statement.

Thanks in advance for any help,

Motty.