+ Reply to Thread
Results 1 to 4 of 4

Counting only the unique names in 3 columns on separate worksheets.

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Cairns, Australia
    MS-Off Ver
    2010
    Posts
    15

    Counting only the unique names in 3 columns on separate worksheets.

    I am making a client register for a homeless shelter. I get a total of individual clients at the end of each month. I do not want to count repeat clients twice. The clients names are in column C6:C36. For this I use the formula:

    =SUMPRODUCT((C6:C36<>"")/COUNTIF(C6:C36,C6:C36&""))


    I now need to develop a formula for the Quarterly report (separate worksheet) that gives only the individuals for the 3 month period (each month is on a separate worksheet) So if someone stayed in January and again in March, they should only be counted once. Is there a formula that can give the total number of individuals from 3 separate columns on different worksheets without counting repeat clients?
    Edit/Delete Message

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Counting only the unique names in 3 columns on separate worksheets.

    The attached is a bit kludgy, but it works.

    The name data is in Tabs Jan, Feb and Mar in cells C6:C36. I made a helper Sheet called Q1 Data. On this sheet Cells A2:A32 are linked to Cells C6:C36 on the Jan Tab. The next 21 cells in column A are linked to cells C6:C36 on the Feb tab and similarly for Mar.

    There is a helper column called Not Blank. If the name is blank on one of these sheets, the link returns 0. We don't want to count these. I used this 94-row range as the source for a pivot table that gives the list of unique names. I filtered out the zeros.

    To get the unique count use: =COUNTA('Q1 Data'!D:D)-2 The reason for the minus 2 is that we just want to count the names, not the headers ("Not Blank" and "Row Labels").
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Counting only the unique names in 3 columns on separate worksheets.

    You might want to consider a different setup for your data so that you could get that data much more easily.
    I'd suggest that all your data be on a single worksheet, with a column added for the MONTH of service.
    Then a Pivot Table could gather your data and give you any info you might want in seconds each month/quarter/year.

  4. #4
    Registered User
    Join Date
    02-26-2016
    Location
    Cairns, Australia
    MS-Off Ver
    2010
    Posts
    15

    Re: Counting only the unique names in 3 columns on separate worksheets.

    Thank you!

+ 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 unique values from data on TWO separate excel tabs
    By rshukla in forum Excel General
    Replies: 2
    Last Post: 05-06-2013, 02:08 AM
  2. [SOLVED] Counting unique values from data on TWO separate excel tabs
    By rshukla in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2013, 05:22 PM
  3. Counting Unique names
    By dloconto in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-26-2013, 10:28 PM
  4. Counting Unique Names based on Criteria
    By adamsiskin in forum Excel General
    Replies: 7
    Last Post: 08-15-2012, 04:55 PM
  5. [SOLVED] Counting Unique Names
    By BRodgers25 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-09-2012, 11:50 AM
  6. Counting Unique Names
    By fieroetnl in forum Excel General
    Replies: 1
    Last Post: 10-13-2011, 07:01 PM
  7. Counting unique names with three column condition
    By moyounis in forum Excel General
    Replies: 9
    Last Post: 07-11-2011, 08:36 AM
  8. Separate names into 2 columns?
    By Ltat42a in forum Excel General
    Replies: 8
    Last Post: 12-11-2005, 05:15 PM

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