ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how do I use COUNTIF in excel. using criteria from multiple colums (https://www.excelbanter.com/excel-programming/330601-re-how-do-i-use-countif-excel-using-criteria-multiple-colums.html)

KL

how do I use COUNTIF in excel. using criteria from multiple colums
 
Hi Bob,

I have re-read the original post and I am still not sure if Teresa wants to
count the rows whe

1) at least one of the cells D# and I# are greater than 0
or
2) both cells D# and I# are greater than 0 at the same time

....but it may be my English :-)

Regards,
KL


"Bob Phillips" wrote in message
...
I read it as

=SUMPRODUCT(--(D5:D1930),--(I5:I1930))

--
HTH

Bob Phillips

"KL" wrote in message
...
Try:

=SUMPRODUCT(--((D5:D1930)+(I5:I1930)0))

Regards,
KL


"Zuki" wrote in message
...
count number of matching cells in to colums where their value are

greater
than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the two
ranges that have value of more than zero to be counted as one

occurrance.
(D8
value 2 and I8 value 4, to be counted as one)








Bob Phillips[_7_]

how do I use COUNTIF in excel. using criteria from multiple colums
 
Hi KL,

I could see where your thinking came from , it wasn't clear, and that is not
just your English :-).

--
HTH

Bob Phillips

"KL" wrote in message
...
Hi Bob,

I have re-read the original post and I am still not sure if Teresa wants

to
count the rows whe

1) at least one of the cells D# and I# are greater than 0
or
2) both cells D# and I# are greater than 0 at the same time

...but it may be my English :-)

Regards,
KL


"Bob Phillips" wrote in message
...
I read it as

=SUMPRODUCT(--(D5:D1930),--(I5:I1930))

--
HTH

Bob Phillips

"KL" wrote in message
...
Try:

=SUMPRODUCT(--((D5:D1930)+(I5:I1930)0))

Regards,
KL


"Zuki" wrote in message
...
count number of matching cells in to colums where their value are

greater
than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the

two
ranges that have value of more than zero to be counted as one

occurrance.
(D8
value 2 and I8 value 4, to be counted as one)










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

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