+ Reply to Thread
Results 1 to 11 of 11

I need to count how many times a name is duplicated?

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Jersey, United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Smile I need to count how many times a name is duplicated?

    I have a spreadsheet with various names, Column A contains the Last Name, Column B contains the First Name. I need to determine how many times a name re-occurs. For example, Smith, John appears in the sheet 4 times. Smith, Jane appears in the list 3 times. I then need to determine the total number of people that appear more than once. In this example it would be 2.

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: I need to count how many times a name is duplicated?

    Are you really using Excel 2003?

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    Jersey, United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: I need to count how many times a name is duplicated?

    Unfortunately yes

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: I need to count how many times a name is duplicated?

    Oh dear ... well it makes things a little harder, but with your data in A1:B10 this formula should count the number of duplicate people:

    =SUM(IF(($A$1:$A$10<>"")*($B$1:$B$10<>""),(COUNTIFS($A$1:$A$10,$A$1:$A$10,$B$1:$B$10,$B$1:$B$10)>1)/COUNTIFS($A$1:$A$10,$A$1:$A$10,$B$1:$B$10,B1:B10),0))

    This is an array formula and must be entered with Ctrl-Shift-Enter, not just Enter.

    Edited to add: Bum! Just remembered there's no COUNTIFS in 2003. Please hold.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: I need to count how many times a name is duplicated?

    @ Andrew
    COUNTIFS() will not work for 2003, it was introduced in 2007.

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: I need to count how many times a name is duplicated?

    Yes, I carefully reworked my formula to take out the IFERROR I'd used, posted it and spotted the COUNTIFS

    I'm struggling to think of a way to do this in 2003 without a helper column.

  7. #7
    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: I need to count how many times a name is duplicated?

    @ Andrew

    As always have the question why some excel experts(like you) don,t like helper columns(if you like see and my thread here), can you pls, explain this?

    http://www.excelforum.com/the-water-...r-columns.html
    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.

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: I need to count how many times a name is duplicated?

    Try this:

    =SUM(N(FREQUENCY(MATCH(A1:A10&B1:B10,A1:A10&B1:B10,0),MATCH(A1:A10&B1:B10,A1:A10&B1:B10,0))>1))

    Ctrl+Shift+Enter, not just Enter

  9. #9
    Registered User
    Join Date
    01-11-2013
    Location
    Jersey, United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: I need to count how many times a name is duplicated?

    Thank you Richard R for your efforts

    Teethless mama - I tried that formula and it is returning a value of 1 even though there was no data in the sheet. When I added data replicating a name once in returned the value as 2?!

    Thank you

  10. #10
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: I need to count how many times a name is duplicated?

    mabe this...

    =SUM(N(FREQUENCY(IF(A1:A10&B1:B10<>"",MATCH(A1:A10&B1:B10,A1:A10&B1:B10,0)),MATCH(A1:A10&B1:B10,A1:A10&B1:B10,0))>1))

    Array Formula: Press Ctrl+Shift+Enter, not just Enter

    See the attached
    Attached Files Attached Files
    Last edited by Teethless mama; 01-11-2013 at 10:40 AM.

  11. #11
    Registered User
    Join Date
    01-11-2013
    Location
    Jersey, United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: I need to count how many times a name is duplicated?

    That's perfect! Thank you very much!

+ 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