ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   counting in one column when two expressions in two other columns are true (https://www.excelbanter.com/excel-worksheet-functions/7166-counting-one-column-when-two-expressions-two-other-columns-true.html)

Henrik

counting in one column when two expressions in two other columns are true
 
Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik



Don Guillett

try
=sumproduct((a2:a200="A")*(c2:c200="f"))

--
Don Guillett
SalesAid Software

"Henrik" wrote in message
...
Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik





JE McGimpsey

One way:

=SUMPRODUCT(--(A1:A3="D"),--(C1:C3="F"))

See http://www.mcgimpsey.com/excel/doubleneg.html for an explanation of
the "--".


In article ,
"Henrik" wrote:

Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik


Henrik

Thanks guys!

It's now working.


rgds

Henrik

"Henrik" skrev i en meddelelse
...
Hi Group

I am trying to count in one column when two other columns are true

example:

a b c
1 D E F
2 G H I
3 D J F

I want to count colulm 'c' when 'a' is 'D' and 'c' is 'F' = 2

Can anyone help?

Regards

Henrik






All times are GMT +1. The time now is 07:04 PM.

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