+ Reply to Thread
Results 1 to 3 of 3

Counting Duplicates

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    OKC, OK
    MS-Off Ver
    2010
    Posts
    18

    Post Counting Duplicates

    Hello!

    I would like to know how I can use COUNTIF/COUNTIFS to count duplicates in two columns in Excel 2010. The two columns do not have the exact same number of rows. There are no duplicates within column A or within column B, but I want to know if there are duplicates across the two columns. The ranges are A2:A12868 and C2:C19826. I have tried using =COUNTIF(A2:A12868,C2:C19826), but this is incorrect. Thank you for your help!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Counting Duplicates

    Countif with two nested ranges will return an array. Instead, encapsulate the expression with SUMPRODUCT to add up the results of the array.

    Please Login or Register  to view this content.

    Alternatively, you can coerce the array into a sum by using SUM and entering the formula as an ARRAY FORMULA.

    Please Login or Register  to view this content.
    But this requires you to confirm the formula with Ctrl+Shift+Enter.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Counting Duplicates

    =SUM(INDEX(COUNTIF(A2:A12868,C2:C19826),0))
    OR
    BELOW ARRAY FORMULA
    =SUM(COUNTIF(A2:A12868,C2:C19826)) Confirm with Shift+Ctrl+Enter
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Counting Matching values in two separate ranges without counting duplicates
    By Rhall6310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2014, 03:35 PM
  2. [SOLVED] counting duplicates only once
    By eddisign in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2012, 12:40 PM
  3. counting duplicates once
    By nancytaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2011, 05:08 PM
  4. counting cells with data without counting duplicates
    By labettis in forum Excel General
    Replies: 2
    Last Post: 11-05-2007, 12:10 PM
  5. Counting Duplicates
    By kteicher in forum Excel General
    Replies: 4
    Last Post: 03-23-2005, 05:44 PM

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