+ Reply to Thread
Results 1 to 4 of 4

COUNTIF using exclusions

Hybrid View

Guest COUNTIF using exclusions 02-02-2006, 12:45 PM
Guest RE: COUNTIF using exclusions 02-02-2006, 01:40 PM
Guest RE: COUNTIF using exclusions 02-02-2006, 01:45 PM
Guest RE: COUNTIF using exclusions 02-02-2006, 02:15 PM
  1. #1
    djDaemon
    Guest

    COUNTIF using exclusions

    I have a column (C) that contains several part numbers (which are comprised
    of text and numbers). I want to sum all the occurences of "RY..." cells,
    excluding those which end with "...GBMK".

    Is there an easy way to do this?

  2. #2
    Ron Coderre
    Guest

    RE: COUNTIF using exclusions

    Try something like this:

    With a list in A1:A10

    B1: =COUNTIF(A1:A10,"RY*")-COUNTIF(A1:A10,"RY*GMBK")

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "djDaemon" wrote:

    > I have a column (C) that contains several part numbers (which are comprised
    > of text and numbers). I want to sum all the occurences of "RY..." cells,
    > excluding those which end with "...GBMK".
    >
    > Is there an easy way to do this?


  3. #3
    Dave Breitenbach
    Guest

    RE: COUNTIF using exclusions

    With below table as sample for a1 thru b5 (and c1 with the following formula:
    =SUMPRODUCT(--(LEFT(A1:A5,2)="ry"),--(RIGHT(A1:A5,4)<>"gbmk"),--(B1:B5))

    ry4355 6 31
    ry453 7
    ry346gbmk 8
    fr5tgbmk 9
    ry4543sf 10


    hth,
    Dave
    "djDaemon" wrote:

    > I have a column (C) that contains several part numbers (which are comprised
    > of text and numbers). I want to sum all the occurences of "RY..." cells,
    > excluding those which end with "...GBMK".
    >
    > Is there an easy way to do this?


  4. #4
    djDaemon
    Guest

    RE: COUNTIF using exclusions

    Thank you both for your help!



+ 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