+ Reply to Thread
Results 1 to 7 of 7

countif criteria

  1. #1
    Chris Morley
    Guest

    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

  2. #2

    Re: 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



  3. #3

    Re: 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



  4. #4
    Gary''s Student
    Guest

    RE: 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


  5. #5

    Re: 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



  6. #6
    Registered User
    Join Date
    06-16-2006
    Posts
    3
    Quote Originally Posted by Chris Morley
    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")

  7. #7
    Gary''s Student
    Guest

    Re: 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


    "[email protected]" 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

    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1