+ Reply to Thread
Results 1 to 7 of 7

Using Match/Vlookup/ any others to count duplicates

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    19

    Using Match/Vlookup/ any others to count duplicates

    Hi,

    I have 2 column of values and I need to count the number of duplicates and sort them according to their type. Is there any fast way using formula or VBA to do this besides using a PivotTable? Currently I am using multiple FOR loops which makes it very slow.

    Here's my data:
    Please Login or Register  to view this content.
    I will need to come up with
    Please Login or Register  to view this content.
    Last edited by excelnewbie80; 06-18-2012 at 09:22 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Using Match/Vlookup/ any others to count duplicates

    How about a pivot table?

    Please Login or Register  to view this content.
    Or

    Please Login or Register  to view this content.
    I2 copied to the right and down
    =COUNTIFS($A$2:$A$6,$I2,$B$2:$B$6,J$1)
    Last edited by jeffreybrown; 06-18-2012 at 09:21 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-28-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Using Match/Vlookup/ any others to count duplicates

    Yup, I know Pivot Table is one way, are there other ways?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Using Match/Vlookup/ any others to count duplicates

    I made an addition to post #2

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Using Match/Vlookup/ any others to count duplicates

    Try this:-
    Results start "C1"
    Please Login or Register  to view this content.
    Regards Mick

  6. #6
    Registered User
    Join Date
    05-28-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Using Match/Vlookup/ any others to count duplicates

    Thanks for the replies, I have tried both ways and in the end I still feel that pivot table is the fastest.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Using Match/Vlookup/ any others to count duplicates

    We are both glad to have helped, but in the end, glad you have something you can work with. Thanks for the feedback

    Please don't forget to mark your thread as solved.

+ 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