G
Guest
Hi everyone
Can anyone help me?
A while back Biff supplied me with a formula that found a city name in two
different counties and added them together.
=sumproduct(--(index(ilsort,,1)="chicago"),--(index(ilsort,,2)="cook")+(index(ilsort,,2) = "page"),index(ilsort,,4))
This worked great. However, now I need to add several different cities in
the same county. example darrow + geismar+prairieville in Ascension
county.
There can be the same city in another county but I need only the cities in
this county to be added together
I have moved things around from the above formula but it only seems to read
the 1st part and return the data. It doesn't add. I just can't get it. I'm
not sure what argument needs to come first.
The formula below is use when nothing needs to get added.
IF(ISNA(INDEX(ilsort,MATCH(1,(INDEX(ilsort,,1)="Totals for City:
SCHAUMBURG")*(INDEX(ilsort,,2)=" County:
COOK"),0),4)),0,INDEX(ilsort,MATCH(1,(INDEX(ilsort,,1)="Totals for City:
SCHAUMBURG")*(INDEX(ilsort,,2)=" County: COOK"),0),4))
Thanks so much.
Can anyone help me?
A while back Biff supplied me with a formula that found a city name in two
different counties and added them together.
=sumproduct(--(index(ilsort,,1)="chicago"),--(index(ilsort,,2)="cook")+(index(ilsort,,2) = "page"),index(ilsort,,4))
This worked great. However, now I need to add several different cities in
the same county. example darrow + geismar+prairieville in Ascension
county.
There can be the same city in another county but I need only the cities in
this county to be added together
I have moved things around from the above formula but it only seems to read
the 1st part and return the data. It doesn't add. I just can't get it. I'm
not sure what argument needs to come first.
The formula below is use when nothing needs to get added.
IF(ISNA(INDEX(ilsort,MATCH(1,(INDEX(ilsort,,1)="Totals for City:
SCHAUMBURG")*(INDEX(ilsort,,2)=" County:
COOK"),0),4)),0,INDEX(ilsort,MATCH(1,(INDEX(ilsort,,1)="Totals for City:
SCHAUMBURG")*(INDEX(ilsort,,2)=" County: COOK"),0),4))
Thanks so much.