+ Reply to Thread
Results 1 to 4 of 4

countif

  1. #1
    Registered User
    Join Date
    07-06-2007
    Posts
    2

    countif

    Brain cramp!!!

    In the sheet:

    A B
    1 TOM 6
    2 JANE 3
    3 TOM 4
    4 TOM 0
    4 ED 1
    6 TOM 2

    I want to count the number of occurances in column B greater than .01 that correspond to the name Tom in column A. The result I'm looking for is 3. In other words, if column A listed salespeople and column B represented the number of products they sold in each sale, Tom would have made 3 "sales".

    The sheet I'm using is significantly more complicated and there are many rows seperating the source column and the data column if it makes any difference.

    Thanks in advance for your help.

    Scott

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Does this help?

    =SUMPRODUCT(--(A1:A6="TOM"),(--(B1:B6>0)))

    Result = 3
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    07-06-2007
    Posts
    2
    Thanks! That didn't quite get it but sumproduct operation yielded the proper results. I used =SUMPRODUCT((CX.xls!$C2:$C200="STARON")*((CX.xls!$G2:$G200>0.1))). The multiplication in the middle was the missing link to make this work. Thanks again!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to hear you were able to sort it out - thanks for the feedback

+ 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