View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default logic that returns a count

=SUMPRODUCT((B1:B999="Indiana/01")*(D1:D999="enroll")

HTH
--
AP

"d_kight" a écrit dans le message de
news: ...
I am trying to compare one column to another column and if the two
conditions
I am looking at are true, I would like it to be counted. Eventually
adding
all occurances of those two conditions.

EX
A B C D F
G
1 5/14/2006 Indiana/01 John Doe enroll mail enter
2 5/14/2006 Indiana/02 John Doe enroll mail enter
3 5/14/2006 Indiana/01 Jane Plur enroll mail enter
4 5/14/2006 Indiana/03 John Paul enroll mail enter
5 5/14/2006 Indiana/01 Joe Dirt salary fax

I want the result to capture the "B" column if it says "Indiana/01" and
then
the "D" column if it says "enroll" and add all of the occuances of both of
those and spit out a value.
I would greatly appreciate any help I can get on the matter.

thanks Danny