+ Reply to Thread
Results 1 to 6 of 6

function to count the amount of cells depending on part of the cell entry

  1. #1
    Registered User
    Join Date
    05-01-2006
    Posts
    16

    function to count the amount of cells depending on part of the cell entry

    I want to count the number of "passes" from a column based on the criteria that the adjacent column cells contain the letters "AB" at the start of what ever is in the cell.

    i.e.

    column A column B
    AB xxx pass
    AB yyy pass
    BC zzz pass
    BC xxx fail
    AB yyy fail

    etc

    Any ideas

    thanks

  2. #2
    Roger Govier
    Guest

    Re: function to count the amount of cells depending on part of the cell entry

    Hi Andy

    one way
    =SUMPRODUCT(--(LEFT($A$1:$A$100="AB"),--($B$1:$B$100="Pass"))
    Change ranges to suit but ensure that they are of equal length.
    --
    Regards

    Roger Govier


    "Andyd74" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I want to count the number of "passes" from a column based on the
    > criteria that the adjacent column cells contain the letters "AB" at
    > the
    > start of what ever is in the cell.
    >
    > i.e.
    >
    > column A column B
    > AB xxx pass
    > AB yyy pass
    > BC zzz pass
    > BC xxx fail
    > AB yyy fail
    >
    > etc
    >
    > Any ideas
    >
    > thanks
    >
    >
    > --
    > Andyd74
    > ------------------------------------------------------------------------
    > Andyd74's Profile:
    > http://www.excelforum.com/member.php...o&userid=34013
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=545414
    >




  3. #3
    Registered User
    Join Date
    05-01-2006
    Posts
    16

    not quite working

    Thanks, but it didnt quite work, giving me a formula error

    Any ideas?

    Cheers

    Andy

  4. #4
    Ardus Petus
    Guest

    Re: function to count the amount of cells depending on part of the cell entry

    Typo and Argument missing for LEFT!
    Try:
    =SUMPRODUCT(--(LEFT($A$1:$A$100,2)="AB"),--($B$1:$B$100="Pass"))


    HTH
    --
    AP

    "Roger Govier" <[email protected]> a écrit dans le message de
    news: [email protected]...
    > Hi Andy
    >
    > one way
    > =SUMPRODUCT(--(LEFT($A$1:$A$100="AB"),--($B$1:$B$100="Pass"))
    > Change ranges to suit but ensure that they are of equal length.
    > --
    > Regards
    >
    > Roger Govier
    >
    >
    > "Andyd74" <[email protected]> wrote in
    > message news:[email protected]...
    >>
    >> I want to count the number of "passes" from a column based on the
    >> criteria that the adjacent column cells contain the letters "AB" at the
    >> start of what ever is in the cell.
    >>
    >> i.e.
    >>
    >> column A column B
    >> AB xxx pass
    >> AB yyy pass
    >> BC zzz pass
    >> BC xxx fail
    >> AB yyy fail
    >>
    >> etc
    >>
    >> Any ideas
    >>
    >> thanks
    >>
    >>
    >> --
    >> Andyd74
    >> ------------------------------------------------------------------------
    >> Andyd74's Profile:
    >> http://www.excelforum.com/member.php...o&userid=34013
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=545414
    >>

    >
    >




  5. #5
    Registered User
    Join Date
    05-01-2006
    Posts
    16

    working!!

    Thanks, thats working perfect now

    Cheers

    Andy

  6. #6
    Roger Govier
    Guest

    Re: function to count the amount of cells depending on part of the cell entry

    Thanks Ardus, typed in too much haste!!!

    --
    Regards

    Roger Govier


    "Ardus Petus" <[email protected]> wrote in message
    news:[email protected]...
    > Typo and Argument missing for LEFT!
    > Try:
    > =SUMPRODUCT(--(LEFT($A$1:$A$100,2)="AB"),--($B$1:$B$100="Pass"))
    >
    >
    > HTH
    > --
    > AP
    >
    > "Roger Govier" <[email protected]> a écrit dans le
    > message de news: [email protected]...
    >> Hi Andy
    >>
    >> one way
    >> =SUMPRODUCT(--(LEFT($A$1:$A$100="AB"),--($B$1:$B$100="Pass"))
    >> Change ranges to suit but ensure that they are of equal length.
    >> --
    >> Regards
    >>
    >> Roger Govier
    >>
    >>
    >> "Andyd74" <[email protected]>
    >> wrote in message
    >> news:[email protected]...
    >>>
    >>> I want to count the number of "passes" from a column based on the
    >>> criteria that the adjacent column cells contain the letters "AB" at
    >>> the
    >>> start of what ever is in the cell.
    >>>
    >>> i.e.
    >>>
    >>> column A column B
    >>> AB xxx pass
    >>> AB yyy pass
    >>> BC zzz pass
    >>> BC xxx fail
    >>> AB yyy fail
    >>>
    >>> etc
    >>>
    >>> Any ideas
    >>>
    >>> thanks
    >>>
    >>>
    >>> --
    >>> Andyd74
    >>> ------------------------------------------------------------------------
    >>> Andyd74's Profile:
    >>> http://www.excelforum.com/member.php...o&userid=34013
    >>> View this thread:
    >>> http://www.excelforum.com/showthread...hreadid=545414
    >>>

    >>
    >>

    >
    >




+ 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