View Single Post
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this, it's much shorter:

=SUMPRODUCT(--(INDEX(ilsort,,1)="chicago"),--(INDEX
(ilsort,,2)="cook")+(INDEX(ilsort,,2)="page"),INDE X
(ilsort,,4))

Of course, you need to use the actual criteria names in
place of my shortcuts!

OR, you can use cell references:

=SUMPRODUCT(--(INDEX(ilsort,,1)=A1),--(INDEX(ilsort,,2)=B1)
+(INDEX(ilsort,,2)=C1),INDEX(ilsort,,4))

Biff

-----Original Message-----
Hello,

Can anyone help me with adding two index matches together.

I have the following formula which searches for the city

of chicago in the
county of cook if NOT true return zero if true return

column 4.

However I need the formula to search as above but also

search for Chicago in
Du Page county and return the total of both.

How can I accomplish this in a formula? Is it possible?

=IF(ISNA(INDEX(ilsort,MATCH(1,(INDEX(ilsort,,1)=" Totals

for City:
CHICAGO")*(INDEX(ilsort,,2)=" County:
COOK"),0),4)),0,INDEX(ilsort,MATCH(1,(INDEX(ilsor t,,1)

="Totals for City:
CHICAGO")*(INDEX(ilsort,,2)=" County: COOK"),0),4))

Thanks for your help
.