+ Reply to Thread
Results 1 to 4 of 4

How can I get a SUM COUNT from multiple worksheets and omit duplicates based on unique num

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    19

    How can I get a SUM COUNT from multiple worksheets and omit duplicates based on unique num

    Good morning! I have search everywhere and can’t seem to find a fit for my dilemma. I work for a college and currently creating the 2012-2013 Fact Book. I have 3 terms that drive my data analysis. I have created COUNTIFS with multiple criteria for each of the terms and the count for what I’m pulling works fine (term comparison). Now, I need to get the total count for all 3 terms.

    Why not add the 3 term results, you may be asking? Well, in each term, a student who appeared in the Fall hopefully is a returning student and appears in the Spring and so on for Summer. Adding each term result would inflate the yearly number due to duplication of records if I just took the count from each term and added them together which would give me awesome numbers for yearly enrollment, but duplication of records in the process. I could very well copy and paste each of the terms into another worksheet and un-duplicate records, but I’m trying to write formulas that can do the work for me and simply change the Sheet name for the future.

    WHAT I’M TRYING TO ACCOMPLISH:
    I need to COUNT the number of student records for each term (3 spreadsheets of data) where the STUDID (Column A for each sheet) is the unique identifier that links the record and will drive the count as either a new student for a particular term or a duplicate (a returning student). It is important to emphasis that the STUDID was not needed in my COUNTIFS formulas when seeking data for my individual term results because the data was based on specific criteria within the worksheet (term).

    *** How can I go about setting up a formula (please not VBA code) that will look up COLUMN A (STUDID) for each worksheet (Fall, Spring, Summer) to determine whether it is a new STUDID or a duplicate and based on the following criteria return a COUNT that will be UNDUPLICATED (counting the record only once from all 3 worksheets). Below is my COUNTIFS formula that extracts the count from an individual term and the criteria

    This criterion looks up students who are Non-Hispanic + Race for a particular Program of Study and provides a count:
    =COUNTIFS('F2012'!$N$2:$N$5000,"ACCT",'F2012'!$AZ$2:$AZ$5000,"NHS",'F2012'!$BA$2:$BA$5000,"AN")+COUNTIFS('F2012'!$N$2:$N$5000,"ACCT",'F2012'!$BA$2:BA$5000,"AN",'F2012'!$AZ$2:$AZ$5000,"=")

    F2012 = worksheet name (represents Fall records)
    !$N$2:$N$5000 = Program of Study (in this case, Accounting = “ACCT”)
    $AZ$2:$AZ$5000 = Non-Hispanic (value entered = “NHS”)
    $AZ$2:$AZ$5000 = Non-Hispanic (blank; no value entered = “=”)
    !$BA$2:$BA$5000 = Race (in this case, American Indian or Alaskan Native = “AN”)

    For this Program of Study (ACCT) I had a total of 2 students. However, if I add the totals for each term (Fall, Spring, Summer), I get 4. The students were enrolled in Fall and Spring, but did not enroll for Summer. Had the 2 students not taken off for the Summer, the Total for Program of Study (ACCT) would have been 6, but I need the value of 2 because I need unduplicated headcount.

    Is there anyone out there than can solve this? Your assistance in solving this dilemma is most appreciated. Cris

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: How can I get a SUM COUNT from multiple worksheets and omit duplicates based on unique

    is studid ever duplicated within terms?

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How can I get a SUM COUNT from multiple worksheets and omit duplicates based on unique

    No... EACH TERM is unduplicated. However, a student CAN APPEAR in each term. This is my dilemma. Thx simarui

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: How can I get a SUM COUNT from multiple worksheets and omit duplicates based on unique

    It might help if you could upload a (clean) sample workbook, showing what you are working with, a few samples of your expected outcome, and how you arrived at them.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Unique value count based on multiple criteria
    By Ronny66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 10:18 AM
  2. [SOLVED] Find duplicates in multiple worksheets and consolidate based on unique id
    By desibabuji in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2013, 04:09 PM
  3. Replies: 3
    Last Post: 05-23-2013, 07:50 PM
  4. [SOLVED] Count without duplicates based on multiple criteria from different cells
    By perryadam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 12:54 PM
  5. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 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