+ Reply to Thread
Results 1 to 3 of 3

Counting Unique entries from 3 workbooks

  1. #1
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Counting Unique entries from 3 workbooks

    Hi,
    Any help as ever much appreciated.

    I need to count the number of unique names (column A) on 3 separate worksheets.

    Each worksheet represents a facility that people visit. It is possible that the same person will visit all three facilities. If this is the case I want to only count them once, even though they may have numerous entries on each.

    I need to get the same result as if I was to copy and paste all of the names from three spreadsheets on to one (which isnt an option) and then count unique names.

    To do this on one sheet I have been using =sumproduct((A1:A100<>"")/countif(A1:a100,A1:A100))

    Thanks, hope the explanation makes sense.
    Last edited by Gooford; 10-08-2009 at 10:11 AM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Counting Unique entries from 3 workbooks

    Download and install the free add-in Morefunc.xll. Then try...

    =COUNTDIFF(ARRAY.JOIN(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100))

    Otherwise, without the add-in, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...

    =SUM(IF(Sheet1!A2:A100<>"",1/(COUNTIF(Sheet1!A2:A100,Sheet1!A2:A100)+COUNTIF(Sheet2!A2:A100,Sheet1!A2:A100)+COUNTIF(Sheet3!A2:A100,Sheet1!A2:A100))))+SUM(IF(Sheet2!A2:A100<>"",1/(COUNTIF(Sheet1!A2:A100,Sheet2!A2:A100)+COUNTIF(Sheet2!A2:A100,Sheet2!A2:A100)+COUNTIF(Sheet3!A2:A100,Sheet2!A2:A100))))+SUM(IF(Sheet3!A2:A100<>"",1/(COUNTIF(Sheet1!A2:A100,Sheet3!A2:A100)+COUNTIF(Sheet2!A2:A100,Sheet3!A2:A100)+COUNTIF(Sheet3!A2:A100,Sheet3!A2:A100))))

    Adjust the ranges, accordingly.

  3. #3
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: Counting Unique entries from 3 workbooks

    Thanks I will have a go at this and give some feedback tomorrow

+ 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