ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif criteria (https://www.excelbanter.com/excel-worksheet-functions/94365-countif-criteria.html)

Chris Morley

countif criteria
 
Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K

[email protected]

countif criteria
 
sounds like another one for SUMPRODUCT - except it will need a defined
range -

=sumproduct(--(k1:K100="Yes"),--(l1:l100="Yes"))

Chris Morley wrote:
Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



[email protected]

countif criteria
 
As well as sumproduct, you could simply use

=countif(K:L="Yes")

(I've ignored the sheet1 as it's less typing for me that way!)

Chris Morley wrote:
Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



Gary''s Student

countif criteria
 
Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K


[email protected]

countif criteria
 
Agreed, I read it as columns K and L which aren't disjointed, and
therefore works
Gary''s Student wrote:
Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



vener

countif criteria
 

Chris Morley Wrote:
Please some one help. i need to count cells over 2 colomns only if
those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have
tried
using a countif formula and i am sure this was used before with a equal
to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i
know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



try this
=countif(K:I,"yes")


--
vener
------------------------------------------------------------------------
vener's Profile: http://www.excelforum.com/member.php...o&userid=35486
View this thread: http://www.excelforum.com/showthread...hreadid=552588


Gary''s Student

countif criteria
 
This is a deficency of the font:

IlIlIlIlIl

appears to be a string of identical characters in Arial, but not Verdana.
--
Gary''s Student


" wrote:

Agreed, I read it as columns K and L which aren't disjointed, and
therefore works
Gary''s Student wrote:
Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K





All times are GMT +1. The time now is 03:16 PM.

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