View Single Post
  #1  
Old March 5th, 2009, 02:29 AM posted to microsoft.public.excel.newusers
Struggling in Sheffield[_2_]
external usenet poster
 
Posts: 66
Default Sumproduct a column where 2 adj text columns contain same value

Hi,
I'm using a sumproduct formula to ascertain the number of times that a value
between 0 and 1 occurs in column A (range A3:A26), where the adjacent cell in
column B (B3:B26) contains either "Smith", "Draper" or "Jones":

=SUMPRODUCT((A3:A260.00)*(A3:A261.01)*(B3:B26={" Smith","Draper","Jones"}))

This formula works fine and details the number of entries where the value in
column A is between 0 and 1, and the name in the adjacent column B cell is
Smith Draper or Jones.

What I need to do is the same SUMPRODUCT of 0-1 entries in column A but this
time where the names listed in column B are equal to more names listed in
Column C (i.e. where B7 = "Jones" and C7 = "Jones", 1 will be the added to my
SUMPRODUCT total (if the value in A7 is between 0 and 1).

Keep skirting around the edges of this one without being quite able to nail
it.
Any pointers gratefully received.
Cheers,
Steve.