+ Reply to Thread
Results 1 to 5 of 5

Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    New Brunswick, NJ
    MS-Off Ver
    Excel 2003
    Posts
    53

    Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

    I have two columns. Column A has a person's name and Column B has dated notes on that specific person, some names have more notes than others. I was wondering if there is a function similar to count that could see how many note cells associate with a specific name or if you can look up how many dates appear for a specific person, thus giving you the number of notes on them. Any help or advice is greatly appreciated I have a thousand names or so with notes I need to count. Example I attached to this post.

    Column1
    Name

    Durant, Kevin

    Column2
    Notes

    3/8/12-Met with Kevin talked about blah
    3/12/2012-Discussed procedures

    Column3

    Number of Notes
    2
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

    Hi and welcome to the forum.

    =COUNTIF(A2:A100,A2)

    Or

    =SUMPRODUCT((B2:B100<>"")*(A2:A100="Durant, Kevin"))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

    Since your dealing with a mix of merged and unmerged cells, it becomes difficult to do this sort of count.

    If you can't unmerge, I would suggest adding helper columns.

    So in C2:

    =IF(B2="","",LOOKUP(REPT("z",255),A$2:A2))

    copied down

    in D2 (because you seem to have merged cell with multiple dates, and I will assume a dash means a date):

    =LEN(B2)-LEN(SUBSTITUTE(B2,"-",""))

    copied down.

    Now if you have a name, say Lee, Dan in A20, then to count, you would use:

    =SUMIF($C$2:$C$13,$A20,$D$2:$D$13)

    and it could be copied down for other names..
    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.

  4. #4
    Registered User
    Join Date
    06-22-2012
    Location
    New Brunswick, NJ
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

    Thank you both very much for your quick responses. @ NBVC not sure how to do it but 100 out of 100 on your response saved me a good week or so of work!

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

    Re: Excel 2003 Counting how many data cells correspond to a specific cell (Person's Name)

    Glad to have helped reduce your workload.

    Kindly mark your thread as Solved if you are satisfied.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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