View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.newusers
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default IF? OR SUMPRODUCT? or ????

See this screencap:

http://img177.imageshack.us/img177/7071/jerryke3.jpg

--
Biff
Microsoft Excel MVP


"Jerry Kinder" wrote in message
...
Hi,
Does this help make it clearer. It is hard to put in words a sheet layout.

This is a attempt to lay out the work sheet:
Col A Col B Col F
ColE ColF ColG etc.
Down Down List of names
down
one Code one Code OneCode
List of re-occuring Codes Only once each
In each of these columns will be the count
names.
from ColB of how many times each code appears

by the corrosponsing name in ColF and Col A
Thank you so for your efforts
Jerry Kinder



"T. Valko" wrote in message
...
Assuming that the codes in any cell col B are all unique. Meaning, you

won't
have anything like this and expect a result of 3:

B5 = BW, BW, BW

=SUMPRODUCT(--($A$5:$A$20=$D5),--(ISNUMBER(SEARCH(E$4,$B$5:$B$20))))

Copy across then down.

If you do have entries like that above and do expect a result of 3 we'll
need a different formula.


--
Biff
Microsoft Excel MVP


"Jerry Kinder" wrote in message
...
Hi All,

Col A5:A? conatins names of clients that repeat over time, Col B

contains
codes " BW, COL, HC" AND OTHER CODES.

In Col D5:D? is a list of the names in Col A but listed only once,

Column
hedding are in: Col E4 is BW, F4 is COL, G4 is HC.
Below each of these heddings next to the name in Col D i want to have a
count of how many times the code appers next to the corresponding name

in
Col A.

The codes are intered in Col B like this: BW, HC or COL, BW, HC or
HC,
BW
or COL and so on, in other words they are entered in any order with a
comma
between each code or only a single code only.

Hope this makes some sense.

Thanks,
JK