ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sumproduct (https://www.excelbanter.com/excel-discussion-misc-queries/201862-sumproduct.html)

opal

sumproduct
 
Hi,
I want to count the number of times the contents of each cell in ColC occur
in column B for each sort in column A.

e.g.
Col A Col B Col C

Oran BK BK
Oran BK HL
Oran JU JU

Gree JU
Gree HL
Gree BK

Help!
--
Opal

smartin

sumproduct
 
Opal wrote:
Hi,
I want to count the number of times the contents of each cell in ColC occur
in column B for each sort in column A.

e.g.
Col A Col B Col C

Oran BK BK
Oran BK HL
Oran JU JU

Gree JU
Gree HL
Gree BK

Help!


Perhaps this in a spare column, and fill down:

=SUMPRODUCT(--(C1=$B$1:$B$7),--(A1=$A$1:$A$7))

opal

sumproduct
 
Hi smartin,

I tried your suggestion but i got only zero(0) answers.
Any thing else i can try?

--
Opal


"smartin" wrote:

Opal wrote:
Hi,
I want to count the number of times the contents of each cell in ColC occur
in column B for each sort in column A.

e.g.
Col A Col B Col C

Oran BK BK
Oran BK HL
Oran JU JU

Gree JU
Gree HL
Gree BK

Help!


Perhaps this in a spare column, and fill down:

=SUMPRODUCT(--(C1=$B$1:$B$7),--(A1=$A$1:$A$7))


smartin

sumproduct
 
Hmm, it worked for me exactly as advertised using your example data. Is
your real data layout different?

Opal wrote:
Hi smartin,

I tried your suggestion but i got only zero(0) answers.
Any thing else i can try?



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

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