View Single Post
  #3   Report Post  
taxmom
 
Posts: n/a
Default

WOW, that worked great!. I'm beginning to dabble with these intense
formulas can you tell me what the -- represent.

Even though I use the help feature to try and figures things out at times I
just don't understand what or why a function would come first when there are
multiple functions in a formula. Is there somewhere here in KB search that
can explain this?

thank you so much for your help.



"Biff" wrote:

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
.