+ Reply to Thread
Results 1 to 4 of 4

Counting Results after Multiple criteria are filled.

  1. #1
    Registered User
    Join Date
    06-10-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    4

    Counting Results after Multiple criteria are filled.

    Hi,

    Hopefully someone can help.

    I would like some help in being able to count each occurence of 0 in one column, after a text criteria has been filled in another.

    I.e. in one column I have a supplier code (Column B) (each supplier code is listed by each of products they sell to me (Column A)), and in another I have a count of the number of cells of data I still need from them for each product (Column CU). I want to count the number of times each supplier code returns a "0" in Column CU.

    The attached worksheet should illustrate.

    All of these rows are returning zero's in column CU, therefore Supplier Code TD106 (column B) has 4 instances of returning a zero (Column CU) and TB026 has 6.

    is there a formula I can use to lookup against the supplier code ColumnB and count the zeros. This is actually a huge file, and the list contains many different values in CU, I just want to count the zeros.

    Thanks
    Attached Files Attached Files
    Last edited by Danieljfern; 06-11-2011 at 08:24 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting Results after Multiple criteria are filled.

    So if you have a separate list of unique suppliers...

    e.g. in Sheet2, starting at A2, then in B2 try formula:

    =SUMPRODUCT(--(Sheet1!$B$2:$B$100=A2),--(Sheet1!$CU$2:$CU$100=0))

    adjust ranges to suit and copy down.

    You can also use a quicker Pivot Table and add column CU to the Report Filter so that you can select to view o only...

    See attached.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-10-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Counting Results after Multiple criteria are filled.

    Hi NBVC,

    I ended up using the Pivot table which works fine, although I didn't really want to have to update my table every time I added data, Beggers can't be choosers though eh?.

    I had tried the Sumproduct formula but I get a #NUM! error, maybe because my results (where i'm entering the formula) are on a seperate workbook. When i tried this initially I thought maybe the issue was that the values in column A are text, maybe I'm wrong, needless to say, it didn't work

    Also I don't know how to mark as [SOLVED] as this is my first ever forum post.

    Thanks.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting Results after Multiple criteria are filled.

    You might get the #NUM error if you are trying to apply whole ranges to SUMPRODUCT. It is not allowed in XL2003 or earlier.. redefine the range and make it smaller rather than larger.. because SUMPRODUCT is also inefficient when covering large ranges...

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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