ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   IF? OR SUMPRODUCT? or ???? (https://www.excelbanter.com/new-users-excel/173862-if-sumproduct.html)

Jerry Kinder

IF? OR SUMPRODUCT? or ????
 
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



Raymond_Angana via OfficeKB.com

IF? OR SUMPRODUCT? or ????
 
Hi jerry,
Just check out if =countif(range,criteria) function matches your desire.

Jerry Kinder wrote:
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


--
"This isn't good or bad. It's just the way of things. Nothing stays the same.
" Real live preacher.

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200801/1


T. Valko

IF? OR SUMPRODUCT? or ????
 
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





Jerry Kinder

IF? OR SUMPRODUCT? or ????
 
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







T. Valko

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










All times are GMT +1. The time now is 03:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com