+ Reply to Thread
Results 1 to 4 of 4

Sumproduct to count

  1. #1
    GregR
    Guest

    Sumproduct to count

    I have a table where I want to count the number of times "*VPN*" appear
    in column A where column K is blank, something like:

    =SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).

    The result should be 14 but is returning 0. The countif formula

    =COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
    K6:K1000 = "".

    What is wrong? TIA

    Greg


  2. #2
    Bob Phillips
    Guest

    Re: Sumproduct to count

    =SUMPRODUCT(--(ISNUMBER(FIND("VPN",$A$6:$A$1000))),--($K$6:$K$1000=""))

    If you want it to be non-case sensitive, use SEARCH not FIND.

    --
    HTH

    Bob Phillips

    "GregR" <[email protected]> wrote in message
    news:[email protected]...
    > I have a table where I want to count the number of times "*VPN*" appear
    > in column A where column K is blank, something like:
    >
    > =SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).
    >
    > The result should be 14 but is returning 0. The countif formula
    >
    > =COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
    > K6:K1000 = "".
    >
    > What is wrong? TIA
    >
    > Greg
    >




  3. #3
    Bob Phillips
    Guest

    Re: Sumproduct to count

    I know that page :-)

    Bob

    "Jim Thomlinson" <[email protected]> wrote in message
    news:[email protected]...
    > Since this is the second instance of you saveing the day on the sumproduct
    > formula I thought it might be helpful to post a cheat sheet of how this

    stuff
    > is done...
    >
    > http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    >
    > Example 9 in this case... I know because I had to look it up. In this case
    > Greg was looking for the literal value *VPN* not containing VPN.
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "Bob Phillips" wrote:
    >
    > > =SUMPRODUCT(--(ISNUMBER(FIND("VPN",$A$6:$A$1000))),--($K$6:$K$1000=""))
    > >
    > > If you want it to be non-case sensitive, use SEARCH not FIND.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "GregR" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have a table where I want to count the number of times "*VPN*"

    appear
    > > > in column A where column K is blank, something like:
    > > >
    > > > =SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).
    > > >
    > > > The result should be 14 but is returning 0. The countif formula
    > > >
    > > > =COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
    > > > K6:K1000 = "".
    > > >
    > > > What is wrong? TIA
    > > >
    > > > Greg
    > > >

    > >
    > >
    > >




  4. #4
    GregR
    Guest

    Re: Sumproduct to count

    Bob and Jim, once again thank you for your support and astute answers.

    Greg


+ 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