+ Reply to Thread
Results 1 to 7 of 7

Count Unique Values across more files

  1. #1
    Registered User
    Join Date
    01-03-2015
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    40

    Count Unique Values across more files

    Hi all,

    I am trying to count unique values from 2 sheets located in different files.

    For 1 source only the following formula works:

    =SUMPRODUCT(IFERROR(1/COUNTIFS('xxxxlocationofthefile.xlsx]December'!$G$2:$G$2000;'xxxxlocationofthefile.xlsx]December'!$G$2:$G$2000);0))

    (instead of xxxlocation there is actual path)

    For the second file I tried the following, however that doesn't count it correctly:

    =SUMPRODUCT(IFERROR(1/COUNTIFS('xxxxlocationofthefile.xlsx]December'!$G$2:$G$2000;'xxxxlocationofthefile.xlsx]December'!$G$2:$G$2000;'yyyyyyylocationofthefile.xlsx]December'!$G$2:$G$2000;'yyyyyyylocationofthefile.xlsx]December'!$G$2:$G$2000);0))

    (both formulas are array formulas)

    There may be duplicate values that are shared in both files, that is why I cannot do simply sum of both individually. It has to check for unique values across both files. For instance if file xx has values 1,2,2,3,4,5 and file yy has 1,5,6,6,7, 7, the total count of unique values would be 7. With sum of both it would be 9, which is what I don't want.

    Thank you very much for your help.

  2. #2
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Count Unique Values across more files

    Hi Andrew,

    I suggest to go for Advance Filter which is simple but one of the most powerful feature of excel.

    Or you can post a sample file to get fast result.

    Regards,
    AM

  3. #3
    Registered User
    Join Date
    01-03-2015
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    40

    Re: Count Unique Values across more files

    Hi,

    thanks for your reply. I know that advanced filter would be simple and quick, but I need these files to be counted together automatically rather often, which is why a function would be great. Find attached an example of source1, source2 and overall Summary file. Counting unique values from each file separately works well as shown in the file, but I couldn't get this to count uniques across both files.

    Thanks for your help.


    Summary.xlsx
    source1.xlsx
    source2.xlsx

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count Unique Values across more files

    For excel 2013 with an pivot table, see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    01-03-2015
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    40

    Re: Count Unique Values across more files

    Hi,

    thank you, appreciated, this is certain one solution, however why I am asking about to have it done by formulas is to avoid having to put together 2 files and instead have just 1 summary file that I can open any time and have the unique values calculated without having to consolidate the files. Is there a way?

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count Unique Values across more files

    To my opinion it is much easier to have all data on 1 sheet (in 1 workbook).

  7. #7
    Registered User
    Join Date
    01-03-2015
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    40

    Re: Count Unique Values across more files

    It is of course and would solve many issues, but if more people are working on something on daily basis and i want to see the total count. I know it is rather odd request this one and it is no problem if it is not possible. Sum of both unique cells is mostly for 98 - 99% percent accurate, but I was just wondering if there is a way to have uniques from both combined.

+ 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] Count then Delete Duplicate Values and put count next to now unique value
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2014, 04:22 PM
  2. [SOLVED] Unique Total Value Count per Unique Lookup Values
    By KnightVision in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2014, 05:03 AM
  3. [SOLVED] count unique values based on unique values
    By neetu.aggarwal in forum Excel General
    Replies: 13
    Last Post: 10-23-2012, 04:00 AM
  4. [SOLVED] How To Count Unique Values in COL A Subject for each unique value in COL B ??
    By amirtehrani in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2012, 03:00 AM
  5. Replies: 17
    Last Post: 08-24-2009, 08:58 AM

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