+ Reply to Thread
Results 1 to 4 of 4

Count If Function

Hybrid View

  1. #1
    Michele
    Guest

    Count If Function

    I am trying to write a formula to return a count if cell a1 equals "value a"
    and cell a2 is not blank. I have tried various combinations of countif,
    if(and..., counta, and count formulas with no success! Can anyone assist me
    with creating a formula?

    Thanks-
    Michele

  2. #2
    JulieD
    Guest

    Re: Count If Function

    Hi Michele

    one option
    =SUMPRODUCT(--(A1="a"),--(A2<>""))

    check out
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    for details on how this function works
    --
    Cheers
    JulieD
    check out www.hcts.net.au/tipsandtricks.htm
    ....well i'm working on it anyway
    "Michele" <[email protected]> wrote in message
    news:[email protected]...
    >I am trying to write a formula to return a count if cell a1 equals "value
    >a"
    > and cell a2 is not blank. I have tried various combinations of countif,
    > if(and..., counta, and count formulas with no success! Can anyone assist
    > me
    > with creating a formula?
    >
    > Thanks-
    > Michele




  3. #3
    bj
    Guest

    RE: Count If Function

    try
    =sumproduct(--(A1:Z1="value a"),--(A2:Z2<>""))
    assuming you want rows checked

    "Michele" wrote:

    > I am trying to write a formula to return a count if cell a1 equals "value a"
    > and cell a2 is not blank. I have tried various combinations of countif,
    > if(and..., counta, and count formulas with no success! Can anyone assist me
    > with creating a formula?
    >
    > Thanks-
    > Michele


  4. #4
    Michele
    Guest

    RE: Count If Function

    Thank you both so much! It worked! Now my manager can get off my back

    "bj" wrote:

    > try
    > =sumproduct(--(A1:Z1="value a"),--(A2:Z2<>""))
    > assuming you want rows checked
    >
    > "Michele" wrote:
    >
    > > I am trying to write a formula to return a count if cell a1 equals "value a"
    > > and cell a2 is not blank. I have tried various combinations of countif,
    > > if(and..., counta, and count formulas with no success! Can anyone assist me
    > > with creating a formula?
    > >
    > > Thanks-
    > > Michele


+ 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