+ Reply to Thread
Results 1 to 7 of 7

count by name, the number of xs per name

  1. #1
    Registered User
    Join Date
    11-22-2007
    Posts
    4

    count by name, the number of xs per name

    in excel i have a spreadsheet. I ave advisors name and another column with x in.

    i want to count by name, the number of xs per name for example:


    B1 C1

    Gill x
    Steve
    Richard x
    Dan


    the result for this should be:

    gill 1
    steve 0
    richard 1
    dan 0

    i can use the functions but dont quite know how to do this. any help please?
    Thanks

  2. #2
    Registered User
    Join Date
    11-20-2007
    Posts
    32
    if you are only ever going to use x's in the column then the len function will suffice.
    Tom

  3. #3
    Registered User
    Join Date
    11-22-2007
    Posts
    4

    re: len

    but i need to count how many xs each person has, the persons names appear once such as:

    richard x
    dan
    richard x

    which would results as

    richard 2
    dan 0,

    but i cannot find a function to specify the two arguments, such as count the number or richards in the column, then count how many of the richards have x`s in the next column.

  4. #4
    Registered User
    Join Date
    11-22-2007
    Posts
    4
    but i need to count how many xs each person has, the persons names appear more than once such as:

    richard x
    dan
    richard x

    which would results as

    richard 2
    dan 0,

    but i cannot find a function to specify the two arguments, such as count the number or richards in the column, then count how many of the richards have x`s in the next column

  5. #5
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    SUMPRODUCT will do this for you. Something along the lines of:

    =SUMPRODUCT(--(B1:B100="Richard")*(C1:C100="x"))

    HTH,

    SamuelT

  6. #6
    Registered User
    Join Date
    11-22-2007
    Posts
    4
    thanks alot SamuelT, worked exactly how i wanted it too!

  7. #7
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Glad to help - 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